- Joined
- Jun 9, 2013
- Messages
- 51
I am working on a campaign but the first problem I couldn't solve is Game Cache. I want to create separate classes, each with separate EXP, health and Mana, but with the same Stats (str, Agi, Int).
This is why I'm asking you: what does a "Game Cache - STore Unit" function stores? Only the unit's basic information (what you set in the Unit Editor)? The Experience of the Heroes? Skills and skill levels? inventory?
I also stored gold and lumber (second currency, lumber will be changed to silver). Is this enough: "store Int (Current gold of Player 1) as Gold" and at the second map (the system will be like Rexxar's campaign) the trigger is "Set Player 1's Gold to (Game Cache - Load Gold)"?
And, for third: how can I do that I want to have 3 heroes (ok, there will be more) bit you can only play with one, because they will be classes, and if you enter a submap using Mage and want to return with Bandit, then can I simply move and replace the Mage on the main map by a bandit and set its inventory the same? Or do I have to remove the mage from the game before map switching starts, and then place a new bandit in the arrival area if I load the map again?
And for fourth, I want the other, currently unused classes (i mean if you are using the Bandit, then the unused classes are Mage and Warrior) stored somewhere, but they must be removed from the game (they must not exist as units, but only data that can be placed as an unit, like in Game Cache) but in specific regions I want them to be replaced by anither class (or let's just say I want to switch a class), then what do I have to do? Save the unit's inventory, store it into Game Cache, and restore the other unit to a set position?
Thanks for your help.
This is why I'm asking you: what does a "Game Cache - STore Unit" function stores? Only the unit's basic information (what you set in the Unit Editor)? The Experience of the Heroes? Skills and skill levels? inventory?
I also stored gold and lumber (second currency, lumber will be changed to silver). Is this enough: "store Int (Current gold of Player 1) as Gold" and at the second map (the system will be like Rexxar's campaign) the trigger is "Set Player 1's Gold to (Game Cache - Load Gold)"?
And, for third: how can I do that I want to have 3 heroes (ok, there will be more) bit you can only play with one, because they will be classes, and if you enter a submap using Mage and want to return with Bandit, then can I simply move and replace the Mage on the main map by a bandit and set its inventory the same? Or do I have to remove the mage from the game before map switching starts, and then place a new bandit in the arrival area if I load the map again?
And for fourth, I want the other, currently unused classes (i mean if you are using the Bandit, then the unused classes are Mage and Warrior) stored somewhere, but they must be removed from the game (they must not exist as units, but only data that can be placed as an unit, like in Game Cache) but in specific regions I want them to be replaced by anither class (or let's just say I want to switch a class), then what do I have to do? Save the unit's inventory, store it into Game Cache, and restore the other unit to a set position?
Thanks for your help.