• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! 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,651
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