Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Dagnimaer
Wanderer


Joined: 05 Apr 2003
Posts: 60
Location: USA

PostPosted: 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
Reply with quote
tacturnal
Beginner


Joined: 28 May 2003
Posts: 21
Location: USA

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Dagnimaer
Wanderer


Joined: 05 Apr 2003
Posts: 60
Location: USA

PostPosted: Thu Jun 05, 2003 2:21 am   
 
Thanks, got it working now
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net