Skip to content

Commit

Permalink
The Summon Commnad will now add the summoned unit to selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiephan committed Jan 11, 2021
1 parent 2d80f05 commit d50049f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions (10)trymemode.stormmap/base.stormdata/Modules/LibUnits.galaxy
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,7 @@ bool libUNIT_gt_SummonUnitPanelSummonButtonClicked_Func (bool testConds, bool ru
libNtve_gf_CreateUnitsWithDefaultFacing(1, lv_unittype, 0, lv_player, CameraGetTarget(EventPlayer()), null);
AIAddPlayerUnit(UnitLastCreated());
UnitSetScale(UnitLastCreated(), (lv_scale * 100.0), (lv_scale * 100.0), (lv_scale * 100.0));
UnitSelect(UnitLastCreated(), lv_player, true);
if ((libUNIT_gv_summonedUnits_index[lv_player] >= libUNIT_gv_summonedUnits_MaxLength)) {
libUNIT_gv_summonedUnits_index[lv_player] = 0;
libUNIT_gv_summonedUnits_resetted[lv_player] = true;
Expand Down Expand Up @@ -1869,6 +1870,7 @@ bool libUNIT_gt_SummonUnit_Func (bool testConds, bool runActions) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, lv_unittype, 0, lv_player, CameraGetTarget(EventPlayer()), null);
AIAddPlayerUnit(UnitLastCreated());
UnitSetScale(UnitLastCreated(), (lv_scale * 100.0), (lv_scale * 100.0), (lv_scale * 100.0));
UnitSelect(UnitLastCreated(), lv_player, true);
if ((libUNIT_gv_summonedUnits_index[lv_player] >= libUNIT_gv_summonedUnits_MaxLength)) {
libUNIT_gv_summonedUnits_index[lv_player] = 0;
libUNIT_gv_summonedUnits_resetted[lv_player] = true;
Expand Down
Binary file modified (10)trymemode.stormmap/base.stormdata/Modules/Modules_Editor.SC2Mod
Binary file not shown.
1 change: 1 addition & 0 deletions (10)trymemode.stormmap/base.stormdata/Modules/doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@
"command": "summon",
"description": [
"Spawn unit(s) at the centre of your camera location.",
">Note: A new summoned unit will automatically added to select group.",
">Note: To control the summoned units, you will need to enable multi-selection from either the [`alliancecontrolteamselection`](#cmd-alliancecontrolteamselection) command or QA Cheat Menu (`ts`, also use `/ac` if the unit does not belong to you), which will behave like Vikings and Samuro with Illusion Master. ",
">Note: If your hero is Samuro, it will have some weird behavior for multi selection due to Blizzard's implementation of Samuro."
],
Expand Down
3 changes: 2 additions & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<a name="meta-top"></a>

# Usage
<sup>*(Generated from [doc.json](./(10)trymemode.stormmap/base.stormdata/Modules/doc.json) at Mon, 11 Jan 2021 20:57:20 GMT)*</sup>
<sup>*(Generated from [doc.json](./(10)trymemode.stormmap/base.stormdata/Modules/doc.json) at Mon, 11 Jan 2021 22:39:02 GMT)*</sup>

Generally, most of the functionalities are using chat commands. Simply type the commands in the chat box (like how you would normally chat with teammates).
>Note: Remember to either use allies or all chat channel when try to use the commands. Public chat channels and Private Messages (PM) does not work.
Expand Down Expand Up @@ -1384,6 +1384,7 @@ Send an Actor Message for selected unit(s). Generally from `<CActor*>`, the `<on

#### ✏ Description:
Spawn unit(s) at the centre of your camera location.
>Note: A new summoned unit will automatically added to select group.
>Note: To control the summoned units, you will need to enable multi-selection from either the [`alliancecontrolteamselection`](#cmd-alliancecontrolteamselection) command or QA Cheat Menu (`ts`, also use `/ac` if the unit does not belong to you), which will behave like Vikings and Samuro with Illusion Master.
>Note: If your hero is Samuro, it will have some weird behavior for multi selection due to Blizzard's implementation of Samuro.
Expand Down

0 comments on commit d50049f

Please sign in to comment.