• 🏆 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!

[JASS] Help me with some JASS coding plz

Status
Not open for further replies.
Level 1
Joined
Mar 16, 2005
Messages
1
I need some feature for my map, but I don't know how to code it. So, here it goes:

How can I make the Spell's casting time change when the Hero's Agility changes?

(e.g. when the Hero has 10 Agi, the Spell's casing time is, for example, 10 sec. And when he has his Agi increased, the Spell's casting time reduces to, for example, 1 sec at 100 Agi)

Help me plz :roll:
 
Level 3
Joined
Jul 17, 2004
Messages
57
change the "real" spell dur to 9999, make a trigger that checks the agility and start a timer check if the timer is stil running in a loop with Polledwait or TriggerSleepActions and exit when the timer is expired then order the channeling unit to stop.
 
Status
Not open for further replies.
Top