Greetings!
I've been reading the Forum for 2 days as for now and I guess I was looking good and long enough to find an answer to my question if there's was one, but it seems like there isn't...
The alias (nothing much):
<aliases>
<alias
script="zzz"
match="re-ssk"
enabled="y"
send_to="12"
sequence="100"
>
</alias>
</aliases>
The script code (PerlScript):
sub zzz {
my ($thename, $theoutput, $wildcards) = @_;
my $z;
$z = $world->AddTrigger ("re__ssk", "You feel less protected.", "cast 'Stone Skin'", 1025, -1, 0, "", "");
$world->Note ($z);
};
The above does work. The below - doesn't.
sub zzz {
my ($thename, $theoutput, $wildcards) = @_;
my $z;
$z = $world->AddTrigger ("re__ssk", "^You feel less protected\.$", "cast 'Stone Skin'", 1057, -1, 0, "", "");
$world->Note ($z);
};
Flags: 1025 - replace exisiting with same name and enabled, 1057 - same as before + regexp.
Perl 5.14.1 build 1401.
The error mesassage:
Script error
World: SLOTH
Execution of line 1 column 0
Immediate execution
Compilation error
Error context in script:
1*: sub zzz {
2 : my ($thename, $theoutput, $wildcards) = @_;
3 : my $z;
4 : $z = $world->AddTrigger ("re__ssk", "^You feel less protected\.$", "cast 'Stone Skin'", 1057, -1, 0, "", "");
5 : $world->Note ($z);
Can post Debug ("summary") if needed.
How do I make this work? I'm totally confused. Thanks in advance. |