• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Need some help about game cache (Ability)

Status
Not open for further replies.
Level 1
Joined
Feb 25, 2016
Messages
1
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:
 
Level 11
Joined
Aug 24, 2012
Messages
429
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.
 
Level 10
Joined
May 21, 2006
Messages
323
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.
Top