PennMUSH Community

Changeset 1280

Show
Ignore:
Timestamp:
09/23/08 13:07:59 (2 months ago)
Author:
shawnw
Message:

#7529: Help entries for more substitutions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/trunk/game/txt/hlp/pennfunc.hlp

    r1278 r1280  
    515515See also: ANSI, COLOR  
    516516& APOSS() 
     517& %a 
    517518  aposs(<object>) 
    518519 
    519520  Returns the absolute possessive pronoun - his/hers/its/theirs - 
    520   for an object. 
     521  for an object. The %a substitution returns the absolute possessive 
     522  pronoun of the enactor. 
    521523& ART() 
    522524  art(<string>) 
     
    29452947See also: lwho(), mwho(), xwho(), xmwho() 
    29462948& OBJ() 
     2949& %o 
    29472950  obj(<object>) 
    29482951 
    2949   Returns the objective pronoun - him/her/it - for an object. 
     2952  Returns the objective pronoun - him/her/it - for an object. The %o 
     2953  substitution will return the objective pronoun of the enactor. 
    29502954& OBJEVAL() 
    29512955  objeval(<object>, <expression>) 
     
    31553159   
    31563160& POSS() 
     3161& %p 
    31573162  poss(<object>) 
    31583163 
    3159   Returns the possessive pronoun - his/her/its - for an object. 
     3164  Returns the possessive pronoun - his/her/its - for an object. The %p 
     3165  substitution also returns the possessive pronoun of the enactor. 
    31603166& POWER() 
    31613167  power(<number>, <exponent>) 
     
    42244230  Sub() subtracts the second number from the first. 
    42254231& SUBJ() 
     4232& %s 
    42264233  subj(<object>) 
    42274234 
    4228   Returns the subjective pronoun - he/she/it - for an object. 
     4235  Returns the subjective pronoun - he/she/it - for an object. You can also 
     4236  use the %s substitution to get the subjective pronoun of the enactor. 
    42294237& RESWITCH() 
    42304238& RESWITCHI() 
     
    47464754& V() 
    47474755& V-FUNCTION 
    4748   V(<name of attribute>) 
    4749   V(<variable name>) 
     4756  v(<name of attribute>) 
     4757  v(<variable name>) 
    47504758 
    47514759  The first form of this function works just like get(me/<attribute name>). 
     
    47544762 
    47554763  The second form of this function provides a different way of getting the 
    4756   results of %-substitutions like %#, %N, %0, etc. Simply take the variabl
    4757   name (whatever follows the % symbol) and put it inside the v() function: 
     4764  results of some %-substitutions like %#. Simply take the variable nam
     4765  (whatever follows the % symbol) and put it inside the v() function: 
    47584766 
    47594767       v(N) is equivalent to %N 
    47604768       v(!) is equivalent to %! 
    47614769       v(3) is equivalent to %3 
     4770        
     4771  This can only be used for %#, %!, %@, %0-%9, %L, %N and %C. Unlike the 
     4772  %-substitutions, case does not matter in v() - v(n) and v(N) are both 
     4773  equivilent to %n (whereas %N is equivilent to [capstr(%n)]). 
    47624774 
    47634775See also: SUBSTITUTIONS, get(), ATTRIBUTES 
  • 1.8.3/trunk/game/txt/hlp/penntop.hlp

    r1278 r1280  
    16241624     %~ = the ENACTOR's accented name 
    16251625     %: = the enactor's unique identifier, like objid(%#) 
     1626      
     1627  Case makes a difference in all substitutions; capitalizing the first letter 
     1628  after the % will capitalize the first letter of the resulting substitution. 
    16261629 
    16271630(continued in help SUBSTITUTIONS2) 
     
    16301633  If the ENACTOR's gender is set, you can use these substitutions to get the 
    16311634  right pronoun for him/her: 
    1632      %s = subjective pronoun: he, she, it, they 
    1633      %o = objective pronoun: him, her, it, them 
    1634      %p = possessive pronoun: his, her, its, their 
    1635      %a = absolute possessive: his, hers, its, theirs. 
     1635     %s = subjective pronoun: he, she, it, they. Same as subj(%#) 
     1636     %o = objective pronoun: him, her, it, them. Same as obj(%#) 
     1637     %p = possessive pronoun: his, her, its, their. Same as poss(%#). 
     1638     %a = absolute possessive: his, hers, its, theirs. Same as aposs(%#). 
    16361639 
    16371640    Case makes a difference: %S will return He, She, It, They. If you need 
     
    16491652     %@ = the caller's dbref number. Initially same as %#, changes when  
    16501653          something like a U-FUNCTION is called. 
    1651      %! = the dbref number of the object the command is on. 
    1652      %L = the dbref of the ENACTOR's location. 
    1653      %c = text of the last command, _before_ evaluation. 
    1654      %u = text of the last $command, after evaluation, available to locks. 
    1655      %? = The current function invocation and depth counts. 
     1654     %! = the dbref number of the object the command is on (the EXECUTOR) 
     1655     %L = the dbref of the ENACTOR's location 
     1656     %c = text of the last command, _before_ evaluation 
     1657     %u = text of the last $command, after evaluation, available to locks 
     1658     %? = The current function invocation and depth counts 
    16561659     %+ = The number of arguments passed to the current ufun. 
    16571660    %qN = the equivalent of r(N), a register set by a setq() function. 
     
    16781681  %L = #13 
    16791682 
    1680 See also: EVALUATION, ENACTOR, EXECUTOR, DBREFS, v() 
     1683See also: EVALUATION, ENACTOR, EXECUTOR, DBREFS, REGISTERS, v() 
    16811684& SUCCESS 
    16821685  A "success" normally occurs when you attempt to do something that is