This is really weird, I am trying to import a trigger and I can't seem to get to the bottom of this error:
I've defined the trigger in Mushclient first (triggers -> add), copied it, then pasted in the file I am trying to load it from.
Here's how it looks when I paste it directly from mush:
I've deleted the weird symbols (and replaced the one near "3" with "<") and this is how it looks after that:
Can anyone please tell me what is wrong it it?
Line 44: Element name must start with letter or underscore, but starts with "3" (problem in this file)
I've defined the trigger in Mushclient first (triggers -> add), copied it, then pasted in the file I am trying to load it from.
Here's how it looks when I paste it directly from mush:
<triggers>
<trigger
group="System_Pipel"
match="^Total Pipes\: (\d+)$"
name="pipes_assign"
regexp="y"
send_to="12"
sequence="100"
>
<!--the line below is the troublesome line-->
<send>if (tonumber("%1")<3) then
	display.warning("not enough pipes")
else
	pipes:assign()
end--if
EnableTriggerGroup("System_Pipel", false)
</send>
</trigger>
</triggers>
I've deleted the weird symbols (and replaced the one near "3" with "<") and this is how it looks after that:
<trigger
group="System_Pipel"
match="^Total Pipes\: (\d+)$"
name="pipes_assign"
regexp="y"
send_to="12"
sequence="100"
>
<!--the line below is the troublesome line-->
<send>if (tonumber ("%1")<3) then
display.warning("not enough pipes")
else
pipes:assign()
end--if
EnableTriggerGroup("System_Pipel", false)</send>
</trigger>
Can anyone please tell me what is wrong it it?