• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

rejunivation as trigger

Not open for further replies.
Level 4
Dec 15, 2007
hi, how i can do that rejunivation heals as trigger? i testet differents thinks but now i havent any idea anymore thx for help
Level 19
Aug 24, 2007
Every Seconds
Pick Every Unit in map with Rej buff
increase their health

Unit Starts Effect of Ability
if its Rej
Custom script: local unit udg_TempUnit = GetSpellTargetUnit()
Unit - Add <self healing fountain of health ability> to TempUnit
Wait X seconds
Unit - Remove <self healing fountain of health ability> from TempUnit

Unit Starts Effect of Ability
if Ability is equal to (ability of Druids use)
Do Nothing because it already heals

Unit Starts effect of ability
If ability is Rej
Custom script:local unit u = GetSpellTargetUnit()
Custom script:local real heal = <heal per second>
Custom script:loop
Custom script:exitwhen GetUnitAbilityLevel(u,<Rejbuffrawcode>) = 0
Wait(1.0) second
Custom script:call SetUnitState(u,UNIT_STATE_LIFE,GetUnitState(u,UNIT_STATE_LIFE)+heal)
Custom script:endloop
Custom script:set u = null
Not open for further replies.