View previous topic :: View next topic |
Author |
Message |
Raybrand How do I cheat? Reputation: 0
Joined: 17 Apr 2012 Posts: 8 Location: United Kingdom
|
Posted: Sat Feb 14, 2015 1:58 pm Post subject: Increase all enemy health or decrease player damage |
|
|
Hello I would like to learn how to make all enemies hp greater of decrease the amount of damage the player can do, for the sake of increasing difficulty.
The game I was planning on using this on was Castlevania Lords of Shadow 2. That way I can use the infinite mana cheat and not have it op.
I just want to know what kind of techniques I should be looking at. Im not very experienced with cheat engine but I know how to do stuff like change your exp or money by finding the address its stored. I dont know anything about lua scripting but I know how to program.
I would greatly appreciate it if someone could tell me or point me in the right direction
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Feb 14, 2015 9:12 pm Post subject: |
|
|
You'll have to use a filter, but here is damage from my script:
Code: | aobscan(damage,D8658CD95D88)
//"CLOS2.exe"+F7577
fsub dword ptr [ebp-74]
fstp dword ptr [ebp-78] |
[ebp-74] holds the damage value. Simply write something like this to increase difficulty:
Code: | mov [ebp-74],(float)1.0 |
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Feb 15, 2015 1:28 pm Post subject: |
|
|
Using ++METHOS' code, I believe this will work:
Code: | fld dword ptr [ebp-74]
mov [ebp-74],(float)2.0
fdiv dword ptr [ebp-74]
fstp dword ptr [ebp-74]
//original code
fsub dword ptr [ebp-74]
fstp dword ptr [ebp-78] |
That should divide the damage value by 2.0, thereby reducing your damage in half.
|
|
Back to top |
|
|
Raybrand How do I cheat? Reputation: 0
Joined: 17 Apr 2012 Posts: 8 Location: United Kingdom
|
Posted: Mon Feb 16, 2015 7:45 am Post subject: |
|
|
Thanks for the code, but I honestly have no idea what to do with it. With cheat engine all I know is how to search cheat engine for an amount, then change that value in game then run search again till finding 1 or 2 addresses.
Im studying some lua scripting on utube but im not quite there yet.
So far I assume that I open cheat engine press CTRL+ALT+L and copy and paste
Code: | fld dword ptr [ebp-74]
mov [ebp-74],(float)2.0
fdiv dword ptr [ebp-74]
fstp dword ptr [ebp-74]
//original code
fsub dword ptr [ebp-74]
fstp dword ptr [ebp-78] |
would you mind explaining what some of these lines of code do? And also does this code only apply to Castlevania LOS 2 or to other games as well?
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Feb 16, 2015 3:41 pm Post subject: |
|
|
Complete the CE tutorial. Refer to videos and guides for help.
I would not study LUA until you have some basic understanding of assembly.
This code will only work on Castlevania LOS2.
The most important code above is this:
Code: | aobscan(damage,D8658CD95D88) |
...because it tells you where to look. Without it, nothing else matters. This:
...is an array of bytes. You can search these bytes to find the location in memory where this particular instruction is being performed.
|
|
Back to top |
|
|
Raybrand How do I cheat? Reputation: 0
Joined: 17 Apr 2012 Posts: 8 Location: United Kingdom
|
Posted: Tue Feb 17, 2015 2:11 pm Post subject: |
|
|
OK I've got a better understanding, thanks
|
|
Back to top |
|
|
lucylee378 How do I cheat? Reputation: 0
Joined: 26 Feb 2015 Posts: 1 Location: France
|
Posted: Thu Feb 26, 2015 1:22 pm Post subject: |
|
|
I would not study LUA until you have some basic understanding of assembly.
_________________
**SignaturE** |
|
Back to top |
|
|
|