lua:scripting:examples:conservingvnums
Differences
This shows you the differences between two versions of the page.
| lua:scripting:examples:conservingvnums [2014/12/24 05:46] – created vodur | lua:scripting:examples:conservingvnums [2026/10/16 20:06] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | In cases where multiple triggers are used for the same mob/ | ||
| - | < | ||
| - | OBJPrograms for [31404]: | ||
| - | | ||
| - | | ||
| - | [ 0] 31400 drop 100 | ||
| - | [ 1] 31400 eat 100 | ||
| - | |||
| - | </ | ||
| - | |||
| - | <code lua> | ||
| - | if trigtype==" | ||
| - | echo(" | ||
| - | return false | ||
| - | elseif trigtype==" | ||
| - | echo(" | ||
| - | return true | ||
| - | end | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | eat cab | ||
| - | You can't eat me! | ||
| - | |||
| - | drop cab | ||
| - | You can drop me. | ||
| - | You drop Corned Beef and Cabbage. | ||
| - | </ | ||
| - | |||
| - | If needed this could be taken one step further with the same prog being used for multiple mobs/ | ||
