Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Compile Error: unfinished string near '<eof>'

Compile Error: unfinished string near '<eof>'

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by BishopOsiris   USA  (55 posts)  Bio
Date Fri 16 Dec 2016 12:15 AM (UTC)

Amended on Fri 16 Dec 2016 01:39 PM (UTC) by BishopOsiris

Message
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?
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #1 on Fri 16 Dec 2016 01:16 AM (UTC)

Amended on Fri 16 Dec 2016 01:17 AM (UTC) by Fiendish

Message
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.

https://github.com/fiendish/aardwolfclientpackage
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,376 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.