Basic teleport script help needed

Moderator: Event DM

Post Reply
User avatar
Damn
Squire of Babble
Posts: 45
Joined: Sat Jun 21, 2003 3:06 pm
Contact:

Basic teleport script help needed

Post by Damn » Sat Jul 17, 2004 8:33 pm

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)
Once a dwarf... ALWAYS a dwarf!
Deepdelve and Silverbeard clans. ;)
Jaxmax
Knight of Useless Drivel
Posts: 75
Joined: Tue Jun 08, 2004 1:01 pm
Location: Denmark
Contact:

Post by Jaxmax » Sat Jul 17, 2004 8:47 pm

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
dougnoel
Team Member; Retired with Honors
Posts: 6261
Joined: Fri May 14, 2004 4:59 pm
Location: VA (GMT -4)
Contact:

Post by dougnoel » Sat Jul 17, 2004 9:07 pm

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
Post Reply