[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Compile Error: unfinished string near '<eof>'
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Compile Error: unfinished string near '<eof>'

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


Posted by BishopOsiris   USA  (38 posts)  [Biography] 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?
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] 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
[Go to top] 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.


1,284 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]