I wanted to temporarily change the custom value of a unit. Initially set the custom value to 1, wait 3 seconds, change back to 0. Simple as that. It needs to be MUI. Trouble is, this trigger doesn't save. Various error messages appear which disables the trigger.
I have almost NO knowledge of Jass. I modified this trigger from my other map, which someone created for me. I was just instructed to change values. Please make any instructions clear for a non Jass user. Thanks.
I have almost NO knowledge of Jass. I modified this trigger from my other map, which someone created for me. I was just instructed to change values. Please make any instructions clear for a non Jass user. Thanks.
-
Heal Drone Buff
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Ability being cast) Equal to Heal (Lvl 1)
- (Ability being cast) Equal to Heal (Lvl 2)
- (Ability being cast) Equal to Heal (Lvl 3)
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Unit - Set the custom value of (Triggering unit) to 1
- -------- -------- --------
- Custom script: local integer HEALWAIT
- Custom script: local timer OURTIMER
- Custom script: local unit OURDRONE
- Custom script: set OURDRONE = GetTriggeringUnit()
- Custom script: set HEALWAIT = 3
- Custom script: set OURTIMER = CreateTimer()
- Custom script: call StartTimerBJ( OURTIMER, false, ( I2R(HEALWAIT) ))
- Custom script: call PolledWait( HEALWAIT )
- Custom script: call SetUnitUserData( GetOURDRONE(), 0 )
- Custom script: call UnitAddItemByIdSwapped( 'pnvu', OURHERO )
-
Events