- Joined
- Dec 1, 2010
- Messages
- 346
Hello everyone,
so ive been working on a campaign for personal use lately, and the basic idea is to make it function a bit like the founding of durotar orc campaign.
with one main map and different smaller areas you can enter by walking into a cave or something.
so i have 2 maps,
and i basicly want to load the second map if the hero enters a region.
the hero level/items/gold should be saved in the second map just as in the campaign;
the hero should be able to go back to the main map by entering another region in the secondary map, saving the progress made (exp gold items)
anyone know how to do this?
((here are the triggers )
i'm not really able to figure out why it won't work.
if anyone with some knowledge wants to check it out that would be awesome
so ive been working on a campaign for personal use lately, and the basic idea is to make it function a bit like the founding of durotar orc campaign.
with one main map and different smaller areas you can enter by walking into a cave or something.
so i have 2 maps,
and i basicly want to load the second map if the hero enters a region.
the hero level/items/gold should be saved in the second map just as in the campaign;
the hero should be able to go back to the main map by entering another region in the secondary map, saving the progress made (exp gold items)
anyone know how to do this?
((here are the triggers )
-
cache
-
Events
- Map initialization
- Conditions
-
Actions
- Game Cache - Create a game cache from rubens map.w3v
- Set gamecache = (Last created game cache)
- Game Cache - Save gamecache
-
Events
-
waterfall
-
Events
- Unit - A unit enters enter waterfall <gen>
-
Conditions
- (Triggering unit) Equal to Chen Stormstout 0150 <gen>
-
Actions
- Trigger - Run Store Gold <gen> (ignoring conditions)
-
Events
-
Store Gold
- Events
- Conditions
-
Actions
- Set gold = (Player 1 (Red) Current gold)
- Game Cache - Store gold as Gold of Recources in gamecache
- Game Cache - Save gamecache
- Trigger - Run Store Hero Copy <gen> (ignoring conditions)
-
Store Hero Copy
- Events
- Conditions
-
Actions
- Game Cache - Store Chen Stormstout 0150 <gen> as Redhero of Heros in gamecache
- Game Cache - Save gamecache
- Trigger - Run Store Hero Name Copy <gen> (ignoring conditions)
-
Store Hero Name Copy
- Events
- Conditions
-
Actions
- Set heroname = (Proper name of RED_HERO)
- Game Cache - Store heroname as HeroName of Heros in gamecache
- Game Cache - Save (Last created game cache)
- Trigger - Run waterfall load map <gen> (ignoring conditions)
-
Load Game Cache
-
Events
- Map initialization
- Conditions
-
Actions
- Game Cache - Create a game cache from ruben map.w3v
- Set gamecache = (Last created game cache)
-
Events
-
Restore Hero
-
Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
-
Actions
- Game Cache - Restore Redhero of Heros from (Last created game cache) for Player 1 (Red) at (Center of Region 000 <gen>) facing 180.00
-
Events
-
Restore Gold
-
Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
-
Actions
- Set gold = (Load Gold of Recources from gamecache)
- Player - Set Player 1 (Red) Current gold to gold
-
Events
-
Restore Hero Name
-
Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
-
Actions
- Set Heroname = (Load HeroName of Heros from gamecache)
- Game - Display to (All players) for 20.00 seconds the text: (Your heros proper name is the last game was: + (Load HeroName of Heros from (Last created game cache)))
-
Events
i'm not really able to figure out why it won't work.
if anyone with some knowledge wants to check it out that would be awesome
Attachments
Last edited: