jaybles169
New Member
- Reaction score
- 2
Does this not work because both P1 Holy Light and P2 Holy Light (and P3) are based on the same spell, and the editor can't differentiate between them, even though they have different names/ID's? (Not work in a sense that it executes all 'if' statements no matter which spell is cast) I got it to work when I use different base spells, but then I'd have to weed through every spell to get the desired effects. :banghead:
Trigger:
- HolyLightTest
- Events
- Unit - A unit Begins casting an ability
- Conditions
- ((Triggering unit) is A Hero) Equal to True
- ((Triggering unit) belongs to an ally of Player 9 (Gray)) Equal to True
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to P1 Holy Light
- Then - Actions
- Unit - Order (Triggering unit) to Human Paladin - Holy Light Player[0]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to P2 Holy Light
- Then - Actions
- Unit - Order (Triggering unit) to Human Paladin - Holy Light Player[1]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to P3 Holy Light
- Then - Actions
- Unit - Order (Triggering unit) to Human Paladin - Holy Light Player[2]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events