| View previous topic :: View next topic |
| Author |
Message |
Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 512
|
Posted: Mon Feb 21, 2022 12:55 pm Post subject: Get value from game function |
|
|
| how to get value from game function and register variable in lua? |
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Mon Feb 21, 2022 1:53 pm Post subject: |
|
|
For example:
| Code: |
{$luacode test=rcx}
local value = test
print(tostring(test))
{$asm}
|
|
|
| Back to top |
|
 |
Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 512
|
Posted: Mon Feb 21, 2022 2:21 pm Post subject: |
|
|
| LeFiXER wrote: | For example:
| Code: |
{$luacode test=rcx}
local value = test
print(tostring(test))
{$asm}
|
|
so i need to get register that returned by calling and paste this code? |
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Mon Feb 21, 2022 7:03 pm Post subject: |
|
|
| Well, not paste directly. You can set whichever registers hold the data you want to use then you can use Lua to do what you want. |
|
| Back to top |
|
 |
Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 512
|
Posted: Mon Feb 21, 2022 11:23 pm Post subject: |
|
|
| LeFiXER wrote: | | Well, not paste directly. You can set whichever registers hold the data you want to use then you can use Lua to do what you want. |
ty |
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Tue Feb 22, 2022 6:25 am Post subject: |
|
|
| The wiki/luacode page will provide more insight. |
|
| Back to top |
|
 |
|