Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

World Map Script Q

Dale Harmison
Registered User
Join date: 26 Dec 2005
Posts: 59
06-22-2006 09:30
Hi all!
I'm not really sure how to explain it correctly but the other day I pressed on some object and W. map window came up with the red circle indicating where id be tped if i were to go ahead and press on the 'Teleport' button on the ingame map.
I was just wondering how I could do it.
Does anyone know what script is usedto make the map come up and be able to tp from one sim to the other instead of just within the same sim.
Let me know please.
Thank you!
Sry if what i want is a little unclear, im just not a scripter.
Thraxis Epsilon
Registered User
Join date: 31 Aug 2005
Posts: 211
06-22-2006 09:46
http://secondlife.com/badgeo/wakka.php?wakka=llMapDestination
Dale Harmison
Registered User
Join date: 26 Dec 2005
Posts: 59
06-22-2006 10:26
ok, thank you and how do i use the code now, what do i do with it, where do i put it?
how do i change it?
Delzo Delacroix
The Avatarian
Join date: 2 May 2006
Posts: 80
06-22-2006 10:47
From: Dale Harmison
ok, thank you and how do i use the code now, what do i do with it, where do i put it?
how do i change it?



If you want it to happen when someone touches the object, put it inside the touch_start() event.

1. Rez a prim. (Right Click on ground and select Create then click the ground again)
2. Right-click it and select Edit
3. Click the Contents tab
4. Click New Script
5. A temp script pops up that includes a touch_start() event
6. Place the llMapDestination command there with your chosen map coordinates. Save.
7. Touch your prim.
8. Voila...Map pops. Click teleport to go there.
9. Take or Take Copy of your object so you don't lose it.

CODE

default
{
state_entry()
{

}
touch_start()
{
llMapDestination("Hwaryeo",<25,12,54>,<0,0,0>);
}
}


The first variable is simply the NAME of the sim you want to pop the map for.
The second variable is the location to teleport to if Teleport is clicked on the map. It's also where the red circle will appear on the map.
The third variable is which direction to look towards when you teleport.

The first variable is represented as a string.
The second and third variables are represented in Vectors.

Look at http://secondlife.com/badgeo/wakka.php?wakka=vector if you aren't familiar with vectors.
_____________________
Dale Harmison
Registered User
Join date: 26 Dec 2005
Posts: 59
06-22-2006 11:29
From: Delzo Delacroix
If you want it to happen when someone touches the object, put it inside the touch_start() event.

1. Rez a prim. (Right Click on ground and select Create then click the ground again)
2. Right-click it and select Edit
3. Click the Contents tab
4. Click New Script
5. A temp script pops up that includes a touch_start() event
6. Place the llMapDestination command there with your chosen map coordinates. Save.
7. Touch your prim.
8. Voila...Map pops. Click teleport to go there.
9. Take or Take Copy of your object so you don't lose it.

CODE

default
{
state_entry()
{

}
touch_start()
{
llMapDestination("Hwaryeo",<25,12,54>,<0,0,0>);
}
}


The first variable is simply the NAME of the sim you want to pop the map for.
The second variable is the location to teleport to if Teleport is clicked on the map. It's also where the red circle will appear on the map.
The third variable is which direction to look towards when you teleport.

The first variable is represented as a string.
The second and third variables are represented in Vectors.

Look at http://secondlife.com/badgeo/wakka.php?wakka=vector if you aren't familiar with vectors.


CODE

default
{
state_entry()
{

}
touch_start()
{
llMapDestination("Bam",<190,228,55>,<0,0,0>);
}
}


thats what i put into the prim but it never worked.
the object just sits there, even when i press on it nothing comes up, sry.
any idea what this noob missin? lol
Delzo Delacroix
The Avatarian
Join date: 2 May 2006
Posts: 80
06-22-2006 11:58
Because I was not in-world, and forgot an important part :)

CODE

default
{
state_entry()
{

}
touch_start(integer total_number)
{
llMapDestination("Bam",<190,228,55>,<0,0,0>);
}
}
_____________________
Dale Harmison
Registered User
Join date: 26 Dec 2005
Posts: 59
06-22-2006 12:56
:( im gettin upset laready, im sorry
i changed the script then i tried changin the sim name and coodrinates to
CODE

default
{
state_entry()
{

}
touch_start(integer total_number)
{
llMapDestination("Misp",<133,27,73>,<0,0,0>);
}
}

cause the 1st one never worked and still that didnt work either

the script that i just typed in is the only thing thats gotta be there or theres gotta me more than that.
im sorry all for bein so blah about scripting.
help lol
Rodrick Harrington
Registered User
Join date: 9 Jul 2005
Posts: 150
06-22-2006 21:24
Everthing looks correct, make sure the script is checked "running" when you touch it.
_____________________
Dale Harmison
Registered User
Join date: 26 Dec 2005
Posts: 59
06-23-2006 06:20
Great, that finally worked.
Thank you very much for puttin up with my noobiness.
You guys are great!