Soandso2
Well-known member
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:
Declare event
Then in my Sub Main (in the eternal loop)
Sub Main
And finally the sub
Sub Event
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
Code:
#Event SkillUp "You have become better at #1#"
Sub Main
Code:
/doevents
Sub Event
Code:
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)"


