- Joined
- May 11, 2008
- Messages
- 1,198
i want to know how you can make it so on the autocast type things like perhaps frenzy or spirit touch (or just any autocast ability in general i suppose, but these are the specific kind i need to figure out for my idea for a spell....) how to make these abilities autocast as soon as their cooldown goes down. now as for something like frenzy, you also have the option of making them cast as soon as the duration goes down and make that the same time as the cooldown. at any rate...i don't know how to trigger this and i thought for sure it would be a snap but i can't figure it out.
any solutions? so like my idea is the casting of a spell not done by the user, but timed. i tried doing this timed thing using a timer but i didn't really like the results. i was looking for something else. i thought for sure there should be events centered around abilities but all we got pretty much is unit does this and that...like for example a unit starting the effect of an ability...well what about a unit's ability finishes cooldown huh? wouldn't that be useful? is there possibly some JASS coding for that which i can use?
anyway i was going through the order string etc data on the ability for frenzy and i noticed that when you put in spirit touch that if (assuming i interpreted this right) you're in range of an enemy unit and doing nothing you will do the spell. which is fine i suppose. and it would be cool if you could add on more order strings like that but you can only seem to add on one... anyway i doubt that one of those does what i'm thinking i want because i can't think of any ability that behaves like that. raise dead for example would activate supposing there is a corpse nearby for example, right? and so on. it seems like you might need jass to do what i'm doing but if that will work, it would be GREAT if the solution can be a super simple one!!!
in the end i want it so that the spell goes off without the player asking it to, because i want to take away the control of when the spell goes off. so logically changing the cooldown from 40 to 30 to 20 and to 10 for four levels makes sense. so the problem though remains that the player can just hang onto the spell and use it when he wants to instead of it happening after the time goes by. that's why i'm hoping something can just make the spell happen automatically as soon as the cooldown wears off.
any solutions? so like my idea is the casting of a spell not done by the user, but timed. i tried doing this timed thing using a timer but i didn't really like the results. i was looking for something else. i thought for sure there should be events centered around abilities but all we got pretty much is unit does this and that...like for example a unit starting the effect of an ability...well what about a unit's ability finishes cooldown huh? wouldn't that be useful? is there possibly some JASS coding for that which i can use?
anyway i was going through the order string etc data on the ability for frenzy and i noticed that when you put in spirit touch that if (assuming i interpreted this right) you're in range of an enemy unit and doing nothing you will do the spell. which is fine i suppose. and it would be cool if you could add on more order strings like that but you can only seem to add on one... anyway i doubt that one of those does what i'm thinking i want because i can't think of any ability that behaves like that. raise dead for example would activate supposing there is a corpse nearby for example, right? and so on. it seems like you might need jass to do what i'm doing but if that will work, it would be GREAT if the solution can be a super simple one!!!
in the end i want it so that the spell goes off without the player asking it to, because i want to take away the control of when the spell goes off. so logically changing the cooldown from 40 to 30 to 20 and to 10 for four levels makes sense. so the problem though remains that the player can just hang onto the spell and use it when he wants to instead of it happening after the time goes by. that's why i'm hoping something can just make the spell happen automatically as soon as the cooldown wears off.