Jump to content
  • 0

Need Help With Command Freeze Value


Kuro96

Question

Hi everyone , i made this script and i want to freeze or freeze may increase 2 value  : 10 and 20 but dont know how... Plz guide me

For examle

gg.searchNumber('1;2;3;4',gg.TYPE_FLOAT)
gg.refineNumber('1;2',gg.TYPE_FLOAT)
gg.getResults(10)
gg.editAll('10;20',gg.TYPE_FLOAT)

gg.clearResults()
end

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

On 8/30/2021 at 3:34 PM, Kuro96 said:

Hi everyone , i made this script and i want to freeze or freeze may increase 2 value  : 10 and 20 but dont know how... Plz guide me

For examle

gg.searchNumber('1;2;3;4',gg.TYPE_FLOAT)
gg.refineNumber('1;2',gg.TYPE_FLOAT)
gg.getResults(10)
gg.editAll('10;20',gg.TYPE_FLOAT)

gg.clearResults()
end

Select "record script" and it will output code what u want.

Link to comment
Share on other sites

gg.searchNumber("1;2;3;4::", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("1;2", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(2500, nil, nil, nil, nil, nil, nil, nil, nil) local t = gg.getResults(2500, nil, nil, nil, nil, nil, nil, nil, nil) for i, v in ipairs(t) do 	if v.flags == gg.TYPE_FLOAT then 		v.value = "10 or 20 ?" 		v.freeze = true 	end end gg.addListItems(t) t = nil gg.alert("blabla") end

gg.editAll('10;20',gg.TYPE_FLOAT) you cant edit in this way edit 10 or 20 but no twice or make 2 functions one edit for 10 one edit for 20

@Kuro96

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.