HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Mapping Linking Help....please

01-24-2004, 03:15 PM#1
Cthulhu
Hi, I am linking two maps, everything works fine except for my hero loses his skill points, they reset to 1 and I have to re-invest it, how do I have my hero retain his points across maps?
01-24-2004, 03:40 PM#2
Narwanza
Make a game cache, store your hero in it, and then revive your hero from that same game cache in the new map.
01-25-2004, 01:53 AM#3
Cthulhu
How would I do that? a break down of the Trigger/Variables would help my efforts vastly
01-25-2004, 04:18 AM#4
Daleth
Here's the triggers I used to transfer a hero between maps:

Save hero:
Game Cache - Create a game cache from centaur.w3v
Game Cache - Store Brolg as Brolg02 of Heroes in (Last created game cache)
Game Cache - Save (Last created game cache)


Restore hero:
Game Cache - Create a game cache from centaur.w3v
Game Cache - Restore Brolg02 of Heroes from (Last created game cache) for Player 1 (Red) at (Center of Brolg Start <gen>) facing 90.00
Set Brolg = (Last restored unit)


Some important notes to keep in mind:
I increment the Brolg02 part (which is the line that actually restores the unit) for each level. That means that on the next level, I will save him as Brolg03. This way, the hero is uniquely stored on each level, so that (assuming this is a campaign), the player can go back to that level, and won't have the hero he had on the last level he played.

I set a variable to the hero. This way, I can use the hero easily refer to him when I want to save him ago. There's other ways to do it, but I find this to be the easiest way, and to take up the least processing power.