I'm sitting here, everything but a newbie at programming, and trying to make a script to cure afflictions in Imperian. The way I decided to create the script was create variables that are either 0 or 1, and then have the script cure on herb balance, whatever I deem to be the most dangerous affliction (such as making a list with the afflictions in order of most dangerous to least dangerous).
I have a few problems with this, mostly the fact that I need MUSHclient to practically continuously check what afflictions i have on me, so that it actually initiates the curing process so that I get the herb balance message. I could use a timer that checks each second, but that seems like an excess. Also, if indeed you super intelligent coders out there think I should use a timer, then I need to know how to script the timer to make it check what variables are set to "1". A thought hit me, out of the blue, saying that this would be so much easier if you could put variables in groups, as well as triggers. In that case, you could check if, for example, world.variablegroup ("affliction", "stupid", "1") is true, perhaps even scrollable by a counter with every variable being assigned a number. Perhaps something worth pondering, Nick? This could also make it easy to make lists, even if they wouldn't look like ordinary lists.
I have a few problems with this, mostly the fact that I need MUSHclient to practically continuously check what afflictions i have on me, so that it actually initiates the curing process so that I get the herb balance message. I could use a timer that checks each second, but that seems like an excess. Also, if indeed you super intelligent coders out there think I should use a timer, then I need to know how to script the timer to make it check what variables are set to "1". A thought hit me, out of the blue, saying that this would be so much easier if you could put variables in groups, as well as triggers. In that case, you could check if, for example, world.variablegroup ("affliction", "stupid", "1") is true, perhaps even scrollable by a counter with every variable being assigned a number. Perhaps something worth pondering, Nick? This could also make it easy to make lists, even if they wouldn't look like ordinary lists.