Curo
Why am I still playing this game...?
- Reaction score
- 109
Did a search of the tutorial repository using the word "cache"; nothing appropriate came up.
If you understand nothing of my post, seeing as I am terrible at explaining, please focus on the bolded statement.
I'm looking for some sort of a guide to how game caches work, in particular, storing units in them. For example, I need to know things like if I save a unit, then restore it at a later time (for my uses, I would be using restore to revive the unit), would the unit's abilities cooldown statuses be the same? If I save the unit to the cache, add an ability, then restore the unit at a later time, would the unit have that ability? If not, is it safe to overwrite the unit as it is stored in the cache. I am going to constantly be changing a unit, and I basically want it to be revived after death, retaining any abilities I have added to it via a trigger. Also, how does the "replace" function fit into all this, or does it at all? A quick overview of what exactly replacing does would be nice.
If you understand nothing of my post, seeing as I am terrible at explaining, please focus on the bolded statement.
I'm looking for some sort of a guide to how game caches work, in particular, storing units in them. For example, I need to know things like if I save a unit, then restore it at a later time (for my uses, I would be using restore to revive the unit), would the unit's abilities cooldown statuses be the same? If I save the unit to the cache, add an ability, then restore the unit at a later time, would the unit have that ability? If not, is it safe to overwrite the unit as it is stored in the cache. I am going to constantly be changing a unit, and I basically want it to be revived after death, retaining any abilities I have added to it via a trigger. Also, how does the "replace" function fit into all this, or does it at all? A quick overview of what exactly replacing does would be nice.