Advertisement
zxvf

Kill alias, add with right-click, record 'kills'

Nov 18th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #CLASS {Kill}
  2. #ALIAS kk {#class Kill;#exec kill %pop( Targets);#class 0}
  3. #ALIAS add {#class Kill;#trigger {^%-2$} {#VAR Kill/Targets %addItem( %1, @Kill/Targets)};#show Pattern:%-2;#show kill %1 added.;#class 0}
  4. #VAR Targets {}
  5. #TRIGGER {^Obvious exits:} {#var Kill/Targets {};#class Kill/Areas 1}
  6. #TRIGGER "mobKills" {(*) is dead! R.I.P.$} {#var Kill/mob {%1}}
  7. #COND {^You gain (%d) experience points!$} {#class Kill;#ADDKEY mobKills {%replace( %replace( @mob, " ", "_"), "'", ".")} {%eval( @{mobKills.%replace( %replace( @mob, " ", "_"), "'", ".")}+1)};#ADDKEY mobExp {%replace( %replace( @mob, " ", "_"), "'", ".")} {%eval( @{mobExp.%replace( %replace( @mob, " ", "_"), "'", ".")}+%1)};#class 0} {within|param=1}
  8. #TRIGGER "mobFlees" {(*) flees %w.$} {#var Kill/mob {%1}} "" {within|param=1}
  9. #COND {^You gain (%d) experience points!$} {#class Kill;#ADDKEY mobExp {%replace( @mob, " ", "_")} {%eval( @{mobExp.%replace( @mob, " ", "_")}+%1)};#class 0}
  10. #KEY DIV {kk}
  11. #MENU {Add %selword to Targets} {#class Kill;#exec {add %selword %selline};#class 0} ""
  12. #CLASS 0
  13. #CLASS {Kill|Areas}
  14. #TRIGGER {$} {#class Kill/Areas 0}
  15. #CLASS 0
  16. #CLASS {Kill|Areas|Newtonia}
  17. #TRIGGER {^{A newt farmer strolls by, whistling a simple tune.|A newt farmer makes his way through the village.}$} {#VAR Kill/Targets %addItem( farmer, @Kill/Targets)}
  18. #TRIGGER {^A newt child plays with a cornhusk doll.$} {#VAR Kill/Targets %addItem( child, @Kill/Targets)}
  19. #TRIGGER {^A newt farmer makes his way through the village.$} {#VAR Kill/Targets %addItem( farmer, @Kill/Targets)}
  20. #TRIGGER {^A large brown insect with six legs hops around.$} {#VAR Kill/Targets %addItem( cricket, @Kill/Targets)}
  21. #TRIGGER {^A giant cricket *.$} {#VAR Kill/Targets %addItem( cricket, @Kill/Targets)}
  22. #TRIGGER {^A newt noble stands around thinking of better times.$} {#VAR Kill/Targets %addItem( noble, @Kill/Targets)}
  23. #TRIGGER {^An old newt stands here sorting and shelving books.$} {#VAR Kill/Targets %addItem( archivist, @Kill/Targets)}
  24. #TRIGGER {^A newt by the name of Sir Issac looks irritated at your instrusion.$} {#VAR Kill/Targets %addItem( Issac, @Kill/Targets)}
  25. #TRIGGER {^A sturdy newtonian guard stands here protecting the town against invasion.$} {#VAR Kill/Targets %addItem( guard, @Kill/Targets)}
  26. #TRIGGER {^{A newt priestess is here meditating.|A newt clad in long robes is tracing sigils in the air here.}$} {#VAR Kill/Targets %addItem( priest, @Kill/Targets)}
  27. #CLASS 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement