Go Back   The Palace Avatar Chat Community Forums. > Palace Builders Palace Users > Room Scripts

Room Scripts Use this forum for your room scripts, copy them or add them.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-06-2005, 06:34 PM
Riverspirit's Avatar
Palace User
 
Join Date: Jul 2004
Location: Washington
Posts: 32
Rep Power: 0
Riverspirit is on a distinguished road
Nice little prop generator script

Prop Generator with Next, Previous, Reset Buttons. Make 3 Doors in this room, and use the following scripts for each.

First door should have ID 1. Name the Door Reset

;RESET DOOR id1
ON ENTER {
CurRec GLOBAL 0 CurRec =
bname GLOBAL "prop" bname =
AlarmId GLOBAL 3 AlarmId =
}
ON SELECT { {"" SOUND
{ t = t ME SETSPOTSTATELOCAL } [ 0 1 ] FOREACH
"Resetting Buttons to Start" logmsg
x1 GLOBAL
0 x1 =
} 10 ALARMEXEC
CurRec GLOBAL 0 CurRec =
"Resetting buttons to start" LOGMSG naked
}


--------------------------------------------------------------------------------

Second door ID 7 . Name the door Previous


;BACK DOOR id7
ON SELECT {"Pop" SOUND
{ t = t ME SETSPOTSTATELOCAL } [ 0 1 ] FOREACH
CurRec GLOBAL CurRec --
AlarmId GLOBAL 1 AlarmId SETALARM
}


--------------------------------------------------------------------------------

Door 3 Names Previous:

ON SELECT {
cmd GLOBAL
"prev" cmd =
1 4 SETALARM
}


--------------------------------------------------------------------------------

Third door ID 3, Name this door Next. This is where you put your prop ids, which get listed right under the ON ALARM as shows in sample below. Each prop id must begin and end with a quote.


ON ALARM { [
" 938479697 938479723 938479747 938480989 938481007 939694254"
" 938619620 938619682 938383357 938619836"
" 941514994 941515191"
" 938813490 938237949 938245250 938666717"
] TheArray =
TheArray LENGTH NoArray =
bname GLOBAL
CurRec GLOBAL
{ 1 CurRec = } CurRec NoArray > IF
{ NoArray CurRec = } CurRec 1 < IF
bname ": row " + CurRec itoa + "/" + NoArray itoa + logmsg
"[" TheArray CurRec 1 - get + "] SETPROPS" + STRTOATOM EXEC
}
ON SELECT {"Pop" SOUND
{ t = t ME SETSPOTSTATELOCAL } [ 0 1 ] FOREACH
CurRec GLOBAL CurRec ++
AlarmId GLOBAL 1 AlarmId SETALARM
}
__________________
The sun is gone..but i have a light
Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


The Latest Posts
Title, Username, & Date Last Post Forum
download
03-21-2011 11:20 AM
by maarten
User Questions
Palace for Mac OS 10.6?
03-13-2011 09:39 AM
by pawnipt
User Questions
Server
03-07-2011 04:52 PM
by satinrose
User Questions
Return room Script
02-24-2011 12:07 AM
by jaela
Room Scripts
Releasing source code
02-17-2011 09:19 AM
by Sman™
Developers Forum
Website spammers
01-26-2011 08:48 PM
by maarten
The Planet: Palace News
Online Users: 69
0 members and 69 guests
No Members online
Most users ever online was 1,010, 06-27-2007 at 11:45 PM.
Stats
Members: 5,112
Threads: 1,141
Posts: 4,004
Top Poster: maarten (1,169)
Welcome to our newest member, cliffymayers


All times are GMT +2. The time now is 12:45 PM.


Powered by vBulletin
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0