Ce petit script active ou arrête l'animation par la voix , il offre également de l'information dans le Log

Installer ce petit script dans votre Pserver.pat . Télécharger les images ici pour ce script

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

 

ROOM

ID 891

NOPAINTING

NOCYBORGS

NAME "En Foret"

PICT "alitears.gif"

ARTIST "Alissa"

PICTURE ID 1 NAME "bpt1.gif" TRANSCOLOR 56 ENDPICTURE

PICTURE ID 2 NAME "bpt2.gif" TRANSCOLOR 56 ENDPICTURE

PICTURE ID 3 NAME "bpt3.gif" TRANSCOLOR 56 ENDPICTURE

PICTURE ID 4 NAME "bpt4.gif" TRANSCOLOR 56 ENDPICTURE

PICTURE ID 5 NAME "bpt5.gif" TRANSCOLOR 56 ENDPICTURE

PICTURE ID 8 NAME "none.gif" TRANSCOLOR 56 ENDPICTURE

SPOT

ID 1

OUTLINE 252,182 268,182 268,194 252,194

LOC 260,188

PICTS 8,0,0 1,0,0 2,0,0 3,0,0 4,0,0 5,0,0 ENDPICTS

SCRIPT

ON ENTER { run GLOBAL "stop" run = "Information dans votre Log Window" LOCALMSG

"Dite on pour activer la pluie , dit off arrêter la pluie " LOGMSG

}

ON OUTCHAT { run GLOBAL

{ { "start" run = 10 ME SETALARM "" CHATSTR = "Pluie Activer" STATUSMSG } "stop" run == IF } CHATSTR "on" == IF

{ "stop" run = "" CHATSTR = "Pluie Arrêter" STATUSMSG } CHATSTR "off" == IF

}

ON ALARM { run GLOBAL

{ 1 ME SETSPOTSTATELOCAL }

{ ME GETSPOTSTATE 1 + ME SETSPOTSTATELOCAL }

ME GETSPOTSTATE 4 > IFELSE

{ 10 ME SETALARM } "start" run == IF

{ 0 ME SETSPOTSTATELOCAL } "stop" run == IF

}

ENDSCRIPT

ENDSPOT

ENDROOM