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

frenzy, spirit touch, etc without condition

Status
Not open for further replies.
Level 13
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.
 
Level 8
Joined
Aug 3, 2008
Messages
391
Hard to understand your post...but if you meant for the spell to be activated automatically without the player's doing you could probably do this:

Event - Unit is attacked

Condition - Or
Attacking unit type equal to YourUnit
Attacked unit type equal to YourUnit

Action - If Attacked unit type equal to YourUnit
Order attacked unit to cast spell (frenzy or sumthing)
If Attacking unit type equal to YourUnit
Order attacking unit to cast spell (frenzy or something)

Sorry, if messy, hope you find it useful.
 
Level 13
Joined
May 11, 2008
Messages
1,198
that's not what i was trying to do, i'm trying to make it so that the spell will happen everytime the cooldown runs out no matter whether your unit is attacking, moving, casting a spell, etc. anyway it's not a big deal, it just seems like you should be able to make it happen easily
 
Level 15
Joined
Dec 18, 2007
Messages
1,098
I have an idea actually, base the spell off Raise Dead.
Next, you set the camera bounds with triggers or using Scenario-Camera bounds or something. Then, create a graveyard thing that generates corpse like crazy. So the unit will keep using the spell as long as he/she is not moving, if the cooldown has expired.
Another way might be to create a trigger with the event of a periodic timer, then just pick every unit on the map and tell them to use the spell.
 
Status
Not open for further replies.
Top