| 05-05-2004, 04:55 PM | #1 |
in the first act in the orc bonus campaign you can go into a mine and some other caves but how do you trigger it so you can go into caves and back again |
| 05-05-2004, 05:25 PM | #2 | |
Quote:
I'm confused about what exactly you mean. To get back from the caves - such as the one filled with Kobolds - you simply walk back over the lights. (I'm relatively certain there are lights there...) To return to the caves again, you just re-enter the cave as you did the first time. Is this what you mean? |
| 05-05-2004, 05:32 PM | #3 |
It wasnt that i meant i meant how do you create that trigger in your maps |
| 05-05-2004, 07:34 PM | #4 |
You will need to use the below trigger. Here is brief explanation of what the parts are: Region - The region used to trigger the map change Map Name - The name of your map (leave the .w3v) Player - The player you want to be able to move between maps Category - Put in a name Label - Put in name Maps\MapName.w3m - Set to the other map (Make sure it's in the Maps folder) Code:
Trigger 001
Events
Unit - A unit enters [u][color=Blue]Region[/color][/u]
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to [u][color=Blue]Player[/color][/u]
Then - Actions
Game Cache - Create a game cache from [u][color=Blue]MapName[/color][/u].w3v
Game Cache - Store (Triggering unit) as [u][color=Blue]Label[/color][/u] of [u][color=Blue]Category[/color][/u] in (Last created game cache)
Game Cache - Save (Last created game cache)
Game - Set the next level to [u][color=Blue]Maps\MapName.w3m[/color][/u]
Game - Victory [u][color=Blue]Player[/color][/u] (Skip dialogs, Skip scores)
Else - Actions
Do nothingThis will save the Hero and load the next level. For the beginning of the next level, you need to run this trigger: Code:
Trigger002
Events
Map initialization
Conditions
Actions
Game Cache - Create a game cache from [u][color=Blue]MapName[/color][/u].w3v
Game Cache - Restore [u][color=Blue]Label[/color][/u] of [u][color=Blue]Category[/color][/u] from (Last created game cache) for [u][color=Blue]Player[/color][/u] at (Center of (Playable map area)) facing 0.00Note: You need to make sure that Label, Category, and Map name are the same things as in the ast trigger. |
