• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade 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.
Level 25
Joined
May 11, 2007
Messages
4,648
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
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
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
 
Level 6
Joined
May 20, 2014
Messages
228
> 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.
Top