Page 1 of 1
User input?
Posted: Thu Apr 19, 2018 6:14 pm
by jackg4
Is there a way for a table to accept user input (a decimal number) so the table script can use it (storing it in a script defining variable) without finding a pointer? It would look similar to a pointer on the table. There is only one location in the game for that number and I have offsets from that number for lots of stats. I've been unable to pin down the pointer and unable to make sure I have the beginning of the structure for an AOB scan, so I'm looking for an interim fix. After a week of studying and attempts, I'm a little tired.

Re: User input?
Posted: Thu Jan 23, 2025 7:41 am
by iSupakilla
why does it seem like this is an impossible fucking question to answer??? i don't wanna do hours of research into every nook cranny any crevice of the fucking forums and wiki on top of learning assembly more than a basic understanding to get a simple god damn answer along the lines of a simple answer. I want something so fucking simple.
I want a random ass script for user input that places what i type into the cheat table, into the script where I want it to go and everyone too much on their high horse to give anyone else that asks a straight answer that works
Re: User input?
Posted: Wed Apr 30, 2025 7:41 am
by imjustmaxie
iSupakilla wrote: ↑Thu Jan 23, 2025 7:41 am
why does it seem like this is an impossible fucking question to answer??? i don't wanna do hours of research into every nook cranny any crevice of the fucking forums and wiki on top of learning assembly more than a basic understanding to get a simple god damn answer along the lines of a simple answer. I want something so fucking simple.
I want a random ass script for user input that places what i type into the cheat table, into the script where I want it to go and everyone too much on their high horse to give anyone else that asks a straight answer that works
Hi.
Sorry for the very late reply. I saw no one else here, so might as well.
CE Lua has a function called
inputQuery that outputs a string value.
Official documentation:
Code: Select all
inputQuery(caption, prompt, initialstring): Shows a dialog where the user can input a string. This function returns the given string, or nil on cancel
Assuming you have a pointer address as a registered symbol already:
Code: Select all
{$lua}
if syntaxcheck then return end
[enable]
local ptr = getAddressSafe('registeredpointersymbol')
if not ptr or ptr == nil then error('invalid') end
local str = inputQuery("window_caption_here",'Please input value here","1.05"
if str == "" or str == nil then error('no value input') end
writeFloat(ptr,tonumber(str))
-- or if the value is a double type
writeDouble(ptr,tonumber(str))
[disable]
You can also learn from YouTube videos and tutorials. Not all of them apply to every game, so that's where the available tables are.
You can ask the table makers on how to make one yourself. Took me months just to create a complex infinite health script because I was too dumb, and now I could do more than that.
Connect with people. Don't be afraid to ask.
Learn and make it yourself. That's the joy of learning.
