Server Totals
Wilderness - (1)
Le'Or - (0)
Ferrell - (0)
Elysia - (0)
M'Chek - (0)
Deglos - (0)
Visimontium - (0)
Underdark - (0)
Mikona - (0)
Total players: 1
Gallery

Links Menu

Basic teleport script help needed

Moderators: Nighthawk4, Dungeon Masters

Basic teleport script help needed

PostAuthor: 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. ;)
User avatar
Damn
Squire of Babble
 
Posts: 46
Joined: Sat Jun 21, 2003 3:06 pm

PostAuthor: 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

Jaxmax
Knight of Useless Drivel
 
Posts: 75
Joined: Tue Jun 08, 2004 1:01 pm
Location: Denmark

PostAuthor: 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

dougnoel
Team Member; Retired with Honors
 
Posts: 6265
Joined: Fri May 14, 2004 4:59 pm
Location: VA (GMT -4)


Return to NWN Scripting

Who is online

Registered users: Bing [Bot], Google [Bot], rk57957, Sephira, Yahoo [Bot]