lua:ch:addaffect
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| lua:ch:addaffect [2014/07/06 06:27] – created vodur | lua:ch:addaffect [2024/07/11 18:34] (current) – astark | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| Syntax: | Syntax: | ||
| - | < | + | addaffect( where<" |
| - | addaffect( where[" | + | addaffect( where<" |
| - | + | addaffect( where<" | |
| - | | + | addaffect( where<" |
| - | addaffect( where[" | + | |
| - | + | ||
| - | </ | + | |
| Arguments: | Arguments: | ||
| + | < | ||
| - | < | + | where - As indicated, could be affects, immune, resist, or vuln. |
| - | type - Skill name or " | + | type - Skill name or " |
| - | level - Integer. | + | level - Integer. |
| - | duration - Integer. Duration in ticks, -1 for indefinite. | + | duration - Integer. Duration in ticks, -1 for indefinite. |
| - | bitvector - Affect flag to add ( see affect_flags table ). | + | location - What does it affect ( see apply_flags table ). |
| - | customtag - String. Custom name for the affect. This is what will show with ' | + | modifier - How much does it affect, i.e. skills -100) |
| + | bitvector - Affect flag to add ( see affect_flags table ). | ||
| + | customtag - String. Custom name for the affect. This is what will show with ' | ||
| </ | </ | ||
| Line 22: | Line 22: | ||
| Example1: | Example1: | ||
| - | ch: | + | <code lua> |
| + | --------------where--------type---------lvl--dur--location--mod--bitvec---custom-tag | ||
| + | ch: | ||
| ch: | ch: | ||
| - | [[http:// | + | </code> |
| - | You are affected by the following spells: | + | < |
| + | You are affected by the following spells: | ||
| Special: Irena' | Special: Irena' | ||
| - | + | : modifies all skills by -100 indefinitely (Lvl 100) | |
| - | < | + | |
| </ | </ | ||
| Example2: | Example2: | ||
| + | |||
| + | < | ||
| + | --------------where--------type------lvl--dur-loc--mod--bitv | ||
| + | ch: | ||
| + | |||
| + | </ | ||
| + | |||
| + | < | ||
| + | You are affected by the following spells: | ||
| + | Ability: paroxysm | ||
| + | |||
| + | </ | ||
| + | |||
| + | Example 3: | ||
| + | |||
| + | <code lua> | ||
| + | -----------where-------type--------lvl--dur---bitv---customtag | ||
| + | addaffect(" | ||
| + | |||
| + | </ | ||
| + | |||
| + | < | ||
| + | Special: Scorched skin : modifies none by 0 for 100 hours (Lvl 100) | ||
| + | |||
| + | </ | ||
| + | |||
lua/ch/addaffect.1404628025.txt.gz · Last modified: 2014/07/06 06:27 by vodur