Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Increase all enemy health or decrease player damage

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
Raybrand
How do I cheat?
Reputation: 0

Joined: 17 Apr 2012
Posts: 8
Location: United Kingdom

PostPosted: Sat Feb 14, 2015 1:58 pm    Post subject: Increase all enemy health or decrease player damage Reply with quote

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
View user's profile Send private message AIM Address
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Feb 14, 2015 9:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Feb 15, 2015 1:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Raybrand
How do I cheat?
Reputation: 0

Joined: 17 Apr 2012
Posts: 8
Location: United Kingdom

PostPosted: Mon Feb 16, 2015 7:45 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Feb 16, 2015 3:41 pm    Post subject: Reply with quote

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:

Code:
D8658CD95D88


...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
View user's profile Send private message
Raybrand
How do I cheat?
Reputation: 0

Joined: 17 Apr 2012
Posts: 8
Location: United Kingdom

PostPosted: Tue Feb 17, 2015 2:11 pm    Post subject: Reply with quote

OK I've got a better understanding, thanks
Back to top
View user's profile Send private message AIM Address
lucylee378
How do I cheat?
Reputation: 0

Joined: 26 Feb 2015
Posts: 1
Location: France

PostPosted: Thu Feb 26, 2015 1:22 pm    Post subject: Reply with quote

I would not study LUA until you have some basic understanding of assembly.
_________________
**SignaturE**
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites