Wratox1
Member
- Reaction score
- 22
hello again, im having some trouble with my spell/trigger, the trigger is supposed to switch the triggering unit and the targeted unit's owner, the units are modified COP(circle of power) which are owned by neutral passive at the beginning, the COP's are supposed to switch owner, the unit casting this spell will become owned neutral passive, and the targeted unit will become owned by the owner of the triggering unit.
here's the trigger that not working:
at the moment the trigger only makes so that the triggering unit changes owner, but not the target:banghead:
Editfft, fixed the problem seconds after i posted this thread
if anyone curious abot how i did i just changed the trigger to:
seems like changing colors dont work good with changing owner-ship..
here's the trigger that not working:
Trigger:
- Change Place
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Change Place
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- CircleCount[(Player number of (Owner of (Triggering unit)))] Equal to 3
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Turn[(Player number of (Owner of (Triggering unit)))] Equal to True
- Then - Actions
- Unit - Change ownership of (Triggering unit) to Neutral Passive and Retain color
- Unit - Change color of (Triggering unit) to (Color of Neutral Passive)
- Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Retain color
- Unit - Change color of (Target unit of ability being cast) to (Color of (Owner of (Triggering unit)))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: You need 3 circle's...
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
at the moment the trigger only makes so that the triggering unit changes owner, but not the target:banghead:
Editfft, fixed the problem seconds after i posted this thread
if anyone curious abot how i did i just changed the trigger to:
Trigger:
- Change Place
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Change Place
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- CircleCount[(Player number of (Owner of (Triggering unit)))] Equal to 3
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Turn[(Player number of (Owner of (Triggering unit)))] Equal to True
- Then - Actions
- Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
- Unit - Change ownership of (Triggering unit) to Neutral Passive and Change color
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: You need 3 circle's...
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
seems like changing colors dont work good with changing owner-ship..