home » builders » builder's lessons » time prog

Time programs

Time programs are triggered by the time. This is game time. The game time works on a military style 24 hour clock.

>time_prog 21~
close gate
mpecho The Guard closes the gate for the evening so that the restless dead cannot escape.
~

This prog is on the guards outside the city of the dead in Waterdeep. He closes the gate at 9pm at night. Note that 9pm is 2100 hours in military time. We drop off the 00 though.

>time_prog 7~
if rand(50)
  if position($i) != 8
    mpecho A thief stealthily slinks off to sell his nights takings.
    mpgoto 99
  endif
endif
~
>time_prog 21~
mpregoto
~
|

This is TWO time progs here. This is the programs on the thieves in Waterdeep. MOST of the thieves disappear during the day in Waterdeep. The first prog happens at 7 am. It has an if rand(50) in it to make it only happen 50% of the time. It also checks to see if the thief is fighting at the time with the if position check. It then goes to room 99. Now this room is a mobile waiting room. If you need to send a mobile away for a short time send it to this room. A tip for the wise, never go there with your imm char on the test port at night - SPAM! There is hundreds of mobs in there at night just from Waterdeep alone.

The next prog happens at 9pm at night. The mpregoto sends the mobile back to the room it came from. On another mob you might put an echo saying they start work for the day. But the thief doesnt really want his presence known in the room so I have no echo.

If you want a program to trigger every hour, then put -1 into the time field.

>time_prog -1~
mpecho You hear bells marking the end of an hour.
~
|