Charapanga
New Member
- Reaction score
- 46
Hi, i made my own custom summon spell based off Channel, and added a trigger to it, what happens is...they appear and move nowhere...but i want them to move towards the caster...
Trigger:
- Reinforcements
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to (==) Reinforcements
- Actions
- Set ReinCaster = (Triggering unit)
- Set ReinCasterPos = (Position of ReinCaster)
- Set ReinMovePoint = (ReinCasterPos offset by 1000.00 towards ((Facing of ReinCaster) - 180.00) degrees)
- Set ReinUnitGroup = (Units within 200.00 of ReinCasterPos)
- Player - Set the current research level of Shaman Adept Training to 3 for (Owner of ReinCaster)
- Player - Set the current research level of Ensnare to 1 for (Owner of ReinCaster)
- Player - Set the current research level of Berserker Strength to 1 for (Owner of ReinCaster)
- Player - Set the current research level of Steel Melee Weapons to 3 for (Owner of ReinCaster)
- Player - Set the current research level of Steel Armor to 3 for (Owner of ReinCaster)
- Do Multiple ActionsFor each (Integer A) from 1 to 2, do (Actions)
- Loop - Actions
- Unit - Create 2 Orc Shaman for (Owner of ReinCaster) at ReinMovePoint facing Default building facing (270.0) degrees
- Set ReinLastCreated[(Integer A)] = (Last created unit)
- Unit - Pause ReinLastCreated[(Integer A)]
- Unit - Turn collision for ReinLastCreated[(Integer A)] Off
- Unit - Order ReinLastCreated[(Integer A)] to Move To ReinCasterPos
- Loop - Actions
- Do Multiple ActionsFor each (Integer A) from 3 to 4, do (Actions)
- Loop - Actions
- Unit - Create 2 Orc Raider for (Owner of ReinCaster) at ReinMovePoint facing Default building facing (270.0) degrees
- Set ReinLastCreated[(Integer A)] = (Last created unit)
- Unit - Pause ReinLastCreated[(Integer A)]
- Unit - Turn collision for ReinLastCreated[(Integer A)] Off
- Unit - Order ReinLastCreated[(Integer A)] to Move To ReinCasterPos
- Loop - Actions
- Do Multiple ActionsFor each (Integer A) from 1 to 2, do (Actions)
- Unit - Create 1 Orc Grunt for (Owner of ReinCaster) at ReinMovePoint facing Default building facing (270.0) degrees
- Set ReinLastCreated[5] = (Last created unit)
- Unit - Turn collision for ReinLastCreated[5] Off
- Unit - Pause ReinLastCreated[5]
- Unit - Order ReinLastCreated[5] to Move To ReinCasterPos
- Set ReinCasterPos = (Position of ReinCaster)
- Set ReinUnitGroup = (Units within 200.00 of ReinCasterPos)
- Wait until ((ReinLastCreated[1] is in ReinUnitGroup) Equal to (==) True), checking every 0.10 seconds
- Wait until ((ReinLastCreated[2] is in ReinUnitGroup) Equal to (==) True), checking every 0.10 seconds
- Wait until ((ReinLastCreated[3] is in ReinUnitGroup) Equal to (==) True), checking every 0.10 seconds
- Wait until ((ReinLastCreated[4] is in ReinUnitGroup) Equal to (==) True), checking every 0.10 seconds
- Wait until ((ReinLastCreated[5] is in ReinUnitGroup) Equal to (==) True), checking every 0.10 seconds
- Do Multiple ActionsFor each (Integer A) from 1 to 5, do (Actions)
- Loop - Actions
- Unit - Unpause ReinLastCreated[(Integer A)]
- Unit - Turn collision for ReinLastCreated[(Integer A)] On
- Unit - Order ReinLastCreated[(Integer A)] to Stop
- Unit - Add a 60.00 second Generic expiration timer to ReinLastCreated[(Integer A)]
- Loop - Actions
- Do Multiple ActionsFor each (Integer A) from 1 to 5, do (Actions)
- Custom script: call RemoveLocation(udg_ReinCasterPos)
- Custom script: call RemoveLocation(udg_ReinMovePoint)
- Custom script: call DestroyGroup(udg_ReinUnitGroup)
- Events