User Tools

Site Tools


triggers:mprog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
triggers:mprog [2014/12/24 04:00] vodurtriggers:mprog [2015/09/28 03:07] (current) vodur
Line 1: Line 1:
 ====== MobProgs ====== ====== MobProgs ======
  
-^Argument ^Type ^Note +^Script 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 | |ch |[[:lua:ch:members|CH]] |the character (if any) that triggered the script |
 |trigger |string |see table | |trigger |string |see table |
Line 12: Line 11:
 |trigtype |string |see table | |trigtype |string |see table |
  
-^trigtype ^mob ^ch ^trigger ^obj1 ^obj2 ^text1 ^text2 ^victim | +The actual mob to whom the script is attached can be referenced in the script through '**mob**' global variable (type [[:lua:ch:members|CH]]). 
-|[[: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 | +^trigtype ^ch ^trigger ^obj1 ^obj2 ^text1 ^text2 ^victim ^Notes 
-|[[:triggers:mprog:death|death]] |mob |killer |none |none |none |none |none |none | +|[[: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:entry|entry]] |mob |none |none |none |none |none |none |none | +|[[:triggers:mprog:bribe|bribe]] |briber |amount (in silver) |none |none |none |none |none |  
-|[[:triggers:mprog:fight|fight]] |mob |target |none |none |none |none |none |none | +|[[:triggers:mprog:death|death]] |killer |none |none |none |none |none |none |  
-|[[:triggers:mprog:give|give]] |mob |giver |object name |object given |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:greet|greet]] |mob |who entered |none |none |none |none |none |none | +|[[:triggers:mprog:fight|fight]] |target |none |none |none |none |none |none |  
-|[[:triggers:mprog:greet|grall]] |mob |who entered |none |none |none |none |none |none | +|[[:triggers:mprog:give|give]] |giver |object name |object given |none |none |none |none |  
-|[[:triggers:mprog:kill|kill]] |mob |attacker |none |none |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:hpcnt|hpcnt]] |mob |opponent |actual percentage |none |none |none |none |none | +|[[:triggers:mprog:greet|grall]] |who entered |none |none |none |none |none |none |See [[:triggers:enterandexit|enter and exit triggers]]. 
-|[[:triggers:mprog:random|random]] |mob |none |none |none |none |none |none |none | +|[[:triggers:mprog:kill|kill]] |attacker |none |none |none |none |none |none |  
-|[[:triggers:mprog:speech|speech]] |mob |speaker |full text that was said |none |none |none |none |none | +|[[:triggers:mprog:hpcnt|hpcnt]] |opponent |actual percentage |none |none |none |none |none |  
-|[[:triggers:mprog:exit|exit]] |mob |mover |direction |none |none |none |none |none | +|[[:triggers:mprog:random|random]] |none |none |none |none |none |none |none |  
-|[[:triggers:mprog:exit|exall]] |mob |mover |direction |none |none |none |none |none | +|[[:triggers:mprog:speech|speech]] |speaker |full text that was said |none |none |none |none |none |  
-|[[:triggers:mprog:delay|delay]] |mob |none |none |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:surrender|surrender]] |mob |surrenderer |none |none |none |none |none |none | +|[[:triggers:mprog:exit|exall]] |mover |direction |none |none |none |none |none |See [[:triggers:enterandexit|enter and exit triggers]]. 
-|[[:triggers:mprog:drbomb|drbomb]] |mob |bomber |none |bomb |none |none |none |none | +|[[:triggers:mprog:delay|delay]] |none |none |none |none |none |none |none |  
-|[[:triggers:mprog:exbomb|exbomb]] |mob |mob |none |bomb |none |none |none |none | +|[[:triggers:mprog:surrender|surrender]] |surrenderer |none |none |none |none |none |none |  
-|[[:triggers:mprog:defeat|defeat]] |mob |victim |none |none |none |none |none |none | +|[[:triggers:mprog:drbomb|drbomb]] |bomber |none |bomb |none |none |none |none |  
-|[[:triggers:mprog:social|social]] |mob |socialer |name of social |none |none |none |none |none | +|[[:triggers:mprog:exbomb|exbomb]] |mob |none |bomb |none |none |none |none |  
-|[[:triggers:mprog:try|try]] |mob |tryer |full text of try |none |none |none |none |none | +|[[:triggers:mprog:defeat|defeat]] |victim |none |none |none |none |none |none |  
-|[[:triggers:mprog:reset|reset]] |mob |none |none |none |none |none |none |none | +|[[:triggers:mprog:social|social]] |socialer |name of social |none |none |none |none |none |  
-|[[:triggers:mprog:mpcnt|mpcnt]] |mob |opponent |actual percentage |none |none |none |none |none | +|[[:triggers:mprog:try|try]] |tryer |full text of try |none |none |none |none |none |  
-|[[:triggers:mprog:spell|spell]] |mob |caster |spell name |none |none |none |none |none | +|[[:triggers:mprog:reset|reset]] |none |none |none |none |none |none |none |  
-|[[:triggers:triggers:mprog:command|command ]] |mob |commander |command name |none |none |command argument |none |none | +|[[:triggers:mprog:mpcnt|mpcnt]] |opponent |actual percentage |none |none |none |none |none |  
-|[[:triggers:timer|timer]] |mob |none |none |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:\\ ACT notes:\\
triggers/mprog.1419393638.txt.gz · Last modified: 2014/12/24 04:00 by vodur