View previous topic :: View next topic |
Author |
Message |
Anomander How do I cheat?
Reputation: 0
Joined: 05 Apr 2021 Posts: 2
|
Posted: Mon Apr 05, 2021 8:31 pm Post subject: Search by for numbers that are a multiple of 4 |
|
|
Hey, I'm wondering if it is possible to search for all addresses in which the value is a multiple of 4, for example. It doesn't have to be 4. For example, if I have 100 gold, and know that the value is stored as 100 times Y, but I don't know what Y is, I would like to start off the scan with "Multiple of 100" rather than "Unknown Initial Value".
Is it possible?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25796 Location: The netherlands
|
Posted: Tue Apr 06, 2021 1:29 am Post subject: |
|
|
yes.
check the lua formula checkbox and scan for
% (modulo) returns what is left after dividing by the given value
so when it's 0 it's dividable by 100
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
Anomander How do I cheat?
Reputation: 0
Joined: 05 Apr 2021 Posts: 2
|
Posted: Tue Apr 06, 2021 9:31 am Post subject: |
|
|
Absolutely what I wanted. Is there another bit I can tag on that excludes 0 (since 0/100 = 0)? I can just follow it up with a "Greater Than 99" but I'd feel better if I could learn how to make it cleaner.
|
|
Back to top |
|
 |
TheyCallMeTim13 Wiki Contributor
Reputation: 51
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Tue Apr 06, 2021 10:55 am Post subject: |
|
|
It's lua so I'm betting this would work.
Code: | value % 100 == 0 and value ~= 0 |
_________________
|
|
Back to top |
|
 |
|