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)
So I should be able to type "t1 gargoyle" and @target1 is set to gargoyle and I get a readout that says:
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?
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.
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?