triggers:oprog
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
triggers:oprog [2015/09/28 03:05] – old revision restored (2015/09/27 20:02) vodur | triggers:oprog [2019/03/24 05:13] (current) – vodur | ||
---|---|---|---|
Line 5: | Line 5: | ||
Obj progs are always lua scripts. | Obj progs are always lua scripts. | ||
- | ^Script Argument ^Type ^Note | | + | ^Script Argument^Type^Note| |
- | |obj2 |[[: | + | |obj2|[[: |
- | |ch1 |[[: | + | |ch1|[[: |
- | |ch2 |[[: | + | |ch2|[[: |
- | |trigger |string |see table | | + | |text1|string|see table| |
- | |trigtype |string |see table | | + | |trigger|string|see table| |
+ | |trigtype|string|see table| | ||
The actual object to which the script is attached can be referenced in the script through ' | The actual object to which the script is attached can be referenced in the script through ' | ||
- | ^trigtype ^obj2 ^ch1 ^ch2 ^trigger ^type ^Description | | + | ^trigtype^obj2^ch1^ch2^text1^trigger^Phrase |
- | |[[: | + | |[[: |
- | |drop< | + | |drop< |
- | |eat< | + | |eat< |
- | |drink< | + | |drink< |
- | |quaff< | + | |quaff< |
- | |sacrifice< | + | |sacrifice< |
- | |wear< | + | |wear< |
- | |remove< | + | |remove< |
- | |spell< | + | |spell< |
- | |speech |none |speaker |none |full speech text |string(keyword or < | + | |speech|none|speaker|none|none|full speech text|string(keyword or < |
- | |try |none |tryer |none |full try text |string(phrase or < | + | |try|none|tryer|none|none|full try text|string(phrase or < |
- | |put< | + | |put< |
- | |get< | + | |get< |
- | |rand |none |none |none |none |number(%chance) |Checks every tick | | + | |merge< |
- | |greet |none |ch |none |none |number(%chance) |No vis check. \\ See [[: | + | | |
- | |[[: | + | | greet| |
- | |lore< | + | | [[: |
- | |move< | + | | lore< |
- | |enter< | + | |move< |
- | |unlock< | + | |enter< |
- | |open< | + | |unlock< |
- | |sit< | + | |open< |
- | |rest< | + | |sit< |
- | |sleep< | + | |rest< |
- | |wake< | + | |sleep< |
- | |fight |none |wearer |enemy |none |number(%chance) |Checked every round of a fight. Only checked for worn/ | + | |wake< |
- | |prehit< | + | |fight|none|wearer|enemy|none|none|number(%chance)|Checked every round of a fight. Only checked for worn/ |
- | |hit |none |hitter |victim |none |number(%chance) |Checks on weapon after successful hit (and after other effects such as weapon flag, stance, behead, etc). | | + | |death|none|killer|victim|none|none|number(%chance)|Triggers when object is in inventory or equipped by killer. Checked when victim is killed by the killer.| |
- | |[[: | + | |prehit< |
+ | |hit|none|hitter|victim|none|none|number(%chance)|Checks on weapon after successful hit (and after other effects such as weapon flag, stance, behead, etc). Checks on gloves when fighting unarmed.| | ||
+ | |[[: | ||
+ | |command|none|commander|none|command arguments|command name|string(command name)| | ||
- | |(< | + | |(< |
\\ | \\ | ||
+ | |||
triggers/oprog.1443409518.txt.gz · Last modified: 2015/09/28 03:05 by vodur