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