xkid4ditya
New Member
- Reaction score
- 13
Hi, there! I need your help about using duration with trigger..
a simple spell/skill i guess, add few skill to triggering unit when a spell is triggerd.
was i use this trigger.
60 sec wait is the duration and Tes Skill (atk, def, HP and stats) is item ability, this trigger work well BUT i need something different (without using wait).
and now i use this trigger.
Trigger 1 INITIAL ON
Trigger 2 INITIAL OFF
The trigger work well, but the problem is when the duration runout (which is 60 sec). It not remove the additional skill, is there any solution.? Thank's for you guys who can help me
My apologize for my spelling
a simple spell/skill i guess, add few skill to triggering unit when a spell is triggerd.
was i use this trigger.
Trigger:
- Tes Skill
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Tes Skill
- Actions
- Special Effect - Create a special effect attached to the weapon,right of (Triggering unit) using Abilities\Weapons\ZigguratFrostMissile\ZigguratFrostMissile.mdl
- Set TS_Effect = (Last created special effect)
- Unit - Add Tes Skill (atk) to (Triggering unit)
- Unit - Add Tes Skill (def) to (Triggering unit)
- Unit - Add Tes Skill (HP) to (Triggering unit)
- Unit - Add Tes Skill (stats) to (Triggering unit)
- Wait 60.00 seconds
- Unit - Remove Tes Skill (atk) from (Triggering unit)
- Unit - Remove Tes Skill (def) from (Triggering unit)
- Unit - Remove Tes Skill (HP) from (Triggering unit)
- Unit - Remove Tes Skill (stats) from (Triggering unit)
- Special Effect - Destroy TS_Effect
- Events
60 sec wait is the duration and Tes Skill (atk, def, HP and stats) is item ability, this trigger work well BUT i need something different (without using wait).
and now i use this trigger.
Trigger 1 INITIAL ON
Trigger:
- Tes Skill
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Tes Skill
- Actions
- Set TS_Duration = 60
- Special Effect - Create a special effect attached to the weapon,right of (Triggering unit) using Abilities\Weapons\ZigguratFrostMissile\ZigguratFrostMissile.mdl
- Set TS_Effect = (Last created special effect)
- Unit - Add Tes Skill (atk) to (Triggering unit)
- Unit - Add Tes Skill (def) to (Triggering unit)
- Unit - Add Tes Skill (HP) to (Triggering unit)
- Unit - Add Tes Skill (stats) to (Triggering unit)
- Trigger - Turn on Tes Skill Duration <gen>
- Events
Trigger 2 INITIAL OFF
Trigger:
- Tes Skill Duration
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- Set TS_Duration = (TS_Duration - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- TS_Duration Less than or equal to 0
- Then - Actions
- Unit - Remove Tes Skill (atk) from (Triggering unit)
- Unit - Remove Tes Skill (def) from (Triggering unit)
- Unit - Remove Tes Skill (HP) from (Triggering unit)
- Unit - Remove Tes Skill (stats) from (Triggering unit)
- Special Effect - Destroy TS_Effect
- Trigger - Turn off (This trigger)
- Else - Actions
- If - Conditions
- Events
The trigger work well, but the problem is when the duration runout (which is 60 sec). It not remove the additional skill, is there any solution.? Thank's for you guys who can help me
My apologize for my spelling