Jump to content
  • 0

Getting Error When I Use Fuzzy Search in Lua Script


M3ak

Question

I dont know whats wrong with this code.  It seems like gg.SerachFuzzy doesnt search the result from gg.searchNumber.

data = gg.prompt({[1]='Search value'}, {[1]='1000'})
gg.searchNumber(data[1], gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
local t = gg.getResults(100)
gg.alert ('Change HP')
gg.setVisible(false)
--HP Decreased--
--Open GG Icon--
gg.searchFuzzy('0', gg.SIGN_FUZZY_LESS) 
--Filter the value so it doesnot keep negative value--
gg.searchNumber('1~1000', gg.TYPE_DOUBLE)
--Edit then Freeze Value which has been decreased--
t = gg.getResults(20)
t[1].value = '1000'
t[1].freeze = true
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • Administrators
2 hours ago, M3ak said:

It seems like gg.SerachFuzzy doesnt search the result from gg.searchNumber.

Wrong.

2 hours ago, M3ak said:

t = gg.getResults(20) t[1].value = '1000' t[1].freeze = true

Freeze wrong. It is not freeze.

Freeze must use addListItems.

_______________________________________________
added 0 minutes later

And I do not see any error in your post.

_______________________________________________
added 1 minute later

You must add error text. Or error not exists.

Link to comment
Share on other sites

Ya i mean codes above fuzzy searching value from the starts not searching value from the first search result.

 

Example:

I got '2' result of '1000' value from gg.searchNumber

I got back to the game and wait till '1000' value decreased

I click on gg icon then gg.searchFuzzy (signfuzzyless) is working to search all value not searching from '2' value i found.

Am i missing something here?

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.