Help - Search - Members - Calendar
Full Version: Ridiculously Long If-else As A Starting Curer
Achaea's Forums > Off-Topic > Tech Support > Client Help
Nivm
is crashing Nexus after about 0.5-1.5 seconds. It goes through all of the elsif's every single time it runs, which is on
"{d}h, {d}m". What do you do to decrease the work-load without separating it?

CODE
#If $aff_anorexia=1 and $aff_slickness!=1 and $aff_salve_bal=1 {#send apply epidermal
} elsif $herb_bal=1 {
#If $aff_stupidity=1 or $aff_epilepsy=1 or $aff_dissonance=1 or $aff_dizziness=1 or $aff_impatience=1 {#send outr goldenseal
#send eat goldenseal
} elsif $aff_paralysis=1 or $aff_slickness=1 {#send outr bloodroot
#send eat bloodroot
} elsif $aff_asthma=1 or $aff_clumsiness=1 or $aff_healthleech=1 or $aff_hypochondria=1 or $aff_sensitivity=1 $aff_weariness=1 {#send outr kelp
#send eat kelp
} elsif $aff_confusion=1 or $aff_dementia=1 or $aff_hallucinations=1 or $aff_hypersomnia=1 or $aff_paranoia=1 {#send outr ash
#send eat ash
} elsif $aff_generosity=1 or $aff_justice=1 or $aff_lovers=1 or $aff_pacifism=1 or $aff_shyness=1 {#send outr bellwort
#send eat bellwort
} elsif $aff_addiction=1 or $aff_darkshade=1 or $aff_haemophillia=1 or $aff_lethargy=1 or $aff_nausia=1 or $aff_scytherus=1 {#send outr ginseng
#send eat ginseng
} elsif $aff_agoraphobia=1 or $aff_claustrophobia=1 or $aff_loneliness=1 or $aff_masochism=1 or $aff_recklessness=1 or $aff_vertigo=1 {#send outr lobelia
#send eat lobelia
}
}
#if $aff_anorexia!=1 and $salve_bal=1 {
#If $aff_ablaze=1 {#send apply mending
} elsif $aff_chill=1 {#send apply caloric
}
}
#If $aff_asthma!=1 {
#If $aff_hellsight=1 or $aff_aeon=1 or $aff_deadening=1 {
#If $pipestat_elm=0 {#send outr elm
#send put elm in pipe
#send light pipe
#send smoke pipe
} elsif $pipestat_elm=1 {#send light pipe
#send smoke pipe
} elsif $pipestat_elm=2 {#send smoke pipe
}
}
#If $aff_disloyalty=1 or $aff_slickness=1 or $aff_manaleech=1 {
#If $pipestat_Valerian=0 {#send outr Valerian
#send put Valerian in pipe
#send light pipe
#send smoke pipe
} elsif $pipestat_Valerian=1 {#send light pipe
#send smoke pipe
} elsif $pipestat_Valerian=2 {#send smoke pipe
}
}
}


I am guessing it is obvious to everyone else, but my attempts so far cause some afflictions to be missed.
Mishgul
only set the loop on You may eat another plant, and on an affliction message. doing it on a prompt is a waste of time and very laggy.
Nivm
Thank you.
Mishgul
make seperate aliases for smoke and apply salves etc. It will make it easier to edit when you need to change things too.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.