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

CHance to cast

Status
Not open for further replies.
Level 4
Joined
Feb 4, 2014
Messages
50
Hello there,

I wish to know if there is a way how can I make a hero cast spell he don't have.

I am trying to create a spell using triggers, that has a chance to land a critical strike (I borrowed the original one) and via triggers I'm trying to somehow make that hero cast another spell to the target he landed that crit.

Also, is there a way to create via trigger a unit that has limited durability?
(like ghost wolves or Water elementals)

thank you for your advice in advance
 
Level 4
Joined
Feb 4, 2014
Messages
50
Thank you very much.

I stumbled across another problem I would be greatful to hear answer to;
is there a way I can add a specific buff to a unit using trigger?
 
Level 4
Joined
Jul 17, 2012
Messages
51
okay i give you a sample.
Even i using my phone

Event: unit start effect of ability
Condition: ability being cast = inner fire
Action:
Set caster= triggering unit
create 1 dummy for owner of caster at position of caster
Set dummy caster = last created unit
Add inner fire to dummy caster
Add generic timer to caster dummy = 1 second
Order caster dummy to human priest inner fire caster.

Note: in object editor change mana of inner fire to 0 and change every their to 0 to dont get the effect of inner fire to your caster.


CLEARING LEAKS.
Event: generic unit dies
Condition: unit type of triggering unit is equal to dummy
Action: remove triggering unit from the game
 
Level 4
Joined
Feb 4, 2014
Messages
50
Thank you, it's not exactly the solution (mostly because I didn't know what I've wanted at the time being) but with your help and knowledge I've been able to find what I've been looking for. Once again I'm grateful for your cooperation.
 
CLEARING LEAKS.
Event: generic unit dies
Condition: unit type of triggering unit is equal to dummy
Action: remove triggering unit from the game

Units don't leak.. locations do. Cache the caster's location into a variable then remove it after use.

Note that Inner Fire with 0.00 duration will remain eternal; use 0.01.
 
Status
Not open for further replies.
Top