I'm trying to find a way to set this trigger to target "robber" or "imp" but when there are more than one creature in the room, the line reads like this...
In this room you see: 1st grave robber, 1st grave imp, 2nd grave robber, etc.
When there's only one it reads like this...
In this room you see: 1st grave robber
So how do I isolate "robber" or "imp" without capturing the rest of the line? The first thing I thought was to make a limit on the capture to 3 characters, but I don't know -anything- about coding, so I'm basically teaching myself this stuff as we go. Any help would be appreciated.
Trigger below:
Edit: Version 4.43
In this room you see: 1st grave robber, 1st grave imp, 2nd grave robber, etc.
When there's only one it reads like this...
In this room you see: 1st grave robber
So how do I isolate "robber" or "imp" without capturing the rest of the line? The first thing I thought was to make a limit on the capture to 3 characters, but I don't know -anything- about coding, so I'm basically teaching myself this stuff as we go. Any help would be appreciated.
Trigger below:
Quote:
<triggers>
<trigger
enabled="y"
expand_variables="y"
group="HuntGY"
keep_evaluating="y"
match="^In this room you see\: 1st grave *(.*?)$"
regexp="y"
send_to="12"
sequence="100"
>
<send>--Sets target variable to "grave *" for further fighting.
Execute ("t %1")
--Sends kill command first time via alias "kill"
Execute ("kill")
--Displays target in bottom left
SetStatus ("Target: %1")
</send>
</trigger>
</triggers>
<triggers>
<trigger
enabled="y"
expand_variables="y"
group="HuntGY"
keep_evaluating="y"
match="^In this room you see\: 1st grave *(.*?)$"
regexp="y"
send_to="12"
sequence="100"
>
<send>--Sets target variable to "grave *" for further fighting.
Execute ("t %1")
--Sends kill command first time via alias "kill"
Execute ("kill")
--Displays target in bottom left
SetStatus ("Target: %1")
</send>
</trigger>
</triggers>
Edit: Version 4.43