User Tools

Site Tools


triggers:mprog

Differences

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

Link to this comparison view

Next revision
Previous revision
triggers:mprog [2014/12/24 03:20] – created vodurtriggers:mprog [2015/09/28 03:07] (current) vodur
Line 1: Line 1:
 ====== MobProgs ====== ====== MobProgs ======
  
-^Argument ^Type ^Note | +^Script Argument ^Type ^Note | 
-|mob |[[http://rooflez.com/wiki/index.php?n=Main.CHProperties|CH]] |the mob to whom the script is attached | +|ch |[[:lua:ch:members|CH]] |the character (if any) that triggered the script |
-|ch |[[http://rooflez.com/wiki/index.php?n=Main.CHProperties|CH]] |the character (if any) that triggered the script |+
 |trigger |string |see table | |trigger |string |see table |
-|obj1 |[[http://rooflez.com/wiki/index.php?n=Main.OBJProperties|OBJ]] |see table | +|obj1 |[[:lua:obj:members|OBJ]] |see table | 
-|obj2 |[[http://rooflez.com/wiki/index.php?n=Main.OBJProperties|OBJ]] |see table |+|obj2 |[[:lua:obj:members|OBJ]] |see table |
 |text1 |string |see table | |text1 |string |see table |
 |text2 |string |see table | |text2 |string |see table |
-|victim |CH |see table |+|victim |[[:lua:ch:members|CH]] |see table |
 |trigtype |string |see table | |trigtype |string |see table |
  
-^[[http://rooflez.com/wiki/index.php?n=Main.MobProgs#|trigtype +The actual mob to whom the script is attached can be referenced in the script through '**mob**' global variable (type [[:lua:ch:members|CH]])
- {{http://rooflez.com/wiki/pub/sortable/none.gif?nolink&}} + 
-]] ^[[http://rooflez.com/wiki/index.php?n=Main.MobProgs#|mob +^trigtype ^ch ^trigger ^obj1 ^obj2 ^text1 ^text2 ^victim ^Notes 
- {{http://rooflez.com/wiki/pub/sortable/none.gif?nolink&}} +|[[: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??? |  
-]] ^[[http://rooflez.com/wiki/index.php?n=Main.MobProgs#|ch +|[[:triggers:mprog:bribe|bribe]] |briber |amount (in silver) |none |none |none |none |none |  
- {{http://rooflez.com/wiki/pub/sortable/none.gif?nolink&}} +|[[:triggers:mprog:death|death]] |killer |none |none |none |none |none |none |  
-]] ^[[http://rooflez.com/wiki/index.php?n=Main.MobProgs#|trigger +|[[: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]]. 
- {{http://rooflez.com/wiki/pub/sortable/none.gif?nolink&}} +|[[:triggers:mprog:fight|fight]] |target |none |none |none |none |none |none |  
-]] ^[[http://rooflez.com/wiki/index.php?n=Main.MobProgs#|obj1 +|[[:triggers:mprog:give|give]] |giver |object name |object given |none |none |none |none |  
- {{http://rooflez.com/wiki/pub/sortable/none.gif?nolink&}} +|[[:triggers:mprog:greet|greet]] |who entered |none |none |none |none |none |none |See [[:triggers:enterandexit|enter and exit triggers]]. 
-]] ^[[http://rooflez.com/wiki/index.php?n=Main.MobProgs#|obj2 +|[[:triggers:mprog:greet|grall]] |who entered |none |none |none |none |none |none |See [[:triggers:enterandexit|enter and exit triggers]]. 
- {{http://rooflez.com/wiki/pub/sortable/none.gif?nolink&}} +|[[:triggers:mprog:kill|kill]] |attacker |none |none |none |none |none |none |  
-]] ^[[http://rooflez.com/wiki/index.php?n=Main.MobProgs#|text1 +|[[:triggers:mprog:hpcnt|hpcnt]] |opponent |actual percentage |none |none |none |none |none |  
- {{http://rooflez.com/wiki/pub/sortable/none.gif?nolink&}} +|[[:triggers:mprog:random|random]] |none |none |none |none |none |none |none |  
-]] ^[[http://rooflez.com/wiki/index.php?n=Main.MobProgs#|text2 +|[[:triggers:mprog:speech|speech]] |speaker |full text that was said |none |none |none |none |none |  
- {{http://rooflez.com/wiki/pub/sortable/none.gif?nolink&}} +|[[:triggers:mprog:exit|exit]] |mover |direction |none |none |none |none |none |See [[:triggers:enterandexit|enter and exit triggers]]. 
-]] ^[[http://rooflez.com/wiki/index.php?n=Main.MobProgs#|victim +|[[:triggers:mprog:exit|exall]] |mover |direction |none |none |none |none |none |See [[:triggers:enterandexit|enter and exit triggers]]. 
- {{http://rooflez.com/wiki/pub/sortable/none.gif?nolink&}} +|[[:triggers:mprog:delay|delay]] |none |none |none |none |none |none |none |  
-]] +|[[:triggers:mprog:surrender|surrender]] |surrenderer |none |none |none |none |none |none |  
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogAct|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:drbomb|drbomb]] |bomber |none |bomb |none |none |none |none |  
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogBribe|bribe]] |mob |briber |amount (in silver) |none |none |none |none |none | +|[[:triggers:mprog:exbomb|exbomb]] |mob |none |bomb |none |none |none |none |  
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogDeath|death]] |mob |killer |none |none |none |none |none |none | +|[[:triggers:mprog:defeat|defeat]] |victim |none |none |none |none |none |none |  
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogEntry|entry]] |mob |none |none |none |none |none |none |none | +|[[:triggers:mprog:social|social]] |socialer |name of social |none |none |none |none |none |  
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogFight|fight]] |mob |target |none |none |none |none |none |none | +|[[:triggers:mprog:try|try]] |tryer |full text of try |none |none |none |none |none |  
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogGive|give]] |mob |giver |object name |object given |none |none |none |none | +|[[:triggers:mprog:reset|reset]] |none |none |none |none |none |none |none |  
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogGreet|greet]] |mob |who entered |none |none |none |none |none |none | +|[[:triggers:mprog:mpcnt|mpcnt]] |opponent |actual percentage |none |none |none |none |none |  
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogGreet|grall]] |mob |who entered |none |none |none |none |none |none | +|[[:triggers:mprog:spell|spell]] |caster |spell name |none |none |none |none |none |  
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogKill|kill]] |mob |attacker |none |none |none |none |none |none | +|[[:triggers:triggers:mprog:command|command ]] |commander |command name |none |none |command argument |none |none |  
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogHpcnt|hpcnt]] |mob |opponent |actual percentage |none |none |none |none |none | +|[[:triggers:timer|timer]] |none |none |none |none |none |none |none |  |
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogRandom|random]] |mob |none |none |none |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogSpeech|speech]] |mob |speaker |full text that was said |none |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogExit|exit]] |mob |mover |direction |none |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogExit|exall]] |mob |mover |direction |none |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogDelay|delay]] |mob |none |none |none |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogSurrender|surrender]] |mob |surrenderer |none |none |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogDrbomb|drbomb]] |mob |bomber |none |bomb |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogExbomb|exbomb]] |mob |mob |none |bomb |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogDefeat|defeat]] |mob |victim |none |none |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogSocial|social]] |mob |socialer |name of social |none |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogTry|try]] |mob |tryer |full text of try |none |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogReset|reset]] |mob |none |none |none |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogMpcnt|mpcnt]] |mob |opponent |actual percentage |none |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogSpell|spell]] |mob |caster |spell name |none |none |none |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.MprogCommand?action=edit|command]][[http://rooflez.com/wiki/index.php?n=Main.MprogCommand?action=edit|?]] |mob |commander |command name |none |none |command argument |none |none | +
-|[[http://rooflez.com/wiki/index.php?n=Main.TimerTrigger|timer]] |mob |none |none |none |none |none |none |none |+
  
 ACT notes:\\ ACT notes:\\
triggers/mprog.1419391233.txt.gz · Last modified: 2014/12/24 03:20 by vodur