This quest journal is an object that runs a prog whenever a player looks at the object. All the prog does is echo at the player the name of the quests they are on based on the tokens they carry (301, 302, & 303 as examples).
If a player is not on one of the possible quests (ie they don’t have the token), that part of the script doesn’t get printed out on screen.
Quest Journal Item (trigger lookat_post)
Vnum: 500 Type: scroll Level: 0 Area: global.are Cost: 0 Weight: 0.0 lbs Condition: 100 Material: paper Absolute size: 0 Relative size: 50 Name: quest journal Short desc: A quest journal Short desc: `YA quest journal`=? Long descr: You have set out upon the following quests: Long descr: `YYou have set out upon the following quests:`=? There are no extended descriptions. Wear Flags: [take no_sac] Extra Flags: [burnproof nodegrade nodrop nolocate nonmetal noremove] Extra2 Flags: [nodecay nosell] Class Allowances: all classes [v0] Level:  [v1] Spell: none [v2] Spell: none [v3] Spell: none [v4] Spell: noneMUDPrograms for object [ 500]: Object mudprog triggers: lookat_post Number Vnum Trigger Phrase
------ ---- ------- -------------------- [ 0] 500 lookat_post 100
The Mob Prog:
============================================================================= Vnum: 500 Area: global.are Title: Quest Log Author(s): Phaedra Last editor: Phaedra on Sat Jan 19 06:04:48 2019 (16 minutes, 36 seconds ago) Code: if hastoken $n 301 mob echoat $n You are on quest: Test 01. endif if hastoken $n 302 mob echoat $n You are on quest: Test 02. endif if hastoken $n 303 mob echoat $n You are on quest: Test 03. endif============================================================================= Currently no mobiles directly use this program. Note that the code could still be accessed via the 'mp call' command... e.g. mp force inventor mp call 500 $n Objects that use mudprog 500 follow: 500 A quest journal - lookat_post (100). =============================================================================
The results depend on which tokens a player has on them:
Look Journal You have set out upon the following quests: You are on quest: Test 01. You are on quest: Test 02. You are on quest: Test 03.