• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Help me with a simple triggered heal please

Status
Not open for further replies.

Paavo

P

Paavo

I am making an rpg map, and to make abilities more interesting i wanted to add some kind of attribute scaling to them. For damaging spells it has been quite a piece of cake, but healing seems to be a bit harder to make.

So, my spell here is almost like melee Paladin's 'Holy Light', but with the intelligence scaling. It aint just working.

  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Divine Touch
  • Actions
    • Set da = (0.50 x (Real((Intelligence of (Triggering unit) (Include bonuses)))))
    • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (25 + da))
I just noticed that I should post this to Triggers & Scripts forum. Could somebody move this?
 
I'm not an adept of using triggering unit(though I've heard it's better).
Have you tried... using casting unit instead of triggering?
  • Set da = (0.50 x (Real((Intelligence of (Casting Unit)(Include bonuses)))))
 
Also there is no need to use variable,this would do,
  • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (25 + (0.50 x (Real((Intelligence of (Triggering unit) (Include bonuses)))))))
It should work,unless the spell you're using as base spell is an AOE spell,in which case 'Target unit of ability being cast' wouldn't work.
 
I do not know. That spell ain't still working. What base spell did you use, by the way?
 
Also there is no need to use variable,this would do,
  • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (25 + (0.50 x (Real((Intelligence of (Triggering unit) (Include bonuses)))))))
It should work,unless the spell you're using as base spell is an AOE spell,in which case 'Target unit of ability being cast' wouldn't work.

Those do work, but it is a pain in the ass to fix if you make a mistake, having to click through so many boxes xD
 
So, I am using a hero, who has the 'spellbook' ability and i have that healin there. The heal is also an unit ability, not a hero ability. Do those things propably affect the spell?

Also, I do not know if you have time for it, but if you could make me a testmap with that spell working I would be very grateful. Since I cannot make it work.
 
Status
Not open for further replies.
Back
Top