• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

Dummy cast certain level of ability

Status
Not open for further replies.
Level 25
Joined
May 11, 2007
Messages
4,650
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