So I want a phone to start ringing a few turns after it has been mentioned/seen. My code isn’t complete but this is what I’m looking at right now:
your phone is a mobile, which is a kind of thing that I have attached the property ‘ringing/not ringing’ to help identify each turn if the phone needs to be answered. The Call is the scene it takes place in.
[code]Before printing the name of your phone:
your phone rings in 2 turns from now.
At the time when your phone rings:
now your phone is ringing.
Every turn during The Call:
If your phone is ringing, say “VRRR VRRR! [The phone] vibrates, somebody is calling you.”.
[/code]
The problem is this will set the timer every single time the phone is mentioned, so I tried attaching the clause ‘for the first time’ so I’d have:
Before printing the name of your phone for the first time:
This wasn’t working (I think this clause is for actions, not rules?)
How should I proeceed?
My next question is the next step:
I have code for answering the phone, an uncomplicated check-carry out but, I don’t know how I should launch into a dialog, especially if I want to be able to have multiple phone calls… Should I set up a scene just for the phone call (if so how do you trigger it?)
[code]A phone is in the study. The description is “It’s an odd phone.[phonecall]”
Phonerang is a truth state that varies.
To say phonecall:
if phonerang is false:
now phonerang is true;
ominous phonecall happens in three turns from now.
At the time when ominous phonecall happens:
say “The phone rings ominously. You pick it up. The caller says ‘[italic type]I’m calling from inside the house…[roman type]’”[/code]
That’s not exactly what you want since you want the phone to keep ringing, but that’s another way to trigger future events within a description with a “to say…” token in brackets inside quoted text.