Cureing System Help!

by Osheri

Back to Mechanic's Corner.

Osheri2006-05-22 04:12:40
Im finally getting around to write myself a cureing system but the way i want to do , i cant get to work


CODE

#CLASS {Cureing System|Arnica|Broken Chest}

#ALIAS brokenchest {#var brokenchest %1}

#VAR brokenchest {0}

#TRIGGER {You grimace in pain as your ribs } {brokenchest 1}

#TRIGGER {You have recovered balance on all limbs.} {#if (@eq=1 and @bal=1 and @pr=0 and @brokenchest=1) {cure me Fractures;brokenchest 0}

#TRIGGER {^suffering from a broken chest} {brokenchest 1}

#TRIGGER {pain as your ribs are striked viciously} {brokenchest 1}

#CLASS 0


Everything seems to work expect my if statement... i have tried it a lot of differnt way but it just keep fireing off no matter if my variable Brokenchest is set to 0

Help please!
Osheri2006-05-22 10:23:54
hmm no one knows?
Unknown2006-05-24 14:03:39
Your conditional statement looks valid to me. Why are you curing on recovering balance, though? You can apply arnica to your chest without balance and equilibrium.
Soll2006-05-24 14:24:39
#TRIGGER {You have recovered balance on all limbs.} {#if (@eq=1 and @bal=1 and @pr=0 and @brokenchest=1) {cure me Fractures;brokenchest 0}}

You missed off the last closing '}'
Daganev2006-05-24 17:22:23
also... I don't think Brokenchest 0 sets your variable.. I think you need brokenchest=0
Osheri2006-05-24 20:05:14
QUOTE(daganev @ May 24 2006, 01:22 PM) 290959

also... I don't think Brokenchest 0 sets your variable.. I think you need brokenchest=0




Thanks!

as for the brokenchest variable i have an alias names brokenchest as well. its sets it

CODE

#alias Brokenchest {#var brokenchest %1]
Osheri2006-05-24 22:02:47
QUOTE(Zarquan @ May 24 2006, 10:03 AM) 290935

Your conditional statement looks valid to me. Why are you curing on recovering balance, though? You can apply arnica to your chest without balance and equilibrium.



I am a Trans Healer so im going to be useing a mixture of herbs and Healing to cure, The Healing skill requires you to have eq and bal but doesnt use them up
Unknown2006-05-24 23:15:59
You have progressed far in your training young one,

But you must know one thing before you become a true master,

Learn that cureing is not a word.

Then, you will know true power.
Ekard2006-05-25 17:23:38
Just my 2c.

Why you are using aliases and variables with same name, it can be confusing sometimes.

I, for example adding some prefixes to my variables, like aff_brokenchest or def_quicksilver.
Unknown2006-05-26 17:41:17
1. Yes, you are missing a brace, if this is quoted verbatim from your actual curing script.

2. It looks like you will only try to cure when you regain balance, which won't work if you already had balance or if you needed to recover equilibrium instead. It will also fail if you lose both balance and equilibrium and then regain balance first.

You should do your curing from the prompt instead of from the regaining balance messages. The trick, though, is to ensure that you don't execute a ton of code on every single prompt. Pick and choose what needs to be evaluated, such as only using your healing skill when you have equilibrium, balance, and at least one affliction to be healed.