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 


Please help me. Conditional breakpoint

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

Joined: 04 Apr 2017
Posts: 5

PostPosted: Wed Apr 05, 2017 12:03 am    Post subject: Please help me. Conditional breakpoint Reply with quote

The first time I came here, my English is not good, but I have a question about the conditional breakpoint, and I want to know how to judge whether the [esp] is equal to the one I expect at the conditional breakpoint It includes all the usage, for example, and I only know these || ~ = = = Very Happy Thank you
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Wed Apr 05, 2017 2:26 am    Post subject: Reply with quote

use as condition:
Code:

readInteger(ESP)==0x789abcd0

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

Joined: 04 Apr 2017
Posts: 5

PostPosted: Wed Apr 05, 2017 2:31 am    Post subject: Reply with quote

Dark Byte wrote:
use as condition:
Code:

readInteger(ESP)==0x789abcd0


Very Happy Very Happy 谢谢
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Wed Apr 05, 2017 1:40 pm    Post subject: Reply with quote

For Lua, the following is how to check for equal and not equal:

Equality:
Code:
readInteger(ESP) == 0x789abcd0


Inequality (not equal):
Code:
readInteger(ESP) ~= 0x789abcd0


Other operators would depend on what you are trying to check against.

&& which usually refers to 'logical and' is handled via the 'and' keyword in Lua.
|| which usually refers to 'logical or' is handled via the 'or' keyword in Lua.
! which usually refers to 'logical not' is handled via the '~' operator in Lua. (ie. ~= means 'not equal')

Other operators such as:
< (less than)
> (greater than)
<= (lass than or equal to)
>= (greater than or equal to)

are used in the same manner in Lua with no changes needed.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Kancho
How do I cheat?
Reputation: 0

Joined: 04 Apr 2017
Posts: 5

PostPosted: Wed Apr 05, 2017 9:20 pm    Post subject: Reply with quote

It's difficult for me to read English, but thank you, because I have already used it Smile
Back to top
View user's profile Send private message
Genosefur
How do I cheat?
Reputation: 0

Joined: 28 Apr 2017
Posts: 1

PostPosted: Fri Apr 28, 2017 12:56 am    Post subject: Reply with quote

I’m very grateful for you help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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