User Tools

Site Tools


lua:ch:addaffect

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lua:ch:addaffect [2014/07/06 06:27]
vodur created
— (current)
Line 1: Line 1:
-Syntax: 
- 
-<​code>​addaffect( where["​affects"​],​ type,            level, duration, location, modifier, bitvector ) 
-        addaffect( where["​affects"​],​ "​custom_affect",​ level, duration, location, modifier, bitvector, customtag ) 
- 
-        addaffect( where["​immune"​|"​resist"​|"​vuln"​],​ type,            level, duration, bitvector ) 
-        addaffect( where["​immune"​|"​resist"​|"​vuln"​],​ "​custom_affect",​ level, duration, bitvector, customtag ) 
- 
-</​code>​ 
- 
-Arguments: 
- 
-<​code>​where - As indicated, could be affects, immune, resist, or vuln. 
-  type  - Skill name or "​custom_affect"​ ( see skill_table ) 
-  level - Integer. 
-  duration - Integer. Duration in ticks, -1 for indefinite. 
-  bitvector - Affect flag to add ( see affect_flags table ). 
-  customtag - String. Custom name for the affect. This is what will show with '​affects'​ command. 
- 
-</​code>​ 
- 
-Example1: 
- 
-ch:​addaffect("​affects","​custom_affect",​ 100, -1, "​skills",​ -100, "​none",​ "​Irena'​s curse"​)\\ 
-ch:​addaffect("​affects","​custom_affect",​ 100, -1, "​stats",​ -100, "​none",​ "​Irena'​s curse"​) 
- 
-[[http://​rooflez.com/​wiki/​index.php?​n=Main.ChAddaffect?​action=sourceblock&​num=1|[$[Get Code]]]] 
- 
-You are affected by the following spells: \\ 
-Special: Irena'​s curse : modifies all stats by -100 indefinitely (Lvl 100) 
- 
-<​code>:​ modifies all skills by -100 indefinitely (Lvl 100) 
- 
-</​code>​ 
- 
-Example2: 
  
lua/ch/addaffect.1404628025.txt.gz ยท Last modified: 2014/07/06 06:27 by vodur