How do I load triggers
I need to have like 50 of the same triggers just with different item names
NAME - (artifact name)
SEND - Get (artifact name)
Enabled
Colour - Custom 8
Ignore case
Keep Evaluating
Regular Expression
Repeat on same line
Group - ARTIFACTS
I need 50 triggers setup like that How do I format that so I can just copy and paste all the info and just have to type out the artifact name in each.
Or could someone pelase tell me the easiest way to get them all loaded in.
thanks
wrtiii
The simplest thing would be to use the "or" feature of regular expressions, and have just one trigger. It would look like this (use the "..." button to open a bigger box to type it in)...
Match: (name1|name2|name3| .... name50)
Send: get %1
Regular expression: checked
Wow that really is easy, Thanks never knew you could do that.
Match: (advertising flyer|armour of agemennion|bejewelled casket|bishops mitre|black sceptre|blue cloak|bronze headband|cardinal's shield|cloak de treville|chalice of eternal life|chunk of silver ore|crucifix|cup of our lord|dagger of the ancients|father mazarin's pipe|golden branches|gold fob-watch|hammer of the underworld|helm of artemides|horn of the great boar|jade bracelet|king's snuff box|libram of herbal alchemy|libram of ineffable damnation|lyre of memnon|owl of athena|painting of paris by night|pair of winged shoes|piece of iron ore|queen's silver mirror|rustic shovel|shroud of mourning|silver amulet|silver goblet|silver ring|silver scimitar|staff of hermes|stethoscope|thin telescope|toy scabbard with many scuff marks)
Send: get %1
Regular expression: checked
Ok So I did that and I put this in... It didn't work
So I do this
<triggers>
<trigger
custom_colour="9"
enabled="y"
ignore_case="y"
keep_evaluating="y"
match="advertising flyer|armour of agemennion|bejewelled casket|bishops mitre|black sceptre|blue cloak|bronze headband|cardinal's shield|cloak de treville|chalice of eternal life|chunk of silver ore|crucifix|cup of our lord|dagger of the ancients|father mazarin's pipe|golden branches|gold fob-watch|hammer of the underworld|helm of artemides|horn of the great boar|jade bracelet|king's snuff box|libram of herbal alchemy|libram of ineffable damnation|lyre of memnon|owl of athena|painting of paris by night|pair of winged shoes|piece of iron ore|queen's silver mirror|rustic shovel|shroud of mourning|silver amulet|silver goblet|silver ring|silver scimitar|staff of hermes|stethoscope|thin telescope|toy scabbard with many scuff marks"
name="artget"
regexp="y"
repeat="y"
sequence="100"
other_text_colour="black"
other_back_colour="black"
>
<send>get %1</send>
</trigger>
</triggers>
It works to match but on return it only changes colour and sends GET to the game
I need it to GET then the item it matched on...
You need to have the match text be in parenthesis (), since that tells MC to count that as a variable that may need to be used later, without the parenthesis, while the trigger still matches, nothing gets returned in the array except the whole line (%0)
Quote:
Match: (advertising flyer|...|stethoscope|thin telescope|toy scabbard with many scuff marks)
Send: get %1
Regular expression: checked
Ok So I did that and I put this in... It didn't work
In what what did it not work? I tried that and it matched and did a "get (whatever)". Are you saying it wouldn't match multiple items?