Hi gang,
I’m tinkering with Guncho and putting together a realm and have hit on what I think is (and will be) a fundamental problem within multi-user IF: that of vision (and possibly hearing - but that’s another, albeit related, topic).
I have changed the sleep action using a before rule to flag whenever a PC is asleep (providing they need it of course):
[code][Command: sleep]
Before sleeping:
if the actor is asleep:
say “You[’]re already asleep, you idiot.” instead;
otherwise:
if the current stamina of the actor is less than the maximum stamina of the actor:
now the actor is asleep;
say “Zzz…”;
tell “[The actor] has fallen asleep.” to everyone who can see the actor, except the actor;
stop the action.
Before doing anything while the actor is asleep:
say “You can’t do that, you[’]re asleep.” instead. [/code]
Now, while the PC is asleep, I don’t want them notified of world events such as other PCs or NPCs coming or going (i.e. they shouldn’t be able to see them, or hear them either for that matter).
I’d hoped to achieve that by using the following rule:
Visibility rule when the actor is blind or asleep:
If the actor is blind or the actor is asleep:
there is insufficient light;
stop the action.
But this doesn’t work: I still get messages about other players entering or leaving, even though the PC really shouldn’t be able to ‘see’ them.
Can anyone throw any light on this for me please?
Thanks,
Paul.