Author Topic: Search is just too darn good  (Read 5599 times)

0 Members and 1 Guest are viewing this topic.

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Search is just too darn good
« on: March 19, 2009, 09:24:15 AM »
0
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?

XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Search is just too darn good
« Reply #1 on: March 19, 2009, 09:28:27 AM »
0
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
« Last Edit: March 19, 2009, 09:36:49 AM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Search is just too darn good
« Reply #2 on: March 19, 2009, 09:41:18 AM »
0
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?
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Search is just too darn good
« Reply #3 on: March 19, 2009, 09:49:09 AM »
0
Ok, I see that.  Don't do that.  :p

And notepad sucks, use Wordpad.

Seriously, I'll fix that.  :)
« Last Edit: March 19, 2009, 09:52:04 AM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Xclio

  • Officially "The MAN"
  • Elite
  • *
  • *
  • Posts: 981
  • Activity:
    0%
  • Reputation Power: 9
  • Xclio has no influence.
  • Gender: Male
  • Respect: +56
  • Referrals: 1
    • View Profile
Re: Search is just too darn good
« Reply #4 on: March 21, 2009, 11:16:31 PM »
0
Or even better use Notepad++ ;)

Tags: