|
Dagnimaer Wanderer
Joined: 05 Apr 2003 Posts: 60 Location: USA
|
Posted: Wed Jun 04, 2003 4:48 am
Imperian Alias Nesting Problem |
Greetings,
Ok, I got everything set for a basic autoheal but I have a problem, the string will not run. Here is the syntax:
ALias Heal
Syntax:
#if {@asleep AND NOT @waking} {wake}
#if @fear {compose}
#if (@waking ) {@herbalance = 0 AND @salvebalance = 0}
#if {@Asthma AND NOT @asleep AND NOT @stunned} {kel}
#IF {@anorexia AND NOT @slickness} {epi}
#IF {@slickness AND NOT @ASTMHA} {SLV}
#IF {@SLICKness AND @ASTHMA AND NOT @anorexia} {emh}
#IF {@aeon AND NOT @asleep AND NOT @stunned AND NOT @asthma} {aeon}
#IF {@ugly AND NOT @aeon AND NOT @asthma} {slv}
#IF {@hellsight AND NOT @asthma AND NOT @aeon} {sl}
#IF {@herbbalance AND NOT @asleep AND NOT @waking AND NOT @aeon} {#if @stupid {eo} {#if @paralysis {emh} {#if @sensitive {kel}} {#if @asthma {kel} {#if @heroism {ema} {#if @hypersomnia {eww} {#if @recklessness {ema} {#if @haemophilia {ens} {#if @clumsy {kel} {#if @darkshade {ens} {#if @shyness {eo} {#if @weakness {kel} {#if @epilepsy {eo} {#if @heroism {ema} {#if @reckless {ema} {#if @lovers {eg} {#if @dizzy {ema} {#if @confused {eww} {#if @halucinate {eww} {#if @nausea {ens} {#if @judgement {eg} {#if @insomnia {vio} {#if @relapse {ens}}}}}}}}}}}}}}}}}}}}}}}
#IF {@vialbalance AND NOT @asleep AND NOT @waking AND NOT @aeon} {#if @aeon {speed} {#IF @voyria {imm} {#if @speed {speed}}}}
#IF {@aeon = 0}
Any idea's whats wrong, I am really stumped on this one. Thanks |
|
|
|
tacturnal Beginner
Joined: 28 May 2003 Posts: 21 Location: USA
|
Posted: Wed Jun 04, 2003 5:16 am |
#IF {@herbbalance AND NOT @asleep AND NOT @waking AND NOT @aeon} {#if @stupid {eo} {#if @paralysis {emh} ^^ that's the problem.. your if has the { before it.. which makes it look like an alternative to the prior if, and then there's the problem of not being able to have an #if within an #if.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Jun 04, 2003 12:33 pm |
ALias Heal
Use ( and ) around #IF conditions, not { and }. Use ; between commands not AND. Use herbalance = 0 to set variables, not @herbalance.
Syntax:
#if (@asleep AND NOT @waking) {wake}
#if (@fear) {compose}
#if (@waking) {herbalance = 0;salvebalance = 0}
Putting one #IF inside another is perfectly acceptable.
LightBulb
Advanced Member |
|
|
|
Dagnimaer Wanderer
Joined: 05 Apr 2003 Posts: 60 Location: USA
|
Posted: Thu Jun 05, 2003 2:21 am |
Thanks, got it working now
|
|
|
|
|
|