• 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.

[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