Compile Error: unfinished string near '<eof>'

Posted by BishopOsiris on Fri 16 Dec 2016 12:15 AM — 2 posts, 14,926 views.

USA #0
So I'm working on that targeting script I asked you about earlier. This is what I have:

Variable:
@target1

Alias:
t1 *
(Expand Variables; Echo Alias; Send to Script)


world.SetVariable("target1","%1")
world.Note("Your first target is %1.")
world.Note("Your CURRENT target is @target.)


So I should be able to type "t1 gargoyle" and @target1 is set to gargoyle and I get a readout that says:

Quote:

Your first target is gargoyle.
Your CURRENT target is Zoenad.


But when I type "t1 gargoyle" I get a Scripting Error:
Error number: 0
Event: Compile error
Raised by: World: Carrion Fields
Description:
[string "Alias: "]:3: unfinished string near '<eof>'
Called by: Immediate execution

What's vexing is I have t3, t4, and t5 set up the exact same way and they work fine. What am I doing wrong?
Amended on Fri 16 Dec 2016 01:39 PM by BishopOsiris
USA Global Moderator #1
On line 3 (":3:")
"Your CURRENT target is @target.

is missing the closing quotation mark ("unfinished string").

Template:copying
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.