SpasMaster
Hosted Project: SC
- Joined
- Jan 29, 2010
- Messages
- 1,986
Anyone knows why the first four actions in the following trigger are not executed?
[trigger=""]Research Chain Lightning
Events
Unit - A unit Finishes research
Conditions
(Unit-type of (Triggering unit)) Equal to Abilities (Shaman)
(Researched tech-type) Equal to Chain Lightning
Actions
Set Level_Group = (Units in Hero Levels <gen> matching ((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))))
Unit - Remove (Random unit from Level_Group) from the game
Set TypeRestriction_Group = (Units in Type 1 Dummies <gen> matching ((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))))
Unit - Remove (Random unit from TypeRestriction_Group) from the game
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Chain Lightning for Shaman) Greater than or equal to 1
Then - Actions
Unit - Set level of Chain Lightning for Shaman to (Current research level of Chain Lightning for (Owner of (Triggering unit)))
Else - Actions
Unit - Add Chain Lightning to Shaman
Custom script: call DestroyGroup(udg_Level_Group)
Custom script: call DestroyGroup(udg_TypeRestriction_Group)[/trigger]
[trigger=""]Research Chain Lightning
Events
Unit - A unit Finishes research
Conditions
(Unit-type of (Triggering unit)) Equal to Abilities (Shaman)
(Researched tech-type) Equal to Chain Lightning
Actions
Set Level_Group = (Units in Hero Levels <gen> matching ((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))))
Unit - Remove (Random unit from Level_Group) from the game
Set TypeRestriction_Group = (Units in Type 1 Dummies <gen> matching ((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))))
Unit - Remove (Random unit from TypeRestriction_Group) from the game
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Chain Lightning for Shaman) Greater than or equal to 1
Then - Actions
Unit - Set level of Chain Lightning for Shaman to (Current research level of Chain Lightning for (Owner of (Triggering unit)))
Else - Actions
Unit - Add Chain Lightning to Shaman
Custom script: call DestroyGroup(udg_Level_Group)
Custom script: call DestroyGroup(udg_TypeRestriction_Group)[/trigger]
Last edited: