- Joined
- May 20, 2009
- Messages
- 822
EDIT: Everything that's "Draft" is a Non-Complete Trigger. (For Future references, use them at your own discretion!)
For complete triggers, go to Post #15
Ignore the mess of it, I haven't been able to clean it up yet because I can't even get it to function.
What this is suppose to do is:
When the unit casts Immolation, it's suppose to do the following
1. Index the unit.
2. Check the level of the ability.
3. Save the level of the ability, Create a unit that uses a modified version of Shadow Strike, one with a negative value of movement speed reduction so it increases movement speed.
4. That unit is then killed via expiration timer.
5. Add the Ghost ability to the unit, so it is permanently invisible. (Can attack, cast spells, etc, and stay invisible.)
6. Remove the initial buff the ability gives, and the ability.
7. Add a dummy ability that is the "Toggle Off" part of the spell.
8. Set the level of that dummy ability to the level that was saved.
Then, when the order is ManaShield:
1. Get the level of the dummy spell.
2. Remove the dummy spell.
3. Add the original spell back.
4. Set the level of the original spell to the saved level.
5. Remove the "Speed Bonus" given by the dummy unit.
6. Remove Ghost from the unit.
7. Deindex.
It WILL NOT remove the ability and add the new ability!! It WON'T set the level of the new ability! And it WON'T apply Ghost!
For complete triggers, go to Post #15
Ignore the mess of it, I haven't been able to clean it up yet because I can't even get it to function.
What this is suppose to do is:
When the unit casts Immolation, it's suppose to do the following
1. Index the unit.
2. Check the level of the ability.
3. Save the level of the ability, Create a unit that uses a modified version of Shadow Strike, one with a negative value of movement speed reduction so it increases movement speed.
4. That unit is then killed via expiration timer.
5. Add the Ghost ability to the unit, so it is permanently invisible. (Can attack, cast spells, etc, and stay invisible.)
6. Remove the initial buff the ability gives, and the ability.
7. Add a dummy ability that is the "Toggle Off" part of the spell.
8. Set the level of that dummy ability to the level that was saved.
Then, when the order is ManaShield:
1. Get the level of the dummy spell.
2. Remove the dummy spell.
3. Add the original spell back.
4. Set the level of the original spell to the saved level.
5. Remove the "Speed Bonus" given by the dummy unit.
6. Remove Ghost from the unit.
7. Deindex.
-
Cloaking Index
-
Events
- Unit - A unit Is issued an order with no target
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Issued order) Equal to (Order(immolation))
-
Then - Actions
- Set CloakLevelMaxIndex = (CloakLevelMaxIndex + 1)
- Set CloakingUnit[CloakLevelMaxIndex] = (Triggering unit)
- Trigger - Turn on Cloaking Calc <gen>
-
For each (Integer CloakLevelInit) from 1 to CloakLevelMaxIndex, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Issued order) Equal to (Order(immolation))
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Ordered unit) has buff Cloaking ) Equal to True
- (Ordered unit) Equal to CloakingUnit[CloakLevelInit]
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Cloak for CloakingUnit[CloakLevelInit]) Equal to 1
-
Then - Actions
- Set CloakLevel[CloakLevelInit] = 1
- Set SpeedBonusApplied[CloakLevelInit] = True
- Unit - Create 1 Dummy Ability Unit 1 for (Owner of CloakingUnit[CloakLevelInit]) at (Position of CloakingUnit[CloakLevelInit]) facing (Position of CloakingUnit[CloakLevelInit])
- Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike CloakingUnit[CloakLevelInit]
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Cloak for CloakingUnit[CloakLevelInit]) Equal to 2
-
Then - Actions
- Set CloakLevel[CloakLevelInit] = 2
- Set SpeedBonusApplied[CloakLevelInit] = True
- Unit - Create 1 Dummy Ability Unit 2 for (Owner of CloakingUnit[CloakLevelInit]) at (Position of CloakingUnit[CloakLevelInit]) facing (Position of CloakingUnit[CloakLevelInit])
- Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike CloakingUnit[CloakLevelInit]
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Cloak for CloakingUnit[CloakLevelInit]) Equal to 3
-
Then - Actions
- Set CloakLevel[CloakLevelInit] = 3
- Set SpeedBonusApplied[CloakLevelInit] = True
- Unit - Create 1 Dummy Ability Unit 3 for (Owner of CloakingUnit[CloakLevelInit]) at (Position of CloakingUnit[CloakLevelInit]) facing (Position of CloakingUnit[CloakLevelInit])
- Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike CloakingUnit[CloakLevelInit]
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Game - Display to (All players) the text: (String(CloakSpeedBonus[CloakLevelInit]))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
- Unit - Add Ghost to CloakingUnit[CloakLevelInit]
- Unit - Remove Cloak from CloakingUnit[CloakLevelInit]
- Unit - Remove Cloaking buff from CloakingUnit[CloakLevelInit]
- Unit - Add Deactivate Cloaking to CloakingUnit[CloakLevelInit]
- Unit - Set level of Deactivate Cloaking for CloakingUnit[CloakLevelInit] to CloakLevel[CloakLevelInit]
- Set SpeedBonusApplied[CloakLevelInit] = True
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Issued order) Equal to (Order(manashield))
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering unit) Equal to CloakingUnit[CloakLevelInit]
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Deactivate Cloaking for CloakingUnit[CloakLevelInit]) Equal to 1
-
Then - Actions
- Set CloakLevel[CloakLevelInit] = 1
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Deactivate Cloaking for CloakingUnit[CloakLevelInit]) Equal to 2
-
Then - Actions
- Set CloakLevel[CloakLevelInit] = 2
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Deactivate Cloaking for CloakingUnit[CloakLevelInit]) Equal to 3
-
Then - Actions
- Set CloakLevel[CloakLevelInit] = 3
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Unit - Remove Deactivate Cloaking from (Triggering unit)
- Unit - Add Cloak to (Triggering unit)
- Unit - Set level of Cloak for (Triggering unit) to CloakLevel[CloakLevelInit]
- Unit - Remove Speed Bonus (1) buff from (Triggering unit)
- Unit - Remove Ghost from CloakingUnit[CloakLevelInit]
- Set CloakingUnit[CloakLevelInit] = CloakingUnit[CloakLevelMaxIndex]
- Set CloakingUnit[CloakLevelMaxIndex] = No unit
- Set CloakSpeedBonus[CloakLevelInit] = CloakSpeedBonus[CloakLevelMaxIndex]
- Set CloakSpeedBonus[CloakLevelMaxIndex] = 0.00
- Set CloakLevelMaxIndex = (CloakLevelMaxIndex - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
It WILL NOT remove the ability and add the new ability!! It WON'T set the level of the new ability! And it WON'T apply Ghost!
Last edited: