- Joined
- Feb 2, 2006
- Messages
- 1,695
I have the following trigger to replace a hero unit:
I am wondering if the RemoveUnit call in the ReplaceUnit call has some delay?!
-
Actions
- -------- Store Data --------
- Set VariableSet ReplaceUnitStrength = (Strength of ReplaceUnit (Exclude bonuses))
- Set VariableSet ReplaceUnitAgility = (Agility of ReplaceUnit (Exclude bonuses))
- Set VariableSet ReplaceUnitIntelligence = (Intelligence of ReplaceUnit (Exclude bonuses))
- Set VariableSet ReplaceUnitProperName = (Proper name of ReplaceUnit)
- Set VariableSet ReplaceUnitHeroAbilityLvlRob = (Level of Rob for ReplaceUnit)
- Set VariableSet ReplaceUnitHeroAbilityLvlBlink = (Level of Blinzeln for ReplaceUnit)
- -------- Replacement --------
- Unit - Replace ReplaceUnit with a ReplaceUnitNewUnitType using The old unit's relative life and mana
- Hero - Modify Strength of (Last replaced unit): Set to ReplaceUnitStrength.
- Hero - Modify Agility of (Last replaced unit): Set to ReplaceUnitAgility.
- Hero - Modify Intelligence of (Last replaced unit): Set to ReplaceUnitIntelligence.
- Hero - Set Name of (Last replaced unit) to ReplaceUnitProperName
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ReplaceUnitHeroAbilityLvlRob Greater than 0
-
Then - Actions
-
For each (Integer A) from 1 to ReplaceUnitHeroAbilityLvlRob, do (Actions)
-
Loop - Actions
- Hero - Learn skill for (Last replaced unit): Rob
-
Loop - Actions
-
For each (Integer A) from 1 to ReplaceUnitHeroAbilityLvlRob, do (Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ReplaceUnitHeroAbilityLvlBlink Greater than 0
-
Then - Actions
-
For each (Integer A) from 1 to ReplaceUnitHeroAbilityLvlBlink, do (Actions)
-
Loop - Actions
- Hero - Learn skill for (Last replaced unit): Blinzeln
-
Loop - Actions
-
For each (Integer A) from 1 to ReplaceUnitHeroAbilityLvlBlink, do (Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
- Game - Display to (All players) the text: (Replaced + ((Name of ReplaceUnit) + ( with + (Name of (Last replaced unit)))))
- Wait 1.00 seconds
- Game - Display to (All players) the text: (Count healthy humans: + (String((Number of units in (Units of type Healthy Human)))))
I am wondering if the RemoveUnit call in the ReplaceUnit call has some delay?!