Difference between revisions of "Manual:DIL Manual/addaff()"

From DikuMUD Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
= addaff( u : unitptr, id : integer, duration : integer, beat: integer,
 +
          data0 : integer, data1: integer, data2: integer,
 +
          tif_first : integer, tif_tick : integer, tif_last : integer, apf : integer) =
  
 +
  u  : Unit to add affect to.
 +
  id : Affect id to add, see ID_* in values.h and/or vme.h
 +
  duration : Number of triggers
 +
  beat : How often the pulse runs (4 = 1 second)
 +
  data0-2 : Data values for the ID_
 +
  tif  : The message ID
 +
  apf  : The modification function
 +
  result: Adds affect 'id' at 'u' with first, tick, and last TIF_XXX's, etc.
  
<span id="bpaddaff"></span>
+
See also:
   addaff( u : unitptr, id : integer, duration : integer, beat: integer,
+
  > [[Manual:DIL_Manual/subaff()|subaff()]]
          data0 : integer, data1: integer, data2: integer,
+
   > [[Manual:DIL_Manual/isaff()|isaff()]]
          tif_first : integer, tif_tick : integer, tif_last : integer, apf : integer, )
+
  > [[Manual:DIL_Manual/getaffects()|getaffects()]]
 
 
    u  : Unit to add affect to.
 
    id : Affect id to add, see ID_* in values.h and/or vme.h
 
    result: Adds affect 'id' at 'u' with first, tick, and last TIF_XXX's
 

Revision as of 22:17, 6 March 2022

= addaff( u : unitptr, id : integer, duration : integer, beat: integer,

         data0 : integer, data1: integer, data2: integer,
         tif_first : integer, tif_tick : integer, tif_last : integer, apf : integer) = 
 u  : Unit to add affect to.
 id : Affect id to add, see ID_* in values.h and/or vme.h
 duration : Number of triggers
 beat : How often the pulse runs (4 = 1 second)
 data0-2 : Data values for the ID_
 tif  : The message ID 
 apf  : The modification function
 result: Adds affect 'id' at 'u' with first, tick, and last TIF_XXX's, etc.

See also:

 > subaff()
 > isaff()
 > getaffects()