Hopefully someone can help!

by Unknown

Back to Mechanic's Corner.

Unknown2006-10-30 18:19:29
ok, I'm not sure if anyone will be able to help-because it's a lot of information to look at and the problem is a few syntax errors. But! If possible, if someone could point out where they are, that'd be great. Here's what I got sad.gif

chervil=0
#if (@herbbal=1) {#if (@anorexia=1 AND @throatlock=0 AND @aeon=1 AND @asthma=0 AND @doneherb=0 AND @colbal=1) {smc} {#if (@anorexia=1 AND @aeon=0 AND @active=1 AND @asthma=0 AND @donefocus=0 AND @underwater=0) {smc} {#if (@anorexia=0 AND @doneherb=0 AND @active=1 AND @scarab=0) {#if ((@rightparalysis=1 OR @leftparalysis=1) AND @underwater=0 AND @asthma=0) {smy} {#if (@slickness=1) {calamus} {#if (@rigormortis=1 OR @slicedrightbicep=1 OR @slicedleftbicep=1 OR @slicedleftthigh=1 OR @slicedrightthigh=1 OR @openchest=1) {marjoram} {#if (@sense=0 AND @blindness=1) {fae} {#if (@relapsing=1) {yarrow} {#if (@hemiplegy=1) {kombu} {#if (@daydream=1 OR @narcoleptia=1) {kafe} {#if (@hypochondria=1) {wormwood} {#if (@fracturedleftarm=1 OR @fracturedrightarm=1) {arnicaarms} {#if (@nose=1) {arnicahead} {#if (@brokenchest=1) {arnicachest} {#if (@fracturedhead=1) {arnicahead} {#if (@hallucinate=1) {
pennyroyal
eatenhallucinate=1
#alarm +0.6 {eatenhallucinate=0}
} {#if (@dementia=1) {
pennyroyal
eatendementia=1
#alarm +0.6 {eatendementia=0}
} {#if (@recklessness=1) {
horehound
eatenrecklessness=1
#alarm +0.6 {eatenrecklessness=0}
} {#if (@stupidity=1) {
pennyroyal
pennyroyal
} {#if (@dissonance=1) {horehound} {#if (@addiction=1) {
galingale
eatenaddiction=1
#alarm +0.6 {eatenaddiction=0}
} {#if (@peace=1) {
reishi
eatenpeace=1
#alarm +0.6 {eatenpeace=0}
} {#if (@justice=1) {reishi} {#if (@lovers=1) {galingale} {#if (@clumsiness=1) {
kombu
eatenclumsiness=0
#alarm +0.6 {eatenclumsiness=0}
} {#if (@agoraphobia=1) {
wormwood
eatenagoraphobia=1
#alarm +0.6 {eatenagoraphobia=0}
} {#if (@vestiphobia=1) {
wormwood
eatenvestiphobia=1
#alarm +0.6 {eatenvestiphobia=0}
} {#if (@epilepsy=1) {
kombu
eatenepilepsy=1
#alarm +0.6 {eatenepilepsy=0}
} {#if (@vertigo=1) {
myrtle
eatenvertigo=1
#alarm +0.6 {eatenvertigo=0}
} {#if (@claustrophobia=1) { eatengluttony=1
#alarm +0.6 {eatengluttony=0}
} {#if (@paranoia=1) {
pennyroyal
eatenparanoia=1
#alarm +0.6 {eatenparanoia=0}
} {#if (@healthleech=1 AND @drankhealthleech=0) {horehound} {#if (@haemophilia=1 AND @drankhaemophilia=0) {yarrow} {#if (@sensitivity=1 AND @dranksensitivity=0) {myrtle} {#if (@powersink=1 AND @drankpowersink=0) {reishi} {#if (@generosity=1 AND @drankgnerosity=0) {galingale} {#if (@vapors=1 AND @drankvapors=0) {kombu} {#if (@confusion=1) {
pennyroyal
eatenconfusion=1
#alarm +0.6 {eatenconfusion=0}
} {#if (@lethargy=1 AND @dranklethargy=0) {
marjoram
eatenlethargy=1
#alarm +0.6 {eatenlethargy=0}
} {#if ((@impatience=1 OR @loneliness=1 OR @shyness=1 OR @anorexia=1 OR @masochism=1) AND @colbal=1 AND @underwater=0 AND @asthma=0) {smc} {#if ((@piercerightarm=1 OR @pierceleftarm=1 OR @pierceleftleg=1 OR @piercerightleg=1) AND @myrbal=1 AND @asthma=0 AND @underwater=0) {smy} {#if (@splicedgut=1) {marjoram} {#if (@dizziness=1 OR @omniphobia=1 OR @deadening=1) {kombu} {#if (@rightarmartery=1 OR @leftarmartery=1 OR @rightlegartery=1 OR @leftlegartery=1 OR @headartery=1 OR (@sliceforehead=1 OR @spliced=1)) {yarrow} {#if (@succumb=1 AND @donesuccumb=0) {reishi} {#if (@tornrightear=1 OR @tornleftear=1 OR @torngut=1 OR @tornhead=1 OR @puncturedchest=1) {marjoram} {#if (@sense=0 AND @sensemode=1) {fae} {#if (@needkafe=1) {kafe} {chervil=1}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
Unknown2006-10-30 18:53:21
Talkan, since we use the same system I'll letcha know what I did. At the if statement for hallucinate (before the newline for the pennyroyal) I included by bard checks so here's what my snippet looks like:

CODE
{#if (@brokenchest=1) {arnicachest} {#if (@fracturedhead=1) {arnicahead} {#if (@manabarbs=1 OR @egovice=1 OR @achromatic=1 OR @powerspikes=1) {horehound} {#if (@hallucinate=1) {


Let me know if that makes sense, otherwise message me IG and I'll try to make that clearer.
Shorlen2006-10-30 18:59:36
QUOTE(talkans @ Oct 30 2006, 01:19 PM) 348380
ok, I'm not sure if anyone will be able to help-because it's a lot of information to look at and the problem is a few syntax errors. But! If possible, if someone could point out where they are, that'd be great. Here's what I got sad.gif


First, when posting code on the forums, put code tags around it. and without the extraneous spaces. That'll keep it easier to read for the people trying to help.

CODE


chervil=0
#if (@herbbal=1) {
  #if (@anorexia=1 AND @throatlock=0 AND @aeon=1 AND @asthma=0 AND @doneherb=0 AND @colbal=1) {
    smc
  } {
    #if (@anorexia=1 AND @aeon=0 AND @active=1 AND @asthma=0 AND @donefocus=0 AND @underwater=0) {
      smc
    } {
      #if (@anorexia=0 AND @doneherb=0 AND @active=1 AND @scarab=0) {
        #if ((@rightparalysis=1 OR @leftparalysis=1) AND @underwater=0 AND @asthma=0) {
          smy
        } {
          #if (@slickness=1) {calamus} {
            #if (@rigormortis=1 OR @slicedrightbicep=1 OR @slicedleftbicep=1 OR @slicedleftthigh=1 OR @slicedrightthigh=1 OR @openchest=1) {marjoram} {
              #if (@sense=0 AND @blindness=1) {fae} {
                #if (@relapsing=1) {yarrow} {
                  #if (@hemiplegy=1) {kombu} {
                    #if (@daydream=1 OR @narcoleptia=1) {kafe} {
                      #if (@hypochondria=1) {wormwood} {
                        #if (@fracturedleftarm=1 OR @fracturedrightarm=1) {arnicaarms} {
                          #if (@nose=1) {arnicahead} {
                            #if (@brokenchest=1) {arnicachest} {
                              #if (@fracturedhead=1) {arnicahead} {
                                #if (@hallucinate=1) {
                                  pennyroyal
                                  eatenhallucinate=1
                                  #alarm +0.6 {eatenhallucinate=0}
                                  } {#if (@dementia=1) {
                                    pennyroyal
                                    eatendementia=1
                                    #alarm +0.6 {eatendementia=0}
                                    } {#if (@recklessness=1) {
                                      horehound
                                      eatenrecklessness=1
                                      #alarm +0.6 {eatenrecklessness=0}
                                      } {#if (@stupidity=1) {
                                          pennyroyal
                                          pennyroyal
                                          } {#if (@dissonance=1) {horehound} {
                                            #if (@addiction=1) {
                                              galingale
                                               eatenaddiction=1
                                              #alarm +0.6 {eatenaddiction=0}
                                            } {
                                              #if (@peace=1) {
                                                reishi
                                                eatenpeace=1
                                                #alarm +0.6 {eatenpeace=0}
                                              } {
                                                #if (@justice=1) {reishi} {
                                                  #if (@lovers=1) {galingale} {
                                                    #if (@clumsiness=1) {
                                                      kombu
                                                      eatenclumsiness=0
                                                      #alarm +0.6 {eatenclumsiness=0}
                                                    } {
                                                      #if (@agoraphobia=1) {
                                                        wormwood
                                                        eatenagoraphobia=1
                                                        #alarm +0.6 {eatenagoraphobia=0}
                                                      } {
                                                        #if (@vestiphobia=1) {
                                                          wormwood
                                                          eatenvestiphobia=1
                                                          #alarm +0.6 {eatenvestiphobia=0}
                                                        } {
                                                          #if (@epilepsy=1) {
                                                            kombu
                                                            eatenepilepsy=1
                                                            #alarm +0.6 {eatenepilepsy=0}
                                                          } {
                                                            #if (@vertigo=1) {
                                                              myrtle
                                                              eatenvertigo=1
                                                              #alarm +0.6 {eatenvertigo=0}
                                                            } {
                                                              #if (@claustrophobia=1) {
                                                                eatengluttony=1
                                                                #alarm +0.6 {eatengluttony=0}
                                                              } {
                                                                #if (@paranoia=1) {
                                                                  pennyroyal
                                                                  eatenparanoia=1
                                                                  #alarm +0.6 {eatenparanoia=0}
                                                                } {
                                                                  #if (@healthleech=1 AND @drankhealthleech=0) {horehound} {
                                                                    #if (@haemophilia=1 AND @drankhaemophilia=0) {yarrow} {
                                                                      #if (@sensitivity=1 AND @dranksensitivity=0) {myrtle} {
                                                                        #if (@powersink=1 AND @drankpowersink=0) {reishi} {
                                                                          #if (@generosity=1 AND @drankgnerosity=0) {galingale} {
                                                                          #if (@vapors=1 AND @drankvapors=0) {kombu} {
                                                                            #if (@confusion=1) {
                                                                                pennyroyal
                                                                                eatenconfusion=1
                                                                                #alarm +0.6 {eatenconfusion=0}
                                                                              } {
                                                                                #if (@lethargy=1 AND @dranklethargy=0) {
                                                                                  marjoram
                                                                                  eatenlethargy=1
                                                                                  #alarm +0.6 {eatenlethargy=0}
                                                                                } {
                                                                                  #if ((@impatience=1 OR @loneliness=1 OR @shyness=1 OR @anorexia=1 OR @masochism=1) AND @colbal=1 AND @underwater=0 AND @asthma=0) {smc} {
                                                                                    #if ((@piercerightarm=1 OR @pierceleftarm=1 OR @pierceleftleg=1 OR @piercerightleg=1) AND @myrbal=1 AND @asthma=0 AND @underwater=0) {smy} {
                                                                                      #if (@splicedgut=1) {marjoram} {
                                                                                        #if (@dizziness=1 OR @omniphobia=1 OR @deadening=1) {kombu} {
                                                                                          #if (@rightarmartery=1 OR @leftarmartery=1 OR @rightlegartery=1 OR @leftlegartery=1 OR @headartery=1 OR (@sliceforehead=1 OR @spliced=1)) {yarrow} {
                                                                                            #if (@succumb=1 AND @donesuccumb=0) {reishi} {
                                                                                              #if (@tornrightear=1 OR @tornleftear=1 OR @torngut=1 OR @tornhead=1 OR @puncturedchest=1) {marjoram} {
                                                                                                #if (@sense=0 AND @sensemode=1) {fae} {
                                                                                                  #if (@needkafe=1) {kafe} {chervil=1}
                                                                                                }
                                                                                              }
                                                                                            }
                                                                                          }
                                                                                        }
                                                                                      }
                                                                                    }
                                                                                  }
                                                                                }
                                                                              }
                                                                            }
                                                                          }
                                                                        }
                                                                      }
                                                                    }
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}


I see no obvious errors there - I'll look more in depth later.
Unknown2006-10-30 19:33:44
drankgnerosity - missing an 'e'
@var = num - not really correct syntax, though it often works accidentally. No @ when using var = val syntax.
splicedgut - maybe slicedgut? spliced means something different, but if the typo is consistent everywhere, it works just the same.

Without a description of what isn't working, it's difficult to know where to look.
Unknown2006-10-30 19:52:11
QUOTE(Zarquan @ Oct 30 2006, 01:33 PM) 348397
drankgnerosity - missing an 'e'
@var = num - not really correct syntax, though it often works accidentally. No @ when using var = val syntax.
splicedgut - maybe slicedgut? spliced means something different, but if the typo is consistent everywhere, it works just the same.


Spliced is consistent. drankgnerosity is a typo tho. Add that e in there. When I modify the trigger, it doesn't like the synatx, but once I save the changes, it gets happy again. Let us know what exactly the error is. Screencap might be nice
Drathys2006-10-30 20:47:08
Sometimes the trigger editor does give syntax errors when you're editing, but then reshuffles things when you save, making it correct syntax.
Unknown2006-10-30 21:33:17
I've written perfectly valid code that shows up as having syntax errors, too. There are known bugs in the syntax checking/pretty printing. As long as it works, you can ignore them.
Unknown2006-10-31 00:57:13
thanks for ya'lls help. I think I've gotten it all worked out now. Hopefully I wont have any problems
Unknown2006-10-31 02:25:16
ok, bad news. It seems the problems I'm having are still with the bard cures. Here's what it looks like

You eat a horehound blossom.
An ominous noise lifts from within your mind.
0=0


Mitch plays a finely-crafted violin and directs the whispering notes towards you.
As the whispers enter your mind, a sinking feeling drops into the pit of your stomach.
0=1

You eat a horehound blossom.
The oppressive whispering in your mind dies out.
0=0


Mitch plays a finely-crafted violin and directs the jarring notes towards you.
The jarring sound causes a cold pain to stab you in the forehead.
0=1

You eat a horehound blossom.
The dark thrumming presence around you dissipates.
0=0
Forren2006-10-31 02:53:13
QUOTE(talkans @ Oct 31 2006, 02:25 AM) 348615

ok, bad news. It seems the problems I'm having are still with the bard cures. Here's what it looks like

You eat a horehound blossom.
An ominous noise lifts from within your mind.
0=0
Mitch plays a finely-crafted violin and directs the whispering notes towards you.
As the whispers enter your mind, a sinking feeling drops into the pit of your stomach.
0=1

You eat a horehound blossom.
The oppressive whispering in your mind dies out.
0=0
Mitch plays a finely-crafted violin and directs the jarring notes towards you.
The jarring sound causes a cold pain to stab you in the forehead.
0=1

You eat a horehound blossom.
The dark thrumming presence around you dissipates.
0=0


I've had that happen when the "=" was done wrong. Check the spacing between variables and "=" in "horehound".
Unknown2006-10-31 04:27:39
thanks to some more help with neraka, I've gotten it all figured out-thanks though for all the help.