Soandso2
Well-known member
- Joined
- Mar 13, 2023
- RedCents
- 937¢
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:
[CODE title="Declare event"]#Event SkillUp "You have become better at #1#"
[/CODE]
Then in my Sub Main (in the eternal loop)
[CODE title="Sub Main"]/doevents[/CODE]
And finally the sub
[CODE title="Sub Event"]Sub Event_SkillUp(Line,skill)
/echo Skillup: ${skill}
/return[/CODE]
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:
[CODE title="Declare event"]#Event SkillUp "You have become better at #1#"
[/CODE]
Then in my Sub Main (in the eternal loop)
[CODE title="Sub Main"]/doevents[/CODE]
And finally the sub
[CODE title="Sub Event"]Sub Event_SkillUp(Line,skill)
/echo Skillup: ${skill}
/return[/CODE]
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)"


