PennMUSH Community

Changeset 1181

Show
Ignore:
Timestamp:
01/01/08 21:45:03 (8 months ago)
Author:
shawnw
Message:

#7488: *powers() documentation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.2/branches/devel/CHANGES.182

    r1178 r1181  
    1313 
    1414========================================================================== 
     15Version 1.8.2 patchlevel 9                     ??? ??, 2008 
     16 
     17Functions: 
     18 * The undocumented (And unusable) orpowers() and andpowers() functions 
     19   were removed. 
     20 
     21Documentation: 
     22 * andlpowers() and orlpowers() were missing help files. Reported by 
     23   Parusso. 
    1524 
    1625Version 1.8.2 patchlevel 8                     Jan 01, 2008 
  • 1.8.2/branches/devel/game/txt/hlp/pennfunc.hlp

    r1086 r1181  
    129129  Information functions return values related to objects or the game. 
    130130 
    131   alias()       andflags()    andlflags()   config()      controls() 
    132   ctime()       elock()       findable()    flags()       fullalias() 
    133   fullname()    hasattr()     hasattrp()    hasflag()     haspower() 
    134   hastype()     iname()       lflags()      lock()        lstats() 
    135   money()       mtime()       mudname()     name()        nattr() 
    136   nearby()      objid()       objmem()      orflags()     orlflags() 
    137   playermem()   poll()        powers()      quota()       restarts() 
    138   type()        version()     visible() 
    139  
     131  alias()       andflags()    andlflags()   andlpowers()  config() 
     132  controls()    ctime()       elock()       findable()    flags() 
     133  fullalias()   fullname()    hasattr()     hasattrp()    hasflag() 
     134  haspower()    hastype()     iname()       lflags()      lock() 
     135  lstats()      money()       mtime()       mudname()     name() 
     136  nattr()       nearby()      objid()       objmem()      orflags() 
     137  orlflags()    orlpowers()   playermem()   poll()        powers() 
     138  quota()       restarts()    type()        version()     visible() 
    140139& List functions 
    141140  List functions take at least one list of elements and return transformed 
     
    464463  If a name does not correspond to any flag, <object> doesn't have it, 
    465464  so the function returns 0. There can be an arbitrary number of flags. 
     465& ANDLPOWERS() 
     466  andlpowers(<object>, <list of powers>) 
     467 
     468  This function returns 1 if <object> has all the powers in a 
     469  specified list, and 0 if it does not. The list is a space-separated 
     470  list of power names.  A '!' preceding a flag name means "not power". 
     471 
     472  Thus, ANDLPOWERS(me, no_quota no_pay) would return 1 if I was 
     473  powered no_quota and no_pay.  ANDLPOWERS(me, poll !guest) would 
     474  return 1 if I could change the poll and was not a guest. 
     475 
     476  If a name does not correspond to any power, <object> doesn't have 
     477  it, so the function returns 0. There can be an arbitrary number of 
     478  powers. 
    466479& ANSI() 
    467480  ansi(<codes>, <string>) 
     
    29012914  If a name does not correspond to any flag, <object> doesn't have it, 
    29022915  so it is simply ignored. There can be an arbitrary number of flags. 
     2916& ORLPOWERS() 
     2917  orlpowers(<object>, <list of powers>) 
     2918 
     2919  This function returns 1 if <object> has at least one of the powers 
     2920  in a specified list, and 0 if it does not. The list is a 
     2921  space-separated list of power names.  A '!' preceding a flag name 
     2922  means "not power". 
     2923 
     2924  Thus, ORLPOWERS(me, poll login) would return 1 if I have the poll 
     2925  and login powers.  ORLFLAGS(me, functions !guest) would return 1 if I 
     2926  have the functions power or are not a guest. 
     2927 
     2928  If a name does not correspond to any power, <object> doesn't have 
     2929  it, so it is simply ignored. There can be an arbitrary number of 
     2930  powers. 
    29032931& OWNER() 
    29042932  owner(<object>[/<attribute>]) 
  • 1.8.2/branches/devel/src/function.c

    r1086 r1181  
    282282  {"ANDLFLAGS", fun_andlflags, 2, 2, FN_REG}, 
    283283  {"ANDLPOWERS", fun_andlflags, 2, 2, FN_REG}, 
    284   {"ANDPOWERS", fun_andflags, 2, 2, FN_REG}, 
    285284  {"ANSI", fun_ansi, 2, -2, FN_NOPARSE}, 
    286285  {"APOSS", fun_aposs, 1, 1, FN_REG}, 
     
    538537  {"ORLFLAGS", fun_orlflags, 2, 2, FN_REG}, 
    539538  {"ORLPOWERS", fun_orlflags, 2, 2, FN_REG}, 
    540   {"ORPOWERS", fun_orflags, 2, 2, FN_REG}, 
    541539  {"OWNER", fun_owner, 1, 1, FN_REG}, 
    542540  {"PARENT", fun_parent, 1, 2, FN_REG},