ninjaalamode
New Member
- Reaction score
- 0
In my map, I have two teams controlling player 9 and 10's units with arrow keys, and also by using units in the top-left of the map for casting spells with the help of triggers.
My problem lies in when these units damage each other. I only have one ability so far for the units, with triggers incorporated into it, and when this triggered ability goes off, it causes units to move instantly to a certain unit, and then causes that certain unit to use warstomp. The problem is that when the stun wears off on the affected units, they move back to the very first point they spawned into the map at.
I'm thinking it's something to do with how units normally react to being damaged and etc., because I looked through my triggers to make sure there wasn't anything that would cause them to move back to their starting point in the map. So, is there any way to prevent this from happening, any solution to this?
EDIT: Oh, I better add the ability trigger as well, to show what I'm trying to get at...
I don't think there's anything wrong with the trigger, or at least I don't think anything in it is causing the problem I am having, it's just that the units move back to their starting position in the map after the stun from warstomp wears off.
My problem lies in when these units damage each other. I only have one ability so far for the units, with triggers incorporated into it, and when this triggered ability goes off, it causes units to move instantly to a certain unit, and then causes that certain unit to use warstomp. The problem is that when the stun wears off on the affected units, they move back to the very first point they spawned into the map at.
I'm thinking it's something to do with how units normally react to being damaged and etc., because I looked through my triggers to make sure there wasn't anything that would cause them to move back to their starting point in the map. So, is there any way to prevent this from happening, any solution to this?
EDIT: Oh, I better add the ability trigger as well, to show what I'm trying to get at...
Trigger:
- CQC
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to CQC
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Current order of Soldier[(Player number of (Owner of (Casting unit)))]) Equal to (Order(<Empty String>))
- Then - Actions
- Unit Group - Pick every unit in (Units within 200.00 of (Position of Soldier[(Player number of (Owner of (Casting unit)))]) matching ((((Matching unit) belongs to an ally of (Owner of (Casting unit))) Equal to False) and ((Matching unit) Not equal to Soldier[(Player number of (Owner of (Cas and do (Actions)
- Loop - Actions
- Unit - Move (Picked unit) instantly to (Position of Soldier[(Player number of (Owner of (Casting unit)))])
- Loop - Actions
- Unit - Order Soldier[(Player number of (Owner of (Casting unit)))] to Orc Tauren Chieftain - War Stomp
- Unit Group - Pick every unit in (Units within 200.00 of (Position of Soldier[(Player number of (Owner of (Casting unit)))]) matching ((((Matching unit) belongs to an ally of (Owner of (Casting unit))) Equal to False) and ((Matching unit) Not equal to Soldier[(Player number of (Owner of (Cas and do (Actions)
- Else - Actions
- Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + 50.00)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
I don't think there's anything wrong with the trigger, or at least I don't think anything in it is causing the problem I am having, it's just that the units move back to their starting position in the map after the stun from warstomp wears off.