Knowledgebase
Storm Palace Hosting > Storm Hosting Help Desk > Knowledgebase

Ask a question:


On/off curtain animation

Solution ;2 doors needed
; in first door place this script and curtain pic
;Put the following script in a spot.
;Put the pictures you want to be shown in the same spot.
ON ENTER
{
linkspot GLOBAL ME linkspot =
0 ME SETSPOTSTATELOCAL
}
ON ALARM
{
cmd GLOBAL
;***Set number of pictures here***
2 nbrpics =
;***End of data***
{ ME GETSPOTSTATE 1 + nbrpics % ME SETSPOTSTATELOCAL } cmd "next" == IF
{ ME GETSPOTSTATE 1 - nbrpics + nbrpictures % ME SETSPOTSTATELOCAL } cmd "previous" == IF
}



; 2nd door on/off with name showing
;Put the following script
ON SELECT
{
linkspot GLOBAL
cmd GLOBAL
"next" cmd =
0 linkspot SETALARM
}
 
Was this article helpful? yes / no
Article details
Article ID: 345
Category: Room Scripts
Date added: 02-15-2014 06:40:42
Views: 313
Rating (Votes): Article not rated yet (0)

 
<< Go back

Powered by Help Desk Software HESK™