• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Dummy cast certain level of ability

Status
Not open for further replies.
events: Unit a casts an ability
conditions: ability = storm bolt
actions:
set tempPoint1 = position of targeted unit of ability
create 1 dummy unit att tempPoint1
Add flame strike
unit - increase level of ability flame strike for last created unit to level of ability being cast
add timed life 2 seconds to last created unit
unit - order last created unit to flamestrike tempPoint1
remove tempPoint1
 
Just look at the 2 functions and you should understand.


The "Increase level" uses 2 parameters (Unit, ability)
I guess that it would do only :
Level of Ability for Unit = Level of Ability for Unit + 1
Do we want that ? No.

The "Set Level" uses 3 parameters (Unit, Ability, Integer)
It does:
Level of Ability for Unit = Integer
 
> Why so?

The action
  • Unit - Increase level of ability for (Triggering unit)
only increases it by one level.

This action is what you will want for it to be the same level as your ability:
  • Unit - Set level of ability for (Triggering unit) to 1
Though I assume Dz was saying that you should set it to that level, not using the increase ability function.

edit: 2mins late, wow
 
Status
Not open for further replies.
Back
Top