ScriptUO
Ultima Online Fan Board => General UO Chat => Topic started by: NObama on April 16, 2012, 03:34:35 PM
-
Please look at the attached screenshot and tell me...WHY AM I ON THIS LINE?!
If %bottomrow = true, I should never get here!
ARGH!!!!!!!!!
-
Check your braces. You may have a brace imbalance. Try running the syntax checker from SUO.
-
Yep, that was it. It's proving much harder to keep track of all my branch and sequels than I thought, even for a 3x3 puzzle.
-
Don't worry, I've fallen in that particular hole many times. Part of the reason that inspired me to do the SUO thing.
-
Don't worry, I've fallen in that particular hole many times. Part of the reason that inspired me to do the SUO thing.
I would venture to bet that this is probably the number one syntactical stumper for newb's and vet's alike - probably in just about any applicable language really. Thus why a decent parser is so bitchin' ;)
Imagine trying to figure that out by hand with tens of thousands of lines of code? I don't care if you're the inventor of C++, there ain't no way you're dealing with that manually and still raising children and having sex from time to time. Nope, it ain't happening.
X
-
In case anyone cares, I've decided to scrap my current brute force logic approach to this process, and go with a rules-based one instead. It will take a really long time for me to code it, though, so in the meantime I've been using a version of the army to keep my main character healed.
I can do individual puzzles faster that I can code a solution, but it makes me sad that a prime scripting opportunity is being lost...perhaps if someone else wants to take it on, I can provide my work thus far.
-
yeah, when you have a bracket imbalance, the if statment just reads the first open bracket.
set %Boobies So_So
if %Boobies = magnificent
{
Display WOOT
Because there is no CLosing bracket, the if statment will only perform the Open Bracket if its true, so obviously it just performs everything else
-
I can relate to your excellent code example. :)
-
I read "boobies" and immediately went off to find some.
Damn. Did it again.