1: what are all the possible chat types? For instance, I want to have my character do something if he gets attacked. I've found I can use the following, which is not very efficient, but it works:
Code: Select all
#event 001a "YOU"
#event 001b "points of damage"
#event 001c "points of non-melee damage"
Sub Main
/declare Flag_x global
/varset Flag_x 0
:Mainloop
/doevents
/goto :Mainloop
/return
Sub Event_001a
/varset Flag_x 1
/return
Sub Event_001b
/if n @Flag_x==1 {
DO WHATEVER
/varset Flag_x 0
}
/return
Sub Event_001c
/if n @Flag_x==1 {
DO WHATEVER
/varset Flag_x 0
}
/return2: When looking for specific words in the message, what is the benefits of using '==' or '~~'?
With the answer of this post, I should be able to make some uber scripts with few lines.
Thanks
