I'm trying to capture if I have equilibrium and/or balance and have it kept track of in variables, so I can set certain actions to go off if I currently have both balance and equilibrium. The prompt looks like this:
3088h, 5056m, 3334e, 10p exk-
Now, I need something that works like this, but working,
Trigger:
^(.*?)h\, (.*?)m\, (.*?)e\, (.*?)p (.*?)\-$
Send:
if (%5 = e) then
world.setvariable "equilibrium", "1"
if (%5 = x) then
world.setvariable "balance", "1"
else
world.setvariable "equilibrium", "0"
world.setvariable "balance", "0"
end if
end if
3088h, 5056m, 3334e, 10p exk-
Now, I need something that works like this, but working,
Trigger:
^(.*?)h\, (.*?)m\, (.*?)e\, (.*?)p (.*?)\-$
Send:
if (%5 = e) then
world.setvariable "equilibrium", "1"
if (%5 = x) then
world.setvariable "balance", "1"
else
world.setvariable "equilibrium", "0"
world.setvariable "balance", "0"
end if
end if