This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
triggers:mprog [2014/12/24 03:39] vodur |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== MobProgs ====== | ||
- | |||
- | ^Argument ^Type ^Note | | ||
- | |mob |[[:lua:ch:members|CH]] |the mob to whom the script is attached | | ||
- | |ch |[[:lua:ch:members|CH]] |the character (if any) that triggered the script | | ||
- | |trigger |string |see table | | ||
- | |obj1 |[[:lua:obj:members|OBJ]] |see table | | ||
- | |obj2 |[[:lua:obj:members|OBJ]] |see table | | ||
- | |text1 |string |see table | | ||
- | |text2 |string |see table | | ||
- | |victim |[[:lua:ch:members|CH]] |see table | | ||
- | |trigtype |string |see table | | ||
- | |||
- | ^trigtype ^mob ^ch ^trigger ^obj1 ^obj2 ^text1 ^text2 ^victim | | ||
- | |[[:triggers:mprog:act|act]] |mob |triggering character or nil |full text of the act that triggered the prog |primary object if any |secondary object if any |text1 arg if any |text2 arg if any |the mob if it is the victim of the act, always the mob??? | | ||
- | |[[:triggers:mprog:bribe|bribe]] |mob |briber |amount (in silver) |none |none |none |none |none | | ||
- | |[[:triggers:mprog:death|death]] |mob |killer |none |none |none |none |none |none | | ||
- | |[[:triggers:mprog:entry|entry]] |mob |none |none |none |none |none |none |none | | ||
- | |[[:triggers:mprog:fight|fight]] |mob |target |none |none |none |none |none |none | | ||
- | |[[:triggers:mprog:give|give]] |mob |giver |object name |object given |none |none |none |none | | ||
- | |[[:triggers:mprog:greet|greet]] |mob |who entered |none |none |none |none |none |none | | ||
- | |[[:triggers:mprog:greet|grall]] |mob |who entered |none |none |none |none |none |none | | ||
- | |[[:triggers:mprog:kill|kill]] |mob |attacker |none |none |none |none |none |none | | ||
- | |[[:triggers:mprog:hpcnt|hpcnt]] |mob |opponent |actual percentage |none |none |none |none |none | | ||
- | |[[:triggers:mprog:random|random]] |mob |none |none |none |none |none |none |none | | ||
- | |[[:triggers:mprog:speech|speech]] |mob |speaker |full text that was said |none |none |none |none |none | | ||
- | |[[:triggers:mprog:exit|exit]] |mob |mover |direction |none |none |none |none |none | | ||
- | |[[:triggers:mprog:exall|exall]] |mob |mover |direction |none |none |none |none |none | | ||
- | |[[:triggers:mprog:delay|delay]] |mob |none |none |none |none |none |none |none | | ||
- | |[[:triggers:mprog:surrender|surrender]] |mob |surrenderer |none |none |none |none |none |none | | ||
- | |[[:triggers:mprog:drbomb|drbomb]] |mob |bomber |none |bomb |none |none |none |none | | ||
- | |[[:triggers:mprog:exbomb|exbomb]] |mob |mob |none |bomb |none |none |none |none | | ||
- | |[[:triggers:mprog:defeat|defeat]] |mob |victim |none |none |none |none |none |none | | ||
- | |[[:triggers:mprog:social|social]] |mob |socialer |name of social |none |none |none |none |none | | ||
- | |[[:triggers:mprog:try|try]] |mob |tryer |full text of try |none |none |none |none |none | | ||
- | |[[:triggers:mprog:reset|reset]] |mob |none |none |none |none |none |none |none | | ||
- | |[[:triggers:mprog:mpcnt|mpcnt]] |mob |opponent |actual percentage |none |none |none |none |none | | ||
- | |[[:triggers:mprog:spell|spell]] |mob |caster |spell name |none |none |none |none |none | | ||
- | |[[:triggers:mprog:command|command]][[http://rooflez.com/wiki/index.php?n=Main.MprogCommand?action=edit|?]] |mob |commander |command name |none |none |command argument |none |none | | ||
- | |[[:triggers:mprog:timer|timer]] |mob |none |none |none |none |none |none |none | | ||
- | |||
- | ACT notes:\\ | ||
- | Occasions of secondary object:\\ | ||
- | -bomb exploding in a container\\ | ||
- | -extracting\\ | ||
- | -put in and get from container\\ | ||
- | -compare | ||
- | |||
- | Occasions of text1:\\ | ||
- | -text of a ventriloquate seen 3rd person.\\ | ||
- | -immortal bamfin/bamfout | ||
- | |||
- | Occasions of text2:\\ | ||
- | -person in room scanning (direction)\\ | ||
- | -person in the room practicing a skill. (skill name)% | ||
- | |||
- | \\ | ||