I get this error:
Error number: -2146827284
Event: Execution of line 2 column 5
Description: Expected ';'
Called by: Immediate execution
For this function:
(target is defined on the variables menu with a basic default of 'foo'.)
sub OnTargeter
{
my ($thename, $theoutput, $wildcards) = @_;
$world->SetVariable ("target",($thename, 101));
}
And here's the alias:
Alias: tt *
Send:
Label: Targeting
Script OnTargeter
This is the entire script so far, I'm trying to make a basic system to then run off of and creatively change. Do I need to add a #usr/bin/perl statement at the top or is the problem really something else?
Also, if I was to write an alias to use this modification in the script, would it be say kick @target or $target?
Error number: -2146827284
Event: Execution of line 2 column 5
Description: Expected ';'
Called by: Immediate execution
For this function:
(target is defined on the variables menu with a basic default of 'foo'.)
sub OnTargeter
{
my ($thename, $theoutput, $wildcards) = @_;
$world->SetVariable ("target",($thename, 101));
}
And here's the alias:
Alias: tt *
Send:
Label: Targeting
Script OnTargeter
This is the entire script so far, I'm trying to make a basic system to then run off of and creatively change. Do I need to add a #usr/bin/perl statement at the top or is the problem really something else?
Also, if I was to write an alias to use this modification in the script, would it be say kick @target or $target?