forums wiki races classes cabals religions world history immortals all pages bugs items helps stats changes calendar map login donate play now

SCRIPT2

General
What follows is reference of script commands and examples of their use:

COMMAND              EXAMPLE                  EXPLANATION
"rand"               if rand 30               if random number < 30 
"mobhere"            if mobhere fido          is there a 'fido' here 
                     if mobhere 1233          is there mob vnum 1233 here 
"objhere"            if objhere bottle        is there a 'bottle' here 
                     if objhere 1233          is there obj vnum 1233 here 
"mobexists"          if mobexists fido        is there a fido somewhere 
                     if mobexists 1233        is there a mob vnum 1233 somewhere 
"objexists"          if objexists sword       is there a sword somewhere 
                     if objexists 1233        is there an obj vnum 1233 somewhere 
"people"             if people > 4            does room contain > 4 people 
"players"            if players > 1           does room contain > 1 pcs 
"mobs"               if mobs > 2              does room contain > 2 mobiles
"clones"             if clones > 3            are there > 3 mobs of same vnum here
"order"              if order == 0            is mob the first in room 
"hour"               if hour > 11             is the time > 11 o'clock (military time)
"ispc",              if ispc $n               is $n a pc 
"isnpc",             if isnpc $n              is $n a mobile 
"isgood",            if isgood $n             is $n good 
"isevil",            if isevil $n             is $n evil 
"isneutral",         if isneutral $n          is $n neutral 
"isimmort",          if isimmort $n           is $n immortal 
"ischarm",           if ischarm $n            is $n charmed 
"isfollow",          if isfollow $n           is $n following someone 
"isactive",          if isactive $n           is $n's position > SLEEPING 
"isdelay",           if isdelay $i            does $i have mobprog pending 
"isvisible",         if isvisible $n          can mob see $n 
"hastarget",         if hastarget $i          does $i have a valid target 
"istarget",          if istarget $n           is $n mob's target 
"exists",            if exists $n             does $n exist somewhere 
"affected",          if affected $n blind     is $n affected by blind 
"act",               if act $i sentinel       is $i flagged sentinel 
"off",               if off $i berserk        is $i flagged berserk 
"imm",               if imm $i fire           is $i immune to fire 
"carries",           if carries $n sword      does $n have a 'sword' 
                     if carries $n 1233       does $n have obj vnum 1233 

[Continued in HELP SCRIPT3]