General Events parameters give out additional [']
Reply
Events parameters give out additional [']
Hiya,

i am getting some strange results from a parameter within event.
Whenever my Test Event triggers the string "myName" returns [Toonname']
How can i avoid the ['] ? Any idea ?

Thank you in advance.

1.

#Event Test "#*#Test #1# #2#"

/gu Test TargetToonName MyToonName

Sub Event_Test(string Line, string targetName, string myName,)

/echo ${myName} -> result [Toonname']
/if (${myName.Equal[${Me.CleanName}']}) -> returns TRUE


2. Does it make any different if i write
#Event Test "#*#Test #1# #2#" or
#Event Test "#*#Test #1# #2# (without " at the end)
Thu Dec 05, 2013 6:32 am
May it possible i just missed the ['] in the eventline ? ->
#Event Test "#*#Test #1# #2#'"
Thu Dec 05, 2013 7:20 am
The event text is based off the chat that happens in the chat window

/gu Test bob Jim

Would yield something like

Tim tells the guild, 'Test bob Jim'

Tim tells the guild, ' is a match for the #*#
Test is a match for the Test literal
bob is a match for #1#
Jim' is a match for the #2#

You need to reformat your event string to more closely resemble the chat text. The single quotes in the chat should be part of your event.
Thu Dec 05, 2013 7:50 am
Project Lead
General Events parameters give out additional [']
Reply