ON ENTER
{ CurRec GLOBAL 0 CurRec =
bname GLOBAL "Props" bname =
AlarmId GLOBAL 3 AlarmId = }
ON SELECT
{ CurRec GLOBAL 0 CurRec =
"Resetting buttons to start" LOGMSG naked }
Previous
ON SELECT
{ CurRec GLOBAL CurRec --
AlarmId GLOBAL 1 AlarmId SETALARM }
Next
ON ALARM { [
" Prop numbers go here "
] 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
{ CurRec GLOBAL CurRec ++
AlarmId GLOBAL 1 AlarmId SETALARM }
1. First go in to the room you want the Prop Dispenser in. Next go into wizard or god mode and go into authoring mode by clicking on Wizard (in the menu bar) then go down to authoring mode. Note: I will use the word spot instead of door sometimes. A door to me is a spot you click on and it takes you to a room, if it doesn't do this I call it a spot.
2. Create a new spot by going to Wizard and click new door. Resize the spot and move it to the spot you want, then double click on the box to load the spot info. This spot will be the Reset button for this script, so change the door name to Reset. Also check the box that says Don't Move Here and Show Name, I will share what some of the other boxes you can check do later.
3. Next click on Edit Script. Insert the script in
the box that is used for the reset button, which is below. The
easiest way to do this is to cut and paste it.
ON ENTER
{ CurRec GLOBAL 0 CurRec =
bname GLOBAL "Props" bname =
AlarmId GLOBAL 3 AlarmId = }
ON SELECT
{ CurRec GLOBAL 0 CurRec =
"Resetting buttons to start" LOGMSG naked }
Click OK.
4. Create a new spot, resize it and move it to the
spot you want it. This will be the previous button. Double click on the
spot and change its name to Previous, check Don't Move Here, and Show Name.
Then click Edit Script and insert the previous button script which is below.
ON SELECT
{ CurRec GLOBAL CurRec --
AlarmId GLOBAL 1 AlarmId SETALARM }
Click OK.
5. Create a new spot, resize it and move it to the spot you want it. This will be the next button. Double click on the spot and change its name to next, check Don't Move Here, and Show Name. Click OK. Now for this script to work you need to have the prop id of each prop you want to use. There are many ways to get these id numbers, one way is to put on the prop and type in your chat box /TOPPROP ITOA SAY . This will say the prop id of the last prop you put on. This meathod only works 1 prop at a time, very time consuming.
Another meathod (a much faster one) is to get a script
such as pid. Install this script into your Cyborg.ipt.
Use it by putting on all the props or an av you want to use in the dispenser
and type pid. It will put all the prop ids in your log. There is a limit
on the amount of props you can wear, so you might have to do it more than
once. The Next script is below, this is the one that should contain the
prop ids.
ON ALARM { [
" Prop numbers go here "
] 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
{ CurRec GLOBAL CurRec ++
AlarmId GLOBAL 1 AlarmId SETALARM }
You need to put the prop ids inside the quotes where
Prop numbers go here is.
( By the way Delete Prop numbers go here First
). An example is below.
" -1360257261 "
This is how 1 single prop would look in the script.
" -1360257261 -1360257414 856833644 -1360093832 -1360093823 -1360093811"
This is how a group of 6 props that would go on together
would look in the script.
" -1360257261 -1360257414 856833644 -1360093832 -1360093823 -1360093811"
"840935751 840935765 840935972"
"855502254 "
"-1356688805 -1356688840 -1356688817 -1356690590"
"857129614 857129850 857130294 857130103 857130582 857130350"
"-1365530050 -1365528234 -1365528252 -1365528452 -1365528192 -1365528419
-1365528484 -1365528348"
"-1366814977 -1362480131 -1364914897"
This is how a bunch of different avatars and props would look in the script. Notice how there is a space between each prop, that is a very important space.
When you have all the prop ids you can put the Next script in the Next spot we made earlier. Put all the prop ids in the script, like above. Now click ok and doubble click the next spot, look at the spot id and remember that number. Click OK. Doubble click the reset spot. Look at the script and find the spot where it says AlarmId GLOBAL 3 AlarmId = } Remember the number you are supposed to be remembering? The spot id of the next spot. Change the 3 to whatever the number you were remebering is. Now exit authoring mode and try out the script.
6. Click the different buttons and make sure they are
working right. If they are not, go back and make sure you put all the scripts
in right and entered the prop ids correctly. If it still doesn't work you
can find someone who has experience making prop dispensers or you can email
me or ICQ me at 8599334.
8. If you don't like that little text box that says what the button name is you could change them with some graphics.
To do this you should make or get a graphic, it could say the box names, have arrows, whatever you want. Then you should go back to the room with the dispenser and re-enter authoring mode. Doubble click a spot to load up its info, click Edit Pictures. Select None and delete it, then click Add. Select the picture you want to use, click ok. Note it should be in the same directory you palace room backgrounds are in.
Then click Save. It should load the picture on the
spot you made. Repeat this process to the rest of the spots.
|
|
|