• 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.

New Problem with spell/trigger

Status
Not open for further replies.
Level 3
Joined
Nov 22, 2006
Messages
28
Hello, again.
I've started to do a new spell, a dark ritual like one but the ability regen health not life, im using abilities(potion), the main problem is that the nit dies but the hero dont regen life... the trigger is the following:
  • sacrifice level 1
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Level of Sacrifice for (Triggering unit)) Equal to 1
      • (Unit-type of (Triggering unit)) Equal to Evil King
      • (Item-type of (Last created item)) Equal to Full Health potion
      • (Ability being cast) Equal to Sacrifice
      • (Unit-type of (Last created unit)) Equal to Ghost
    • Actions
      • If ((Ability being cast) Equal to Sacrifice ) then do (Hero - Order (Last created unit) to use (Last created item) on (Triggering unit)) else do (Hero - Order (Last created unit) to use (Last created item) on (Triggering unit))
      • If ((Ability being cast) Equal to Sacrifice ) then do (Unit - Create 1 Ghost for Neutral Extra at (Target point of ability being cast) facing (Position of (Triggering unit))) else do (Do nothing)
      • Wait 2.00 seconds
      • If ((Unit-type of (Last created unit)) Equal to Ghost) then do (Unit - Kill (Last created unit)) else do (Do nothing)
Ill give +rep to any one that helps and (if i learn to) will put on credit list.
edit: the base spell for the main abilitie is storm bolt, i tryed with channel but the unit didnt die...
Cheerz.

PS: After i do this hero ill start doing some of the other faction heros to post a beta.
 
Last edited:
Level 14
Joined
Jul 1, 2008
Messages
1,314
can u please explain what you want to do, because this would be a wonder if this spell worked like this (no offense :))

First of all: U cant use Hero "Learns a spell" and "Ability being Cast" together, because Ability being cast only reacts on Castin/Channeling Events.

Second: your using too many (Last Created), and i sometimes makes no sence...

Same thing with the Unit, that is one of your main Conditions for the whole spell; it is mentioned before it is even created:
"(Unit-type of (Last created unit)) Equal to Ghost"

Third Thing: Who do you want to kill? ...

Fourth Thing: If your using Strom Bolt, there is no Target point Of Ability, because its targeting Units :)

hm but i really dont know yet what exactly you want to do, im sry...^^
(plz explain again)

Greets
 
Level 3
Joined
Nov 22, 2006
Messages
28
The dark ritual spell kill a allied unit and makes the life of the killed unit in mana for the hero, what i want to do is a spell that kill a allied unit and gives life for my hero.

U cant use Hero "Learns a spell" and "Ability being Cast" together
i didnt.

Second: your using too many (Last Created), and i sometimes makes no sence...
any idea on how to dont use many?

Third Thing: Who do you want to kill? ...
an allied unit.

Fourth Thing: If your using Strom Bolt, there is no Target point Of Ability, because its targeting Units :)
any idea what to do then?? =P

thanks for trying to help anyway

Cheers.
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
I will do the spell for you since i need exactly the same for my brother, so i will give you the code by editing this post ;)

But by the way, Yes you took the Event: a unit learns a skill and one of the conditions is "Ability being cast" but nvm ;)
 
Level 3
Joined
Nov 22, 2006
Messages
28
Man, i don't know a way to thank you, i've given +rep... and you ofc will be credited on my map.
If you want send me a pm and i'll give you a beta version of it ;)
Cheers
 
Status
Not open for further replies.
Top