Page 1 of 1

Basic teleport script help needed

Posted: Sat Jul 17, 2004 8:33 pm
by Damn
I have a tower that I am wanting to allow players to teleport to the top of.

This would not be a problem if I could simply place a trigger on top of it, but I am stuck with using the teleport "visual effect" model itself and/or waypoints.

Right now I am using the teleport "visual effect" model and making it "usable" in order to apply a conversation to it.

I need a basic script that will allow a player to "teleport" to a waypoint. (which I have placed on the other teleport object)

Any help would be greatly appreciated.

(you guys are the masters of scripts so I figured this was worth a shot)

Thx.

Dred
Area Builder and DM
Darksun Online (DSO)

Posted: Sat Jul 17, 2004 8:47 pm
by Jaxmax
Not that I know anything about it but Lilac soul generator has helped me in the past... Also with making teleports.

http://nwvault.ign.com/Files/other/data ... 6652.shtml

Regards Jax

Posted: Sat Jul 17, 2004 9:07 pm
by dougnoel
Um...it sounds to me like this is more of an area building issue...but if you want to script a jump, use this:

Code: Select all

// The subject will jump to lLocation instantly (even between areas).
// If lLocation is invalid, nothing will happen.
void ActionJumpToLocation(location lLocation)
So if your waypoint destination Tag is "NW_DEST" you would do this:

Code: Select all

ActionJumpToLocation(GetLocation(GetObjectByTag("NW_DEST")));
If the PC isn't OBJECT_SELF in the script, you'll have to create and assign an oPC object the use:

Code: Select all

AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetObjectByTag("NW_DEST"))));
But you could also just use an area transition trigger.

Doug