MSUBS MOBPROC SUBSTITUTION CHARACTERS -= general building information =- -= see also: mobproc mif mtarget =- The following is a list of mobproc/shopkeep substitution characters that can be used in both mobprocs and shopkeep reactions. They can also be used in mobs that are flagged REACTOR in the reaction string of the trigger/ reaction pair. It is desirable to use these subs because it adds a little more flavor to the otherwise dull mob world. They are also necessary for mobs to react directly with an object or character as the result of a mobproc command and/or a reaction (be it a SHOPKEEP or REACTOR reaction). Some examples will be given below to offer a bit more help in using them. Sub Char What replaces it -------- ---------------- %B%6Character substitutions:%0 +C NPCs - The NPC's fname (alias, short name, kill +C) PCs - The PC's name (normal PC name, same as +N) +N,+n NPCs - The NPC's short description (a furry rabbit) PCs - The PC's name (normal PC name, same as +C) +R,+r NPCs - No substitution takes place PCs - The PC's race (dwarven, human, etc) +c NPCs - No substitution takes place PCs - The PC's class (warrior, cleric, etc) +H,+h NPCs - No substitution takes place PCs - The PC's hometown (Mesraht, Nirenoft, etc) +L,+l NPCs - No substitution takes place PCs - The PC's current language (zhaunil, common, etc) %B%6Object substitutions:%0 +O,+o OBJ - Object's fname (alias, short name, get +O) %B%5NOTES:%0 It is important to remember that if you're using a MOBPROC mob, these substitutions will only take place if either your TARGET_CHAR or TARGET_OBJ is set up in the mobproc of the mob. To sub in +N for a PC name, you must have a character mtargetted with something like %6mtargetroom char pc 0%0. SHOPKEEPs, REACTORs, and reactions caused by MOBPROC triggers, automatically target the character who interacted with the mob. %B%6Examples:%0 (assuming a char named %5Vall%0 interacted with the mob) say Thank you, +C, and good hunting! say Thank you, Vall, and good hunting! tell +C My, what a fine +R you are. tell Vall My, what a fine human you are. grinf +C grinf Vall ask +C Pardon me, +R. Can you direct me to +H? ask Vall, Pardon me, human. Can you direct me to Mesraht? An object example: get +O wield +O say Good. I finally found that damn +O! get sword wield sword say Good. I finally found that damn sword! See wizhelp on MOBPROCs on how to target different characters and objects using the %5mtarget%0 suite of commands.