Page 1 of 1

Making Teleporting Items

Posted: Mon Aug 03, 2009 3:31 pm
by Benk
How can I make a ring that teleports me to a certain place, when I put it on? If that is possible, without writing a whole new script or something, that is.

Posted: Mon Aug 03, 2009 5:05 pm
by galraen
I take it you're referring to the construction set, that's the only way to do it, but you would need to right a new script.

This is a script that I used to create an amulet that teleported my character to Aryon's chambers in Vos:
Begin amuletTelVosScript

short button
short messageOn
short reset
short OnPcEquip

if ( OnPCEquip == 0 )
set reset to 0
endif

if ( reset == 1 )
return
endif

if ( OnPCEquip == 1 )
if ( reset == 0 )
Set OnPCEquip to 0
MessageBox "Would you like to return to Aryon?" "Yes" "No"
set messageOn to 1
endif
endif

if ( messageOn == 1)

set button to GetButtonPressed

if ( button >= 0 )
set messageOn to 0
endif

if ( button == 0 )
Player->PositionCell, 3931.521, 3127.359, 15775.268, 180, "Tel Vos, Aryon's Chambers"
set reset to 1

elseif ( button == 1 )
set reset to 1
return
endif
endif


End
You could plagiarise it, inserting your own co-ordinates and cellname.

Posted: Tue Aug 04, 2009 4:59 am
by Benk
Cheers, that's really helpful. Thanks.