Hello!
I'm creating this Venom Splasher (inspired by a skill in RO's Assassin). Problem is with the "leak-killer" custom codes are enabled, it would only make the skill work once.
1) If I remove the timer pause and destroy timer, the trigger would trigger multiple times
2) If the 3 custom scripts at the bottom are enabled, the units are not added to the Area UNITGroup and are not damaged!
Please help correcting my trigger so the skill is leakless and working
NOTE: This is the effect part of the Skill Trigger, the INIT part is only to check/trigger this EVENT when the skill is used
I'm creating this Venom Splasher (inspired by a skill in RO's Assassin). Problem is with the "leak-killer" custom codes are enabled, it would only make the skill work once.
1) If I remove the timer pause and destroy timer, the trigger would trigger multiple times
2) If the 3 custom scripts at the bottom are enabled, the units are not added to the Area UNITGroup and are not damaged!
-
Venom Splash End
-
Events
- Time - VenomSplasher_TIMER expires
- Conditions
-
Actions
- Countdown Timer - Pause VenomSplasher_TIMER
- Custom script: call DestroyTimer(udg_VenomSplasher_TIMER)
- Set VenomSplasher_targetLoc = (Position of VenomSplasher_target)
- Custom script: set bj_wantDestroyGroup = true
- Set VenomSplasher_area = (Units within 500.00 of VenomSplasher_targetLoc matching (((Matching unit) belongs to an ally of (Owner of VenomSplasher_caster)) Equal to False))
-
Unit Group - Pick every unit in VenomSplasher_area and do (Actions)
-
Loop - Actions
- Set VenomSplasher_count = (VenomSplasher_count + 1.00)
- Unit Group - Add (Picked unit) to VenomSplasher_targetGrp
- Game - Display to (All players) the text: (Count + (String(VenomSplasher_count)))
-
Loop - Actions
- Set VenomSplasher_dmg = (1000.00 / VenomSplasher_count)
-
Unit Group - Pick every unit in VenomSplasher_targetGrp and do (Actions)
-
Loop - Actions
- Game - Display to (All players) the text: (Damage + (String(VenomSplasher_dmg)))
- Unit - Cause VenomSplasher_caster to damage (Picked unit), dealing VenomSplasher_dmg damage of attack type Spells and damage type Universal
-
Loop - Actions
- Animation - Change VenomSplasher_target's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Set VenomSplasher_count = 0.00
- Game - Display to (All players) the text: (Final Count + (String(VenomSplasher_count)))
- Game - Display to (All players) the text: (Total Damage + (String(VenomSplasher_dmg)))
- Custom script: call RemoveLocation(udg_VenomSplasher_targetLoc)
- Custom script: call DestroyGroup(udg_VenomSplasher_area)
- Custom script: call DestroyGroup(udg_VenomSplasher_targetGrp)
-
Events
Please help correcting my trigger so the skill is leakless and working
NOTE: This is the effect part of the Skill Trigger, the INIT part is only to check/trigger this EVENT when the skill is used