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

Periodic Ability Toggling

Status
Not open for further replies.
Level 2
Joined
May 26, 2014
Messages
18
I am trying to give a hero a hero ability "Madness" which when taken gives the hero a number of normal abilities, for a short duration, followed by a large cooldown, and each on separate cooldowns.

Target abilities are item armor bonus, item damage bonus, item mana regen, item life bonus, item orb of lighting, item evasion, item critical strike, etc. None of these abilities are meant to show on the heroes icons. (I'm looking for work-arounds for evasion, crit, orb abilities)

My Primary concern is that of the methods I am able to compile for going about this, all rely on a large amount of periodic event/trigger enable/trigger disable type of activity and I am concerned about the massive level of lag this might add if I pull this with 10 or so separate abilities and probably 1-2 triggers each in order to allow for seperate cooldowns.

So, I could really use some advice on another route to take with this if it is possible.

I can manipulate jass, (to a mediocre extent,) but I cannot write it. I am unsure if that is required or not.
 
Level 2
Joined
May 26, 2014
Messages
18
I need them on separate cooldowns so as to create the appearance of random activity. I couldn't do that by using a spell book could I? I have never been forced to resort to a spell book, so I confess my experience there is limited.

I want to place them on 1st ability enabled 2 seconds duration/diabled 4 second cooldown, 2nd ability enabled 3 seconds/disabled 6 second cooldown, 3rd ability enabled 4 seconds/disabled 8 second cooldown, etc. I figure with enough passives it'll be too hard to keep track of them casually and let it feel orderly. I even know how to switch out their cooldowns if it still feels too orderly. I just don't know how to do it without mass periodic events/enabled or disabled trigger loops.

Is there a means of randomly selecting an ability from a spellbook? I suspected anything involving actual randomness involves near pro level coding.
 
Level 2
Joined
May 26, 2014
Messages
18
its a single hero map/non-mui map.

I am reading http://www.thehelper.net/threads/random-events.61400/ this right now and I am wondering if I can make 1 trigger per ability, each with expiration timers, each keyed to an integer of an index and 1 seperate trigger to pull up a random number from the index periodically which would limit my periodic events to just one trigger....

I'm not really sure what you mean by pre created timers. Wouldn't i need to set hundreds of timers to last an entire game duration?
 
Level 2
Joined
May 26, 2014
Messages
18
Ahh.. So count down instead of counting up, and recycle the variables. 10 countdown timers running at once won't lag as much as ten periodic events?
 
Status
Not open for further replies.
Top