How to make a trainer change the value of a pointer

Want Cheat Engine to do something specific and no idea how to do that, ask here. (From simple scripts to full trainers and extensions)
Post Reply
User avatar
megupets
Cheater
Cheater
Posts: 25
Joined: Fri Jun 17, 2022 1:20 am
Reputation: 12

How to make a trainer change the value of a pointer

Post by megupets »

Hello, I was able to create a pointer and i was wondering if there is a way to create a button on a trainer or a hotkey for changing/injecting a new value into the pointer.

The pointer starts with a "5000" value on a new save game so I want to be able to change that value with the trainer into a higher value.
Anyone can point me in the right direction on how to achieve this?
I've seen a couple of videos on youtube but most of them are outdated/do not cover what I want to do so I've no idea what I'm doing or how to achieve this.

I'm New to CE and Lua.

User avatar
LeFiXER
LeFixer
LeFixer
Posts: 482
Joined: Wed Mar 24, 2021 9:35 am
Reputation: 243

Re: How to make a trainer change the value of a pointer

Post by LeFiXER »

Why not just use a hotkey to set a specific value?

User avatar
megupets
Cheater
Cheater
Posts: 25
Joined: Fri Jun 17, 2022 1:20 am
Reputation: 12

Re: How to make a trainer change the value of a pointer

Post by megupets »

LeFiXER wrote:
Fri Jun 17, 2022 5:30 pm
Why not just use a hotkey to set a specific value?
That would work as well, but idk how to do that. I can assign a hotkey to the address but all it does is freeze the value instead of changing it.

User avatar
LeFiXER
LeFixer
LeFixer
Posts: 482
Joined: Wed Mar 24, 2021 9:35 am
Reputation: 243

Re: How to make a trainer change the value of a pointer

Post by LeFiXER »

Right-click the pointer in the cheat table > edit/set hotkey. From there you can change the parameters of the hotkey. Set value, increase/decrease value, toggle (freeze/unfreeze) etc...

User avatar
megupets
Cheater
Cheater
Posts: 25
Joined: Fri Jun 17, 2022 1:20 am
Reputation: 12

Re: How to make a trainer change the value of a pointer

Post by megupets »

LeFiXER wrote:
Fri Jun 17, 2022 7:39 pm
Right-click the pointer in the cheat table > edit/set hotkey. From there you can change the parameters of the hotkey. Set value, increase/decrease value, toggle (freeze/unfreeze) etc...
It works!
Thank you so much!

User avatar
LeFiXER
LeFixer
LeFixer
Posts: 482
Joined: Wed Mar 24, 2021 9:35 am
Reputation: 243

Re: How to make a trainer change the value of a pointer

Post by LeFiXER »

You're welcome :)

Post Reply

Who is online

Users browsing this forum: No registered users