Why doesn't this work?
[trigger=]
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Load
Actions
Custom script: local unit udg_caster = GetTriggerUnit()
Custom script: local unit udg_tgtdunit = GetSpellTargetUnit()
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of tgtdunit) Equal to Peon
Then - Actions
Unit - Add Battle Stations - peon to caster
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of tgtdunit) Equal to Grunt
Then - Actions
Unit - Add Battle Stations - grunt to caster
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of tgtdunit) Equal to Raider
Then - Actions
Unit - Add Battle Stations - raider to caster
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of tgtdunit) Equal to Tauren Chieftain
Then - Actions
Unit - Add Battle Stations - hero tauren chief to caster
Else - Actions
Custom script: set udg_tgtdunit = null
Custom script: set udg_caster = null
[/trigger]
[trigger=]
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Load
Actions
Custom script: local unit udg_caster = GetTriggerUnit()
Custom script: local unit udg_tgtdunit = GetSpellTargetUnit()
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of tgtdunit) Equal to Peon
Then - Actions
Unit - Add Battle Stations - peon to caster
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of tgtdunit) Equal to Grunt
Then - Actions
Unit - Add Battle Stations - grunt to caster
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of tgtdunit) Equal to Raider
Then - Actions
Unit - Add Battle Stations - raider to caster
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of tgtdunit) Equal to Tauren Chieftain
Then - Actions
Unit - Add Battle Stations - hero tauren chief to caster
Else - Actions
Custom script: set udg_tgtdunit = null
Custom script: set udg_caster = null
[/trigger]