you'll need to post your timer code outside of your room creations in the actual asl file (opened in notepad, etc.) I would suggest making a comment line so you can find your timers. Place them at the end of your file, after your room creations, and that closing "end define" tag you see. Here is an example:
define room <control room>
script {
if flag <water> then msg <The sound of |irushing water|xi is very strong in this room.>
}
alias <control room>
prefix <a>
look <There are pipes above you that go from this room to the previous one. There is a small door on the west wall.>
east <Factory South Assembly Chamber>
define object <Control Room Door>
alias <small door>
alt <door; small>
look <There is a lock on the door from the other side. Once you go out, you may not be able to come back in.>
examine <There is a lock on the door from the other side. Once you go out, you may not be able to come back in.>
prefix <a>
article <it>
gender <it>
type <TLTclosable>
action <opened> {
msg <You pull the door open with little effort. You can tell it has a weight on it, so it will close automatically. Once you go to the next room, you won't be able to get back in again.>
create exit west <control room; hallway 5>
}
action <closed> {
msg <You let go of the door handle and it closes automatically.>
create exit west <control room;>
}
properties <closedDesc=The door is shut.; isClosedDesc=The door is shut.; closingDesc=You close the door and a latch secures it firmly.; isOpenDesc=The door is already open.; openingDesc=With little effort, you manage to pull the large door open.>
end define
end define
' ****************************TIMERS *******************
' ****************************TIMERS *******************
' ****************************TIMERS *******************
define timer <Seduce>
interval <10>
action {
set interval <seduce; $rand(15;50)$>
set numeric <taunting; $rand(1;4)$>
if here <Morulan Steamer> then {
foreground <white>
if flag <meet_veronica> then msg <$displayname(Morulan Steamer)$ |xn>
else msg <The $displayname(Morulan Steamer)$ |xn>
foreground <white>
do <Veronica_ConvoProc>
msg <#Veronica_C#>
}
}
disabled
end define
your variables need to be defined in your start script code section when you open it up:
define game <The Art>
asl-version <400>
gametype singleplayer
startscript {
' ---------------------- CLOCK
set numeric <hour; 7>
set numeric <minutes; 00>
set string <min; 0%minutes%>
set string <ampm; am>
}