• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Need some help about game cache (Ability)

Status
Not open for further replies.

YuiSama

Y

YuiSama

i know how to store a hero from map to map (by gamecache). but when i add ability (by trigger) to that hero, the ability is disappeared when the hero is loaded to another map (i dont add ability in object editor).
you guys can show me how to fix it?. thanks you and sorry for my bad english :ogre_icwydt:
 
You would have to re-add the triggered ability at the beginning of every map. You can keep track of that added ability via a variable or integer (if I remember correctly) which is stored in the game cache the same way you stored your Hero.
 
You need a trigger which stores a Boolean for example (if hero has ability XY then set HeroHasAbi = true, store HeroHasAbi as Bolean in category blabla
And when the next map starts you simply give it to him if the stored Boolean is = true.
 
Status
Not open for further replies.
Back
Top