Knowledgebase
Storm Palace Hosting > Storm Hosting Help Desk > Knowledgebase

Ask a question:


Tour Scripts

Solution Tour Scripts

This page is designed to show you how you can setup
an automated tour in your palace. One thing Ive seen
that I like is a spotpic in a door that "talks" to you. It
will let you know how long you have in this room before
it moves you onto the next one or maybe he/she/it will
tell you a word to say to continue depending on which
script you use.


In your first room, you want to put this script...

ON ENTER
{
tour GLOBAL
0 tour =}

ON OUTCHAT
{
{ tour GLOBAL
1 tour =
USERNAME " is departing on the tour in 5 seconds!" &
LOCALMSG
{ 100 GOTOROOM } 300 ALARMEXEC
} CHATSTR "tour" == IF }

Then in room 100 (and each subsequent room) add this:

ON ENTER
{
tour GLOBAL
{ "Automated tour will continue in 1 minute, " USERNAME
& LOCALMSG
{ 101 GOTOROOM } 3600 ALARMEXEC
} tour IF }

You can change the 3600 to a number that you would
think they'd need to download and explore in this room
remembering that 60 ticks = 1 second.


OR.........


At the gate:
[[<,]] Add this script in a spot. Then when you type in "start
tour" at the gate, it will send you to the room where you
designate the tour to begin.

ON ENTER
{ "Say 'start tour' to begin a tour. When you
are done, you will return here. Enjoy!" LOCALMSG }

Add the room ID of the start room to the left of the 52.
In other words, if
you are starting in room 86, the script would look like it
does below.

ON OUTCHAT
{ tur GLOBAL turrooms GLOBAL
{ { [ 86 52 55 82 21 18 23 46 30 26 49 ] } turrooms
DEF ; list
of room ids of the tour, in
;order -- first number is the beginning where you said
tour
1 tur = turrooms EXEC tur GET GOTOROOM
} CHATSTR "start tour" == IF }

(in the first room of the tour and every other room in your tour)

ON ENTER
{ "When you are ready to continue,
say 'next'" LOCALMSG }

ON OUTCHAT
{ tur GLOBAL turrooms GLOBAL
{ tur ++ turrooms EXEC tr = { 0 tur = } tur tr LENGTH
>= IF
tr tur GET GOTOROOM } tur CHATSTR "next" == AND IF }

When they are finished looking around in that room, they
say next to continue.
 
Was this article helpful? yes / no
Article details
Article ID: 40
Category: Room Scripts
Date added: 04-02-2011 13:09:12
Views: 714
Rating (Votes): Article rated 5.0/5.0 (1)

 
<< Go back

Powered by Help Desk Software HESK™