Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. ; /favor = display count favors gained since last reset
  2. ; /favor reset = resets favors to 0.
  3.  
  4.  
  5. /def -F -mregexp -t"^You earn ([a-z ]+) favor for" favor_message=\
  6. /if ({P1}=~"a bit of") /test ++favor_count_1%;\
  7. /elseif ({P1}=~"some") /test ++favor_count_2%;\
  8. /elseif ({P1}=~"a fair bit of") /test ++favor_count_3%;\
  9. /elseif ({P1}=~"a good deal of") /test ++favor_count_4%;\
  10. /elseif ({P1}=~"quite a bit of") /test ++favor_count_5%;\
  11. /elseif ({P1}=~"a great deal of") /test ++favor_count_6%;\
  12. /elseif ({P1}=~"heaps and heaps of") /test ++favor_count_7%;\
  13. /elseif ({P1}=~"vast sums of") /test ++favor_count_8%;\
  14. /elseif ({P1}=~"a legendary outpouring of") /test ++favor_count_9%;\
  15. /endif
  16.  
  17. /def favor=\
  18. /if ({1}=~"reset")\
  19. /for i 1 9 /eval /unset favor_count_%%i%;\
  20. /else \
  21. /echo "a bit " %favor_count_1%;\
  22. /echo "some " %favor_count_2%;\
  23. /echo "fair bit " %favor_count_3%;\
  24. /echo "good deal " %favor_count_4%;\
  25. /echo "quite a bit " %favor_count_5%;\
  26. /echo "great deal " %favor_count_6%;\
  27. /echo "heaps " %favor_count_7%;\
  28. /echo "vast sums " %favor_count_8%;\
  29. /echo "legendary " %favor_count_9%;\
  30. /endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement