HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Cave systems

12-27-2002, 07:19 PM#1
Guest
I was wonderin, is it possible to...


have a unit, it walks onto a certain region with a cave-doodad, when he hits that region , it asks, do you want to enter the cave? type yes/no , if he types yes, the trigger takes him to a totaly DIFFERENT map that it teles yout too.


Is it possible? If so , how can it be accomplished?
12-27-2002, 09:28 PM#2
Guest
I can think of a way to do it, but you would have to end that map as a win/loss kinda thing. Are you interested?
12-27-2002, 09:38 PM#3
Electromancer
Its just gotta be a region, cant have a condition of "entered region contains cave doodad equal to true". Dont worry, just move doodads if you change the map, and stop being lazy.:ggani:
12-27-2002, 11:01 PM#4
Guest
Yes this is possilble.

Events: Map Inusilisazion
Actions:
Create a game cache using: [whatever.wc3]
Create a Dialog Button for [dialogvariable] named Yes
Set Variable : [dialogindex][1] = [Last Created Dialog Button]
Create a Dialog Button for [dialogvariable] named No
Set Variable : [dialogindex][2] = [Last Created Dialog Button]
------------------------------------------------------------------------------------
Events: Unit enters [region1]
Condision: Entering unit is equal to a [hero]
Actions:
Show [dialogvariable] for player[# of owner of entering unit]
------------------------------------------------------------------------------------
Events: Clicked Dialog Button for [dialogvariable]
Condision: Clicked Dialog Button equal to [dialogindex][1]
(Show Message : [You have decided to go into the cave] for [triggering player])
Save unit to game cache : [random unit in unit group[units in region1] as [moving unit] under catigory [units] in [Last Created Game Cache]
Set next level: [campaignfolder/cavelevel.w3m]
Victory for: player[# of owner of [random unit from unit group[units in region]]] [skip] dialogs, [skip] screen.
==============================================
Events: Map inusilazation
Actions: Create gamecache using [same-as-before.wc3]
Load [moving unit] from [units] in [Last Created Game Cache] at [region 1]


Whew, glad thats over. To get it back, just do the save unit again, the victory, the set next map, and then the load.

- equals new trigger in same map
= equals triggers in other map