ROOM ID 173 NAME "Propola Player" PICT "proproom.gif" PICTURE ID 1 NAME "zn0.gif" TRANSCOLOR 181 ENDPICTURE PICTURE ID 2 NAME "zn1.gif" TRANSCOLOR 181 ENDPICTURE PICTURE ID 3 NAME "zn2.gif" TRANSCOLOR 181 ENDPICTURE PICTURE ID 4 NAME "zn3.gif" TRANSCOLOR 181 ENDPICTURE PICTURE ID 5 NAME "zn4.gif" TRANSCOLOR 181 ENDPICTURE PICTURE ID 6 NAME "zn5.gif" TRANSCOLOR 181 ENDPICTURE PICTURE ID 7 NAME "zn6.gif" TRANSCOLOR 181 ENDPICTURE PICTURE ID 8 NAME "zn7.gif" TRANSCOLOR 181 ENDPICTURE PICTURE ID 9 NAME "zn8.gif" TRANSCOLOR 181 ENDPICTURE PICTURE ID 10 NAME "zn9.gif" TRANSCOLOR 181 ENDPICTURE PICTURE ID 11 NAME "arrowrr.gif" TRANSCOLOR 243 ENDPICTURE PICTURE ID 12 NAME "arrowll.gif" TRANSCOLOR 243 ENDPICTURE SPOT ID 1 NAME "Basic Scripts" OUTLINE 4,5 20,5 20,17 4,17 LOC 128,96 SCRIPT ; This script was written by Tandika Star. ; Email: Iptscrae@aol.com ; Palace: tomes.ksv.com:9998 ON ENTER { ; Set up a counter to track which AV we're on. cntr GLOBAL 0 cntr = ; Reset spotstates. 0 1 SETSPOTSTATE 0 1 SETSPOTSTATELOCAL 0 2 SETSPOTSTATE 0 2 SETSPOTSTATELOCAL 0 3 SETSPOTSTATE 0 3 SETSPOTSTATELOCAL 0 4 SETSPOTSTATE 0 4 SETSPOTSTATELOCAL ; Set inital position of user. 260 254 SETPOS ; Tell user how to get instructions. "@" POSX ITOA + "," + POSY ITOA + "Click on the ? for instructions." + LOCALMSG { CLEARLOOSEPROPS PAINTCLEAR } NBRROOMUSERS 2 < IF } ENDSCRIPT ENDSPOT SPOT ID 2 NAME "Tens" OUTLINE 31,51 42,51 42,67 31,67 LOC 37,59 PICTS 1,0,0 2,0,0 3,0,0 4,0,0 5,0,0 6,0,0 7,0,0 8,0,0 9,0,0 10,0,0 ENDPICTS ENDSPOT SPOT ID 3 NAME "Ones" OUTLINE 46,50 59,50 59,66 46,66 LOC 53,59 PICTS 1,0,0 2,0,0 3,0,0 4,0,0 5,0,0 6,0,0 7,0,0 8,0,0 9,0,0 10,0,0 ENDPICTS ENDSPOT SPOT ID 4 NAME "Player Buttons" DONTMOVEHERE OUTLINE 115,41 420,41 420,72 115,72 LOC 128,96 SCRIPT ON SELECT { cntr GLOBAL MOUSEPOS y = x = ; Determine which button has been pushed, by getting the position of the mouse. ; Set the spot's state locally to indicate which button was pushed. ; Use the alarm handler to actually perform the action associated with the spot. ; Button1: Go to the beginning. { 1 1 SETSPOTSTATELOCAL 30 ME SETALARM } 154 x > IF ; Button2: Go to the end. { 2 1 SETSPOTSTATELOCAL 30 ME SETALARM } 154 x < 191 x > AND IF ; Button3: Single-step forward. { 3 1 SETSPOTSTATELOCAL 30 ME SETALARM } 191 x < 229 x > AND IF ; Button4: Pause display. { 4 1 SETSPOTSTATELOCAL "@" POSX ITOA + "," + POSY ITOA + " !Paused!" + LOCALMSG } 229 x < 267 x > AND IF ; Button5: Stop display entirely. Resets display. { 0 1 SETSPOTSTATELOCAL "@" POSX ITOA + "," + POSY ITOA + "!Stopped!" + LOCALMSG 0 cntr = NAKED 0 2 SETSPOTSTATELOCAL 0 3 SETSPOTSTATELOCAL } 267 x < 305 x > AND IF ; Button6: Play continuously backwards. { 5 1 SETSPOTSTATELOCAL 30 ME SETALARM } 305 x < 344 x > AND IF ; Button7: Play continuously forwards. { 6 1 SETSPOTSTATELOCAL 30 ME SETALARM } 344 x < 382 x > AND IF ; Button8: Display help for player. { "@" POSX ITOA + "," + POSY ITOA + " The instructions are in your log." + LOCALMSG "The buttons, from left to right, do the following:" LOGMSG "1. Go to the first avatar" LOGMSG "2. Go to the last avatar" LOGMSG "3. Go to next avatar" LOGMSG "4. Pause" LOGMSG "5. Stop the player and reset" LOGMSG "6. Play back through avatars." LOGMSG "7. Play forward through avatars." LOGMSG "8. Help (display this information)" LOGMSG } 382 x < IF } ON ALARM { cntr GLOBAL ; Set up the array of Avatars. The first item in the array is always [0]. ; Up to 31 Avatars can be in the array. Each Avatar can consist of up to 9 props. [ [ 0 ] [ 958703651 958703668 958703674 ] [ 958958815 ] [ 958958805 ] [ 958958773 ] [ 958958837 ] [ 957247021 ] ] prps = ;Button1: Set to the beginning. { 1 cntr = prps cntr GET SETPROPS } 1 1 GETSPOTSTATE == IF ;Button2: Set to the end. { prps LENGTH 1 - cntr = prps cntr GET SETPROPS } 2 1 GETSPOTSTATE == IF ;Button3: Single step. Tells user if they try to go past the end. { cntr ++ { "@" POSX ITOA + "," + POSY ITOA + "!You're at the end" + LOCALMSG prps LENGTH 1 - cntr = } prps LENGTH cntr == IF prps cntr GET SETPROPS } 3 1 GETSPOTSTATE == IF ; single step ;Button6: Display continuously backwards. Tells user if they try to go past beginning. { cntr -- { "@" POSX ITOA + "," + POSY ITOA + "!You're at the beginning" + LOCALMSG 1 cntr = } 0 cntr >= IF prps cntr GET SETPROPS { 300 ME SETALARM } 1 cntr < IF } 5 1 GETSPOTSTATE == IF ; play back ;Button7: Displays continuously forwards. Tells user if they try to go past the end. { cntr ++ { "@" POSX ITOA + "," + POSY ITOA + "!You're at the end" + LOCALMSG prps LENGTH 1 - cntr = } prps LENGTH cntr == IF prps cntr GET SETPROPS { 300 ME SETALARM } prps LENGTH 1 - cntr > IF } 6 1 GETSPOTSTATE == IF ; play forward ;Increment or decrement counter as needed { cntr 10 / 2 SETSPOTSTATELOCAL cntr 10 % 3 SETSPOTSTATELOCAL } { cntr 3 SETSPOTSTATELOCAL 0 2 SETSPOTSTATELOCAL } 9 cntr < IFELSE } ENDSCRIPT ENDSPOT DOOR ID 7 DONTMOVEHERE SHOWFRAME DEST 154 OUTLINE 491,198 508,207 492,218 492,213 455,213 455,204 491,204 LOC 483,208 PICTS 11,0,0 ENDPICTS SCRIPT ON INCHAT { nDoIt GLOBAL nDoIt EXEC } ENDSCRIPT ENDDOOR DOOR ID 8 DONTMOVEHERE SHOWFRAME DEST 139 OUTLINE 22,205 59,205 59,213 23,213 23,220 5,208 22,197 LOC 30,208 PICTS 12,0,0 ENDPICTS ENDDOOR ENDROOM