Hell Templar
Dec 3 2005, 06:40 AM
Just two simple questions, first of all is there I can have the pc teleportd to an area by talkingto an NPC, and choosing a specific topic, and I don't mean the travel function...
Also I need help with a script that would teleport a PC to an area when they click on a row boat.
Marxist ßastard
Dec 3 2005, 07:36 AM
XPOS, YPOS, ZPOS, and ZROT are placeholders. Replace them as necessary.
- In the dialog results box of the option that teleports the player...
CODE
player->positioncell XPOS YPOS ZPOS ZROT "OMG MIEY SUPAR SECRATE DUNGIN!!!11!"
goodbye
- In the boat's local script...
[codebox]short btn
; This next line may or may not make sense.
set btn to ( getbuttonpressed + 1 )
if ( menumode < 1 )
if ( onactivate )
messagebox "You see a map inside the boat. A section seems to detail a small grotto to the southeast -- although the cavern itself appears to have been obscured deliberately, you think that you can make out a crude path to it, weaving between several dangerous rock spires. Attempt to travel there?" "Yes" "No"
endif
endif
if ( btn == 1 )
player->positioncell XPOS YPOS ZPOS ZROT "OMG MIEY SUPAR SECRATE DUNGIN!!!11!"
; The next ten lines are strictly optional.
elseif ( btn == 2 )
if ( player->getintelligence > 60 )
messagebox "Although you doubt that you will ever change your mind, you commit the map to memory."
elseif ( player->getluck > 45 )
messagebox "You don't believe you will be able to remember all the details of the map, but regardless, you are quite certain that it will be there when (and if) you return."
elseif ( player->getlevel > 10 )
messagebox "A strange sense of urgency sweeps over you."
else
messagebox "You have a peculiar feeling for a moment, then it passes."
endif
endif[/codebox]