View previous topic :: View next topic |
Author |
Message |
helloimhello How do I cheat?
Reputation: 0
Joined: 29 Jan 2017 Posts: 4
|
Posted: Tue Jan 31, 2017 5:45 pm Post subject: Need Help with This |
|
|
So lets say i wanted to increase my ammo everytime i wasted my ammo, would i need to just put in an increment in the assembler?
|
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Tue Jan 31, 2017 6:13 pm Post subject: |
|
|
Yes. Find a sub/dec instruction which decreases your ammo, change it to inc/add
_________________
|
|
Back to top |
|
 |
helloimhello How do I cheat?
Reputation: 0
Joined: 29 Jan 2017 Posts: 4
|
Posted: Wed Feb 01, 2017 4:04 pm Post subject: |
|
|
its a mov , can i still use inc?
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Wed Feb 01, 2017 8:51 pm Post subject: |
|
|
Somewhere before the move should be the DEC/SUB.
But you can still INC before the MOV if you like.
|
|
Back to top |
|
 |
SunBeam I post too much
Reputation: 65
Joined: 25 Feb 2005 Posts: 4023 Location: Romania
|
Posted: Thu Feb 02, 2017 4:02 am Post subject: |
|
|
Note the "dec/sub" can also be in this form: "add [r32/r64+const],-1"
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Thu Feb 02, 2017 8:35 am Post subject: |
|
|
Also note that -1+1=0, so don't forget the additional math. And, not all games are designed for ammo to go beyond a certain point, so having your ammo always increase may not be ideal.
|
|
Back to top |
|
 |
|