My event triggers, but the variable in the event sub is NULL. I am doing (as far as I can see) exactly what the documentation says.
First we declare the event:
Then in my Sub Main (in the eternal loop)
And finally the sub
If I echo the Line, I get the full line that triggered the event, but when I use skill as shown, it is NULL. Why? Also, IF I echo Line, this seems to trigger an event again, because it spams the skillup message over and over again.
My idea is to see this echo: "Skillup: disarm (3)"
First we declare the event:
Declare event:
#Event SkillUp "You have become better at #1#"
Sub Main:
/doevents
Sub Event:
Sub Event_SkillUp(Line,skill)
/echo Skillup: ${skill}
/return
If I echo the Line, I get the full line that triggered the event, but when I use skill as shown, it is NULL. Why? Also, IF I echo Line, this seems to trigger an event again, because it spams the skillup message over and over again.
My idea is to see this echo: "Skillup: disarm (3)"