ScriptUO
Scripting Resources & Utilities => ScriptUO Application => Bug discussion => Topic started by: Cerveza on March 19, 2009, 09:24:15 AM
-
This doesn't qualify as a bug, but more an annoyance that *might* be able to be fixed.
When I search for %res I get this:
247: set %res #result
271: set %result #RESULT
272: set %intpart %result / 10
273: set %decpart %result % 10
373: menu Text EUOLabel36 290 37 %res
Now, if I were to replace %res with %FINAL_RESULT I would get this:
247: set %FINAL_RESULT #result
271: set %FINAL_RESULTult #RESULT
272: set %intpart %FINAL_RESULTult / 10
273: set %decpart %FINAL_RESULTult % 10
373: menu Text EUOLabel36 290 37 %FINAL_RESULT
Which obviously isn't what I wanted. If I replace selected it works great on the first one, but then doesn't line up correctly on all the other lines.
Maybe an "exact match" check box?
-
Not sure how to do that. Technically, it *is* doing an exact match replacement.
You can be more specific in your search by including a space in the first argument. So "%res " will do what you need and I don't have to do any coding... :p
I only provide the rope; it's up to you to hang yourself with it. hehe
-
Your right, but....
It still replaces the wrong stuff if you do it one at a time...
I have been using more search criteria to ensure it's only the instances I want.
On a side note - why is it when I copy code from SUO and paste it into notepad it doesn't format right?
-
Ok, I see that. Don't do that. :p
And notepad sucks, use Wordpad.
Seriously, I'll fix that. :)
-
Or even better use Notepad++ ;)