<triggers>
<trigger
enabled="y"
group="Test"
keep_evaluating="y"
match="^You step up to (an energy collector|a battle turret)\, locking yourself into the module and linking your mind to the controls of the ship\. After a moment\, you begin to sense your command of the module in your own brain\.$"
name="Link_up"
regexp="y"
send_to="12"
sequence="100"
>
<send>
aethership_module= %1
if aethership_module=="an energy collector" then
if (GetVariable("treant_auto_Siphoning")=="true") then
--If siphoning is already on, it'll let us know.
Execute("AUTO Siphoning ON")
else
Execute("AUTO Siphoning OFF")
end
elseif %1=="a battle turret" then
EnableTriggerGroup("Aethership Gunning",true)
SetVariable("treant_auto_Siphoning", "false")
else SetVariable("treant_auto_Siphoning", "false")
end
</send>
</trigger>
</triggers>
I'm confused! And I just can't see what's wrong. Here;s the error message:
Compile error
World: Treant
Immediate execution
[string "Trigger: Link_up"]:1: '=' expected near 'collector'