Kharaen2007-07-31 04:28:34
This is the code:
Trigger just isn't firing. Doesn't update the variable values, the statchecker doesn't show (basically keeps track of health/mana/ego lost and gained). If I do score, the values set themselves, so I don't understand what's wrong.
CODE
^(%d)h, (%d)m, (%d)e, (%d)p, (%d)en, (%d)w *-$
HP=%1
MP=%2
EGO=%3
POW=%4
END=%5
WLL=%6
STATCHECK %1 %2 %3
#T- commwincap
#IF (@healbal & @anorexia & @sthroat & @stun & @sap) {#IF (@MAXHP - @HP > @SIPHP) {dh} {#IF (@MAXMP - @MP > @SIPMP) {dm} {#IF (@maxego - @ego > @sipego) {db}}}}
#IF (%pos( p, %7) & %pos( e, %7) & %pos( x, %7) & @standing=1) {
  stand
  #VAR standing 0
  #ALARM +1 {#VAR standing 1}
  }
HP=%1
MP=%2
EGO=%3
POW=%4
END=%5
WLL=%6
STATCHECK %1 %2 %3
#T- commwincap
#IF (@healbal & @anorexia & @sthroat & @stun & @sap) {#IF (@MAXHP - @HP > @SIPHP) {dh} {#IF (@MAXMP - @MP > @SIPMP) {dm} {#IF (@maxego - @ego > @sipego) {db}}}}
#IF (%pos( p, %7) & %pos( e, %7) & %pos( x, %7) & @standing=1) {
  stand
  #VAR standing 0
  #ALARM +1 {#VAR standing 1}
  }
Trigger just isn't firing. Doesn't update the variable values, the statchecker doesn't show (basically keeps track of health/mana/ego lost and gained). If I do score, the values set themselves, so I don't understand what's wrong.
Unknown2007-07-31 04:43:07
Its not a linebreak at the end. Get rid of the $, and go set it to be PROMPT.
Wait, unless you CONFIG PROMPT ADD LINEBREAK... in which case lemme look again.
Wait, unless you CONFIG PROMPT ADD LINEBREAK... in which case lemme look again.
Kharaen2007-07-31 04:58:10
It's working now. For some reason I had to close the window and reopen it to work. It was driving me bloody nuts.
Unknown2007-07-31 05:13:15
ew. i hate when stuff like that happens!
Glad its working!
Glad its working!
Forren2007-07-31 12:14:10
Interesting, you use positive values for anorexia/sthroat/sap/stun to indicate that you don't have them. I tend to do the opposite.. You should probably include throatlock and crushed windpipe too, by the way.
As for your standing... would you believe I didn't write that into my new system until after aeon curing?
And Oraki - it is a linebreak at the end.
As for your standing... would you believe I didn't write that into my new system until after aeon curing?
And Oraki - it is a linebreak at the end.
Kharaen2007-07-31 15:51:47
Damnit noooo, the prompt trigger still isn't firing
Forren2007-07-31 16:16:05
QUOTE(Kharaen d @ Jul 31 2007, 11:51 AM) 430335
Damnit noooo, the prompt trigger still isn't firing
Best way to identify it's firing is to put a #SAY in the trigger value.
Use the Trigger Pattern Matcher to see if it's actually matching your prompt value. Make sure it's on newline if you're using an added linebreak or prompt if you are not. Careful with not though, lag/spamming will cause you to miss some prompts.
Lysandus2007-08-10 05:59:31
Sorry for the necro but I don't think another new topic is appropriate so I decided to use this.
Currently I'm having problems making an autosipper as well. Here's my triggers
So far as soon as I get damaged, I will drink, which is kind of a good thing, however as Malarious pointed out, using 1 sip to cure like, 50 to 1 health lower than the maximum is a waste. Can anyone help me? Won't:
#IF (@potionbalance=1) {#IF @CurrHealth\\2@MaxHealth {drinkh}}
tell the system that as soon as the Currenthealth is half of the MaximumHealth, it'll start drinking?
Currently I'm having problems making an autosipper as well. Here's my triggers
QUOTE
^(%d)h, (%d)m, (%d)e, (%d)p (%w)
#VAR CurrHealth %1
#VAR CurrMana %2
#VAR CurrEgo %3
#VAR CurrPower %4
#VAR Prompt %5
#IF (@potionbalance=1) {#IF @CurrHealth<@MaxHealth {drinkh}}
#VAR CurrHealth %1
#VAR CurrMana %2
#VAR CurrEgo %3
#VAR CurrPower %4
#VAR Prompt %5
#IF (@potionbalance=1) {#IF @CurrHealth<@MaxHealth {drinkh}}
So far as soon as I get damaged, I will drink, which is kind of a good thing, however as Malarious pointed out, using 1 sip to cure like, 50 to 1 health lower than the maximum is a waste. Can anyone help me? Won't:
#IF (@potionbalance=1) {#IF @CurrHealth\\2@MaxHealth {drinkh}}
tell the system that as soon as the Currenthealth is half of the MaximumHealth, it'll start drinking?
Drathys2007-08-10 06:54:17
Something like that has the problem of ONLY healing you if you are below half health though, so it would never bring you up to full.
If you do that, you need to set a variable, and sip as long as that variable is set, until your health is up to an acceptable level again.
I have the formulae for sipping hidden away somewhere too. That way you can sip only if you are hurt more than a full sip, or x full sips.
If you do that, you need to set a variable, and sip as long as that variable is set, until your health is up to an acceptable level again.
I have the formulae for sipping hidden away somewhere too. That way you can sip only if you are hurt more than a full sip, or x full sips.
Unknown2008-01-06 02:38:49
Nevermind, I fixed it, when you upload this, move the variables it adds into the Sipper class, and it'll work, folks.. Enjoy, credit to whoever coded this one up for zmud.
#class {Sipper}
#var sipbal 1
#regex {^(\\d+)h, (\\d+)m, (\\d+)e, (\\d+)p, (\\d+)en, (\\d+)w (.*)$} {#var health %1;#var mana %2;#var ego %3;#var power %4;#var endurance %5;#var willpower %6;sipcheck} "" {nocr|prompt}
#tr {Health : (%d)/(%d)} {health=%1;healthmax=%2}
#tr {Mana : (%d)/(%d)} {mana=%1;manamax=%2}
#tr {Ego : (%d)/(%d)} {ego=%1;egomax=%2}
#regex {^You (take a drink|down the last drop from) from a.*vial\\.$} {#gag}
#cond {} {} {regex|within|param=1}
#cond {^The elixir heals and soothes you\\.$} {#if (@sipbal=0.5) {sipbal=0}} {regex|reparse}
#cond {^Your mind feels stronger and more alert\\.$} {#if (@sipbal=0.5) {sipbal=0}} {regex|reparse}
#cond {^Ah, the soothing bromides help strengthen your ego\\.$} {#if (@sipbal=0.5) {sipbal=0}} {regex|reparse}
#cond {^The potion flows down your throat without effect\\.$} {sipbal=0} {regex|reparse}
#regex {^You may drink another health, mana, or bromide potion\\.$} {sipbal=1}
#alias sipcheck {#if (@sipbal=1) {#if (@health<@healthmax/3) {shealth} {#if (@mana<@manamax/3) {smana} {#if (@ego<@egomax/3) {sbromide} {#if (@health<@healthmax/2) {shealth} {#if (@mana<@manamax/2) {smana} {#if (@ego<@egomax/2) {sbromide} {#if (@health<(@healthmax-(@healthmax/5))) {shealth} {#if (@mana<(@manamax-(@manamax/5))) {smana} {#if (@ego<(@egomax-(@egomax/5))) {sbromide}}}}}}}}}}}
#alias shealth {sip health;sipbal=0.5;#t+ sipbal trigger}
#alias smana {sip mana;sipbal=0.5;#t+ sipbal trigger}
#alias sbromide {sip bromide;sipbal=0.5;#t+ sipbal trigger}
#alarm "sipbal" 1.5 {#t- sipbal trigger;#if (@sipbal=0.5) {sipbal=1}}
#class 0
#class {Sipper}
#var sipbal 1
#regex {^(\\d+)h, (\\d+)m, (\\d+)e, (\\d+)p, (\\d+)en, (\\d+)w (.*)$} {#var health %1;#var mana %2;#var ego %3;#var power %4;#var endurance %5;#var willpower %6;sipcheck} "" {nocr|prompt}
#tr {Health : (%d)/(%d)} {health=%1;healthmax=%2}
#tr {Mana : (%d)/(%d)} {mana=%1;manamax=%2}
#tr {Ego : (%d)/(%d)} {ego=%1;egomax=%2}
#regex {^You (take a drink|down the last drop from) from a.*vial\\.$} {#gag}
#cond {} {} {regex|within|param=1}
#cond {^The elixir heals and soothes you\\.$} {#if (@sipbal=0.5) {sipbal=0}} {regex|reparse}
#cond {^Your mind feels stronger and more alert\\.$} {#if (@sipbal=0.5) {sipbal=0}} {regex|reparse}
#cond {^Ah, the soothing bromides help strengthen your ego\\.$} {#if (@sipbal=0.5) {sipbal=0}} {regex|reparse}
#cond {^The potion flows down your throat without effect\\.$} {sipbal=0} {regex|reparse}
#regex {^You may drink another health, mana, or bromide potion\\.$} {sipbal=1}
#alias sipcheck {#if (@sipbal=1) {#if (@health<@healthmax/3) {shealth} {#if (@mana<@manamax/3) {smana} {#if (@ego<@egomax/3) {sbromide} {#if (@health<@healthmax/2) {shealth} {#if (@mana<@manamax/2) {smana} {#if (@ego<@egomax/2) {sbromide} {#if (@health<(@healthmax-(@healthmax/5))) {shealth} {#if (@mana<(@manamax-(@manamax/5))) {smana} {#if (@ego<(@egomax-(@egomax/5))) {sbromide}}}}}}}}}}}
#alias shealth {sip health;sipbal=0.5;#t+ sipbal trigger}
#alias smana {sip mana;sipbal=0.5;#t+ sipbal trigger}
#alias sbromide {sip bromide;sipbal=0.5;#t+ sipbal trigger}
#alarm "sipbal" 1.5 {#t- sipbal trigger;#if (@sipbal=0.5) {sipbal=1}}
#class 0