Page 1 of 3

portals

Posted: May 20th, 2010, 7:12 am
by TheGrimreaper
i want to say excuse my writing from the start of this thread
my question is there a way to create portals that lead to another map like on lets say legend of zelda when you go from the field to a village it loads a different map for the village to save strain on the memory also when you go into a dungeon it loads the map for the dungeon only. Also when you go through a door from point A you end up on the other side of point A in a new map area. So to sum it up you walk through the door in point A on one map you end up in the other map on point A in the other smaller map to save strain on the memory you should figure out what im talking about hopefully also if theres another thread talking about this same subject sorry but i couldn't find it.

Re: portals

Posted: May 20th, 2010, 8:45 am
by arcones
What your talking about is teleporting from one map to another. And fortunately, it is very much possible! :)
Here's a bit of code I took from a Support topic:

Code: Select all

level_trigger_2 = [echo "*message*"; endsp; sleep 1000 [map *name*]]
When you open your map in Sandbox, place this in the map config, by pressing F6. Then Create a mapmodel with the level trigger 2. Once you insert the map name and the message, it'll transport you from the current map, to the map of your choice!

Hope that helps!
Arc :geek:

P.S. Next time please post your support question in the Sandbox Support Section. Thanks ;)

Re: portals

Posted: May 20th, 2010, 9:49 am
by TheGrimreaper
thanks I haven't tried it yet but from i what i got from what you wrote it seems like what i needed.

Re: portals

Posted: May 20th, 2010, 11:59 am
by TheGrimreaper
hmm the code doesn't work exactly right when i use it instead of loading the map i said to it just loads a blank map or a new map

Re: portals

Posted: May 20th, 2010, 2:15 pm
by GR1M

Code: Select all

level_trigger_2 = [echo "*message*"; endsp; sleep 1000 [map *name*]]
When your placing the map name you want to teleport to erase the "*" so it just looks like this "[map forest]",
This also counts for the message "[echo "Hi there!"]. I think that was your problem.

Gr1m :twisted:

Re: portals

Posted: May 20th, 2010, 4:37 pm
by Leo_V117
I find it amusing that. The following code:

Code: Select all

    level_trigger_2 = [echo "*message*"; endsp; sleep 1000 [map *name*]]
was mine... You can also set a different trigger as the map changeing one. Trigger 2 is the "Progress" trigger, Trigger 1 is the "Return" Trigger.

Re: portals

Posted: May 20th, 2010, 5:32 pm
by GR1M
Very nice Leo.

Re: portals

Posted: May 21st, 2010, 4:10 am
by Leo_V117
"Return" trigger is used for "Returning" to a previous map. "Progress" trigger is for "Progressing" to another map, very much like Zelda, from field to Village, and Village to field. "Progress" from Field, "Return" from Village. That good for you?

Code: Select all

    level_trigger_2 = [echo "You head to the Village"; endsp; sleep 1000 [map Village_2]]
"Progress"

Code: Select all

    level_trigger_1 = [echo "You head to the Field"; endsp; sleep 1000 [map Field]]
"Return"

Re: portals

Posted: May 21st, 2010, 8:56 am
by arcones
I hand picked your code Leo, as I couldn't remember how Map teleporting worked :P

Re: portals

Posted: May 23rd, 2010, 6:23 am
by Leo_V117
Okay. But theres more information about it.

You can actually have 3 triggers for it. The third is the "Pass" trigger... Works a little like this:

Code: Select all

        level_trigger_3 = [echo "You Head to the Temple"; endsp; sleep 1000 [map Temple]]
"Pass"