Ok, for some reason this if statment isn't working:
#if ((@currLyre != @currentInstrument) & (@Dualing == OFF)) {
rem bp
rem @currentInstrument
put @currentInstrument bp
get @currLyre bp
hold @currLyre
@currentInstrument = @currLyre
wear bp
}
sing 'song of regeneration'
I have no idea, it looks right... the syntax highlights properly and everything in the editing window. It's logically correct, but it always evaluates false and the commands don't happen.
I'm just now trying to add the dual wield check, it was working before with just #if (@currLyre != @currentInstrument)
ZMud scripting problem
ZMud scripting problem
<a href="http://www.code-haven.com">Code Haven</a> - For all your programming needs.
I detest what you write, but I would give my life to make it possible for you to continue to write. - Some Guy Who Paraphrased Voltaire
I detest what you write, but I would give my life to make it possible for you to continue to write. - Some Guy Who Paraphrased Voltaire
got it, needed quotes around OFF...
ZMud's a funny funny scripting language. I mean, if you compare to variables set to OFF they match. But if you compare a variable set to OFF with OFF it doesn't match, you have to compare the variable set to OFF to "OFF" to make it work.
It just doesn't feel consistent to me. Especially when you are trying to figure the language out as you go.
ZMud's a funny funny scripting language. I mean, if you compare to variables set to OFF they match. But if you compare a variable set to OFF with OFF it doesn't match, you have to compare the variable set to OFF to "OFF" to make it work.
It just doesn't feel consistent to me. Especially when you are trying to figure the language out as you go.
<a href="http://www.code-haven.com">Code Haven</a> - For all your programming needs.
I detest what you write, but I would give my life to make it possible for you to continue to write. - Some Guy Who Paraphrased Voltaire
I detest what you write, but I would give my life to make it possible for you to continue to write. - Some Guy Who Paraphrased Voltaire
Who is online
Users browsing this forum: No registered users and 10 guests