HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

caves

09-11-2003, 10:53 AM#1
stevil
How do I make it so when a hero comes up to a cave he can choose which cave he wants to go to...?
E.g. if a person type's cave, cave 2 etc, he is instantly transported to the corresponding cave. I want this to happen when the hero enters the cave region....

Does anyone know how to do this?
Thanks
09-11-2003, 01:22 PM#2
Grater
I'll tell you how, but not make the trigger itself.
Create a region for the cave entrance, and a region for where units enter each cave.

The trigger works something like this:

Events:
Player message containing "cave"
Conditions:

Actions:
If (entered chat string = "cave 1") then (pick every unit (in cave entrance belonging to triggering player) and move to cave 1) else (do nothing)

If (entered chat string = "cave 2") then (pick every unit (in cave entrance belonging to triggering player) and move to cave 2) else (do nothing)

And so on for each possible cave destination. If the hero isn't in the cave region then the trigger will have no effect because there will be no units matching the conditions.
09-12-2003, 11:12 AM#3
stevil
Thanks for your reply....
I tried what you said but I can't get it working. I tested it and entered the region and typed what cave I want to go to but nothing happens. This is the trigger can you tell me what is wrong please.

Events
Player - Player 2 (Blue) types a chat message containing cave as An exact match


Actions
If ((Entered chat string) Equal to Cave2) then do (Unit Group - Pick every unit in (Units in Cave 1 Entrance <gen> owned by Player 2 (Blue)) and do (Unit - Move (Triggering unit) instantly to (Center of Cave 2 Exit <gen>))) else do (Do nothing)

Thanks
09-12-2003, 11:57 AM#4
Xaran Alamas
put (Unit - Move (Picked unit) instead, that should work :D
09-12-2003, 12:42 PM#5
stevil
Thanks for your reply but unfortunately it is still not working. Anyone know how to fix it?
09-12-2003, 02:08 PM#6
cideh
Use "containing cave as A substring"
09-14-2003, 08:23 AM#7
stevil
Ok the trigger works but only if you type the correct text, then enter the region.... if you enter the region first and then type the text nothing happens...
How do I make it so when you enter the region and then type the text you get transported and not having to type the text before you enter the region?

Thanks