====== MobProgs ====== ^Script Argument ^Type ^Note | |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 | The actual mob to whom the script is attached can be referenced in the script through '**mob**' global variable (type [[:lua:ch:members|CH]]). ^trigtype ^ch ^trigger ^obj1 ^obj2 ^text1 ^text2 ^victim ^Notes | |[[:triggers:mprog:act|act]] |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]] |briber |amount (in silver) |none |none |none |none |none | | |[[:triggers:mprog:death|death]] |killer |none |none |none |none |none |none | | |[[:triggers:mprog:entry|entry]] |none |none |none |none |none |none |none |Fires when the mob enters any room. \\ See [[:triggers:enterandexit|enter and exit triggers]]. | |[[:triggers:mprog:fight|fight]] |target |none |none |none |none |none |none | | |[[:triggers:mprog:give|give]] |giver |object name |object given |none |none |none |none | | |[[:triggers:mprog:greet|greet]] |who entered |none |none |none |none |none |none |See [[:triggers:enterandexit|enter and exit triggers]]. | |[[:triggers:mprog:greet|grall]] |who entered |none |none |none |none |none |none |See [[:triggers:enterandexit|enter and exit triggers]]. | |[[:triggers:mprog:kill|kill]] |attacker |none |none |none |none |none |none | | |[[:triggers:mprog:hpcnt|hpcnt]] |opponent |actual percentage |none |none |none |none |none | | |[[:triggers:mprog:random|random]] |none |none |none |none |none |none |none | | |[[:triggers:mprog:speech|speech]] |speaker |full text that was said |none |none |none |none |none | | |[[:triggers:mprog:exit|exit]] |mover |direction |none |none |none |none |none |See [[:triggers:enterandexit|enter and exit triggers]]. | |[[:triggers:mprog:exit|exall]] |mover |direction |none |none |none |none |none |See [[:triggers:enterandexit|enter and exit triggers]]. | |[[:triggers:mprog:delay|delay]] |none |none |none |none |none |none |none | | |[[:triggers:mprog:surrender|surrender]] |surrenderer |none |none |none |none |none |none | | |[[:triggers:mprog:drbomb|drbomb]] |bomber |none |bomb |none |none |none |none | | |[[:triggers:mprog:exbomb|exbomb]] |mob |none |bomb |none |none |none |none | | |[[:triggers:mprog:defeat|defeat]] |victim |none |none |none |none |none |none | | |[[:triggers:mprog:social|social]] |socialer |name of social |none |none |none |none |none | | |[[:triggers:mprog:try|try]] |tryer |full text of try |none |none |none |none |none | | |[[:triggers:mprog:reset|reset]] |none |none |none |none |none |none |none | | |[[:triggers:mprog:mpcnt|mpcnt]] |opponent |actual percentage |none |none |none |none |none | | |[[:triggers:mprog:spell|spell]] |caster |spell name |none |none |none |none |none | | |[[:triggers:triggers:mprog:command|command ]] |commander |command name |none |none |command argument |none |none | | |[[:triggers:timer|timer]] |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)% \\