Object 3892

Mob Progs Manual: C4 Reference

Chapter 4  Reference

These are basically a list of things you can do, and a quick
sheet to remember.  It is quite useful actually. :)

===================CUT HERE FOR QUICK REFERENCE SHEET========================
    MOBprogram quick reference to triggers/variables/ifchecks/mobcommands
trigger         argument and what must happen to activate trigger
-----------------------------------------------------------------------------
act_prog        WORDLIST or P WORD_PHRASE to match from act() to mobile
bribe_prog      INTEGER amount of miminum gold amount given to mobile
entry_prog      PERCENT chance to check when mobile moves to a new room
give_prog       FULL OBJECT NAME or ALL to match when obj given to mobile
greet_prog      PERCENT chance to check if visable char enters mobile's room
all_greet_prog  PERCENT chance to check when any char enters mobile's room
fight_prog      PERCENT chance to check at fight_pulse if mobile is fighting
hitprcnt_prog   PERCENT lower than mobiles hit/max_hit if mobile is fighting
death_prog      PERCENT chance to check after mobile has been slain
rand_prog       PERCENT chance to check whenever a PC is in the mobiles zone
speech_prog     WORDLIST or P WORD_PHRASE to match in dialogue to mobile
variable         mobile actor victim random     object 2nd_object
-----------------------------------------------------------------------------
  name             $i    $n     $t     $r         $o       $p      
shrt_desc/title    $I    $N     $T     $R         $O       $P          
he/she/it          $j    $e     $E     $J         --       --    '$'symbol=$$
him/her/it         $l    $m     $M     $L         --       --          
his/hers/its       $k    $s     $S     $K         --       --
a/an               --    --     --     --         $a       $A
 
ifcheck       argument?        meaning
-----------------------------------------------------------------------------
rand(num)                   Is a random percentage less than or equal to num
isnpc($*)                   Is $* an NPC
ispc($*)                    Is $* a PC
isgood($*)                  Does $* have a good alignment 
isfight($*)                 Is $* fighting
isimmort($*)                Is the level of $* greater than max_mortal
ischarmed($*)               Is $* affected by charm
isfollow($*)                Is $* a follower with their master in the room
isaffected($*) & integer    Is ($*->affected_by & integer) true (person only) 
MOBcommand      argument_list           MOBcommand      argument_list
-----------------------------------------------------------------------------
MPSTAT          mobile                MPASOUND        text_string
MPJUNK          object                MPECHO          text_string
MPMLOAD         mobile                MPECHOAT        victim text_string
MPOLOAD         object level        MPECHOAROUND    victim text_string
MPKILL          victim                MPPURGE         argument
MPGOTO          dest                  MPAT            dest command 
MPTRANSFER      dest location       MPFORCE         victim command
======================END OF QUICK REFERENCE SHEET===========================

If you need to know what the MOBcommands are, read MOBCOMMANDS.

Extra Descriptions: manual mob progs C1 create type IN_FILE_PROG ACT_PROG BRIBE_PROG ENTRY_PROG GIVE_PROG GREET_PROG ALL_GREET_PROG FIGHT_PROG HITPERCENT_PROG HITPRCNT_PROG DEATH_PROG RAND_PROG SPEECH_PROG ARGS commands destroy C2 C3 Variables C4 Reference mobcommands
Back to the Main Builder Resources Page
© World of Pain, All rights reserved.