Healing Shell Spell

jarekpl12

TH.net Regular
Reaction score
6
i want to make regenerating HP spell... I think i will need 2 triggers 1st to cast spell and run 2nd and 2nd to regain HP per every second... any one know how to make that ?
 

jarekpl12

TH.net Regular
Reaction score
6
is it something like that?

Trigger:
  • Healing Shell
    • Events
      • Unit - starts casting a spell
    • Conditions
      • (Ability being cast) Equal to Healing Shell
    • Actions
      • Set HealedUnit = (Target unit of ability being cast)
      • Set Healer = (Triggering unit)
      • Trigger - Turn on Healing Shell Heal <gen>
      • Wait 15.00 seconds
      • Trigger - Turn off Healing Shell Heal <gen>
      • Custom script: call RemoveUnit(udg_HealedUnit)
      • Custom script: call RemoveUnit(udg_Healer)


Trigger:
  • Healing Shell Heal
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Set life of HealedUnit to ((Life of (Triggering unit)) + (0.50 x (Real((Intelligence of Healer (Include bonuses))))))
 

jarekpl12

TH.net Regular
Reaction score
6
damn it doesn't work... trigger makes HealingUnit's HP to minimum... after 15 seconds Healer and HealingUnit disappear...
 

jig7c

Stop reading me...-statement
Reaction score
123
is it something like that?

Trigger:
  • Healing Shell
    • Events
      • Unit - starts casting a spell
    • Conditions
      • (Ability being cast) Equal to Healing Shell
    • Actions
      • Set HealedUnit = (Target unit of ability being cast)
      • Set Healer = (Triggering unit)
      • Trigger - Turn on Healing Shell Heal <gen>
      • Wait 15.00 seconds
      • Trigger - Turn off Healing Shell Heal <gen>
      • Custom script: call RemoveUnit(udg_HealedUnit)
      • Custom script: call RemoveUnit(udg_Healer)
\

the last two custom script are errors!
Custom script: set udg_HealedUnit = no unit
Custom script: set udg_Healer = no unit
the custom script in the original trigger removes the unit after 15 seconds....
also
if this spell is MUI then this trigger is messed up, the wait screws it up...


Trigger:
  • Healing Shell Heal
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Set life of HealedUnit to ((Life of (Triggering unit)) + (0.50 x (Real((Inteligencja of Healer (Include bonuses))))))

intelligence is misspelled!
(Life of (HealedUnit) - need to fix that!

or

edit Inner Spell like the above mentioned post!
 

avalya

New Member
Reaction score
37
Wow dude, seriously EDIT YOUR POSTS, double and even triple posts are to an extent bannable, afaik. I'm growing tired of telling you this.

Also, don't use custom scripts for resetting unit variables, simply use;

Set HealedUnit = no unit
Set Healer = no unit

With your script you're REMOVING the UNIT and not resetting the variable.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top