Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; /favor = display count favors gained since last reset
- ; /favor reset = resets favors to 0.
- /def -F -mregexp -t"^You earn ([a-z ]+) favor for" favor_message=\
- /if ({P1}=~"a bit of") /test ++favor_count_1%;\
- /elseif ({P1}=~"some") /test ++favor_count_2%;\
- /elseif ({P1}=~"a fair bit of") /test ++favor_count_3%;\
- /elseif ({P1}=~"a good deal of") /test ++favor_count_4%;\
- /elseif ({P1}=~"quite a bit of") /test ++favor_count_5%;\
- /elseif ({P1}=~"a great deal of") /test ++favor_count_6%;\
- /elseif ({P1}=~"heaps and heaps of") /test ++favor_count_7%;\
- /elseif ({P1}=~"vast sums of") /test ++favor_count_8%;\
- /elseif ({P1}=~"a legendary outpouring of") /test ++favor_count_9%;\
- /endif
- /def favor=\
- /if ({1}=~"reset")\
- /for i 1 9 /eval /unset favor_count_%%i%;\
- /else \
- /echo "a bit " %favor_count_1%;\
- /echo "some " %favor_count_2%;\
- /echo "fair bit " %favor_count_3%;\
- /echo "good deal " %favor_count_4%;\
- /echo "quite a bit " %favor_count_5%;\
- /echo "great deal " %favor_count_6%;\
- /echo "heaps " %favor_count_7%;\
- /echo "vast sums " %favor_count_8%;\
- /echo "legendary " %favor_count_9%;\
- /endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement