|
porcelina Beginner
Joined: 20 Jun 2004 Posts: 20 Location: USA
|
Posted: Wed May 19, 2010 9:44 pm
complex healing |
I have been trying to get a semi healing promp trigger to work for me. Most of it does but I am having problems with the health healing part.
Basically I have all my afflictions on triggers and what needs to be healed goes into a "currme" variable. This part works pretty well but I was trying to incorperate health healing into this same trigger and have not been able to get it to work. I will list my prompt, the prompt trigger and some of the variables and aliases that I use. The h after cure me is an alias to sip health potion and should put it in the cureme variable. It currently does not. Warn tells me my mana is low. It seems to work. If the P appears then I have sipped a health potion. Let me know if more info is needed.
Prompt:
1122h, 1122m cefiox-
Trigger:
^(%d)h, (%d)m (%w)-
HpVar = %1
MpVar = %2
#IF (%match(%3, x) = 0) {kelvv}
#IF (%match(%3, p) = 0) {healthwait=0} {healthwait=1}
#IF (%match(%3, i) = 0) {immune}
#IF (%match(%3, h) = 0) {allhealwait = 1} {allhealwait = 0}
#if (%1 < 850) {
#if (@healthwait=1) {#additem cureme h} {#additem cureme hh}}
#if (%1 > 800) {#delitem cureme h;#delitem cureme hh}
#IF (%2 < 525) {warn} |
|
_________________ carol |
|
|
|
Leitia Adept
Joined: 04 May 2007 Posts: 292 Location: Boston
|
Posted: Thu Jun 03, 2010 12:25 am |
I don't know how to fix that, or really what is going on.
I would use a regex trigger:
Code: |
^(\d+)h\, (\d+)m, (\w+)\- |
and then I would make sure the h is there when you #additem it
of course, #additem does not allow duplicates like %additem does, anyway
I would use #show %3 at every stage possible to see where it is getting lost |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Fri Jun 04, 2010 2:04 am |
Make sure you're matching case properly too. You say P in your text, but have p in your trigger.
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|