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/01/07 06:20] – vodur | triggers:oprog [2026/10/13 19:13] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== ObjProgs ====== | ||
| - | Obj progs are attached in oedit with addoprog command. | ||
| - | |||
| - | Obj progs are always lua scripts. | ||
| - | |||
| - | ^Script Argument ^Type ^Note | | ||
| - | |obj |[[: | ||
| - | |obj2 |[[: | ||
| - | |ch1 |[[: | ||
| - | |ch2 |[[: | ||
| - | |trigger |string |see table | | ||
| - | |trigtype |string |see table | | ||
| - | |||
| - | The actual object to which the script is attached can be referenced in the script through ' | ||
| - | |||
| - | ^trigtype ^obj2 ^ch1 ^ch2 ^trigger ^type ^Description | | ||
| - | |[[: | ||
| - | |drop< | ||
| - | |eat< | ||
| - | |drink< | ||
| - | |quaff< | ||
| - | |sacrifice< | ||
| - | |wear< | ||
| - | |remove< | ||
| - | |spell< | ||
| - | |speech |none |speaker |none |full speech text |string(keyword or < | ||
| - | |try |none |tryer |none |full try text |string(phrase or < | ||
| - | |put< | ||
| - | |get< | ||
| - | |rand |obj |none |none |none |none |number(%chance) |Checks every tick | | ||
| - | |greet |none |ch |none |none |number(%chance) |No vis check | | ||
| - | |[[: | ||
| - | |lore< | ||
| - | |enter< | ||
| - | |unlock< | ||
| - | |open< | ||
| - | |sit< | ||
| - | |wake< | ||
| - | |fight |none |wearer |enemy |none |number(%chance) |Checked every round of a fight. Only checked for worn/ | ||
| - | |prehit< | ||
| - | |hit |none |hitter |victim |none |number(%chance) |Checks on weapon after successful hit (and after other effects such as weapon flag, stance, behead, etc). | | ||
| - | |[[: | ||
| - | |||
| - | |(< | ||
| - | |||
| - | \\ | ||
triggers/oprog.1420611630.txt.gz · Last modified: by vodur
