Hi
im using bribe's unit indexer (i think u know it)
just one question: do i use it correctly in that trigger?
how to do the trigger better or more efficient?
im using bribe's unit indexer (i think u know it)
just one question: do i use it correctly in that trigger?
how to do the trigger better or more efficient?
-
Holy Cure 1
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) equal to Ability[1]
-
Actions
- Set Cure_Caster = (Triggering unit)
- Set Cure_Integer = (Custom value of Cure_Caster)
- Set Cure_Target[Cure_Integer] = (Target unit of ability being cast)
- Set Cure_Time[Cure_Integer] = 1.75
- Unit Group - Add Cure_Caster to Cure_Group
- Trigger - Turn on Holy Cure 3 <gen>
-
Events
-
Holy Cure 2
-
Events
- Unit - A unit stops casting an ability
-
Conditions
- (Ability being cast) equal to Ability[1]
-
Actions
- Set Cure_Caster = (Triggering unit)
- Set Cure_Integer = (Custom value of Cure_Caster)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- Cure_Time[Cure_Integer] smaller than 0.00
-
'THEN'-Actions
- Unit - Cause Cure_Caster to damage Cure_Target[Cure_Integer], dealing ((Real((Intelligence of Cure_Caster (include bonuses)))) x -2.50) damage of attack type spells and damage type Normal
- Special Effect - Create a special effect attached to the origin of Cure_Target[Cure_Integer] using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- 'ELSE'-Actions
-
'IF'-Conditions
- Unit Group - Remove Cure_Caster from Cure_Group
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- (Number of units in Cure_Group) equal to 0
-
'THEN'-Actions
- Trigger - Turn off Holy Cure 3 <gen>
- 'ELSE'-Actions
-
'IF'-Conditions
-
Events
-
Holy Cure 3
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in Cure_Group and do (Actions)
-
Loop - Actions
- Set Cure_Caster = (Picked unit)
- Set Cure_Integer = (Custom value of Cure_Caster)
- Set Cure_Time[Cure_Integer] = (Cure_Time[Cure_Integer] - 0.10)
-
Loop - Actions
-
Unit Group - Pick every unit in Cure_Group and do (Actions)
-
Events