- how long you want the delay to be
- how many characters would be in the room at the same time (the more characters there are, the longer it will take for the rand_prog to trigger for the character who has the right quest bits).
Here is an example for a mobprog (but, depending on what you want to do, the rand_prog might be on the room or on an object).
Code: Select all
>greet_prog 100~
if quest(0,5,$n) == 7
mpechoat $n {70}The mob looks at you thoughtfully and remains silent for a few seconds.
mpechoaround $n {70}The mob looks at $N thoughtfully and remains silent for a few seconds.
mpmset $n quest 0 5 8
endif
~
>rand_prog 60~
if quest(0,5,$r) == 8
sayto $r I am done thinking and I will start
sayto $r talking with you now.
...
endif
~