Hey Demonnic Once again thank u for the time,
It does not seem to be recognizing that a variable has been set. Do I need to declare it somewhere else initially? It still quaffs 2 potions.
Right now here is what i have:
3 triggers (That's it... am i missing something there?)
Trigger1: Drink Potion:
^< (\d+)hp (\d+)mana (\d+)mv
set to perl regex
Body:
if (tonumber(matches[2]) < 800) and not quaffing then
quaffing = true
send("get oil 2.leather; quaff oil")
quaffTimer = tempTimer(1,function() if quaffing then quaffing = false end end)
end
Trigger2:Quaff Healing Success!
You quaff Fish Liver Oil which dissolves.
set to exact match
Body:
quaffing = true
Trigger3: Healing Potions Out!
The bag does not contain the oil.
set to exact match
Body:
quaffing = false
killTimer(quaffTimer)
A couple things happened:
ONE here is the first thing that shows the dual potion pull out
< 767hp 553mana 208mv Buf:fine Vic:mauled >
get oil 2.leather; quaff oil
You get Fish Liver Oil from leather bag.
< 767hp 553mana 208mv Buf:fine Vic:mauled >
get oil 2.leather; quaff oil
You quaff Fish Liver Oil which dissolves.
Your wounds cease flowing as you feel better!
That person is not poisoned.
< 884hp 553mana 208mv Buf:fine Vic:mauled >
The Ghoul makes a mystic hand position and utters the words, 'chill touch'
The Ghoul's touch sends shards of frigid ice ripping through A large bunny's body.
< 884hp 553mana 208mv Buf:fine Vic:mauled >
You get Fish Liver Oil from leather bag.
< 884hp 553mana 208mv Buf:fine Vic:mauled >
You quaff Fish Liver Oil which dissolves.
Your wounds cease flowing as you feel better!
That person is not poisoned.
< 1016hp 553mana 208mv Buf:fine Vic:
Secondly, The trigger went on infinitely if there was not a potion in the bag
Hmmmmm! Also, just for future knowledge. is there a way for me to "report" what the quaffing variable is? Just for bug testing, it might be good to learn that part