| View previous topic :: View next topic |
| Author |
Message |
Llisandur How do I cheat?
Reputation: 0
Joined: 25 Feb 2016 Posts: 4
|
Posted: Sun Feb 28, 2016 11:53 pm Post subject: Parent value to child address |
|
|
| Is it possible to add the value at a parent address to a child address? For example, the byte value at address 0x0970A7C7 is 42. I need to take that 42 and add it to 0x0970D974 on one label and 0x9710D85 on another label.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25831 Location: The netherlands
|
Posted: Mon Feb 29, 2016 2:37 am Post subject: |
|
|
freeze 0x9701d85 and set the value to
| Code: |
(description of entry with original value)
|
make sure you use the round braces ()
_________________
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 |
|
 |
Llisandur How do I cheat?
Reputation: 0
Joined: 25 Feb 2016 Posts: 4
|
Posted: Mon Feb 29, 2016 2:46 am Post subject: |
|
|
| That just copies the value of one address to another. I need to take a value in one address and add it to another address. For 0x09710D85 it should end up as 0x09710DC7 after adding the 42 value from 0x0970A7C7. If the value at 0x0970A7C7 is 10, the address 0x09710D85 should end up as 0x09710D95.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25831 Location: The netherlands
|
Posted: Mon Feb 29, 2016 3:58 am Post subject: |
|
|
ok, I am assuming this is some kind of pointer thing?
then do the following: (this is going to be weird and actually using an feature that wasn't designed for this case)
to summarize:
you have an address in your table that holds another address as value
and you add a child entry to that entry that you wish to have as address that value+0x10
(I don't know why you don't just add a pointer with the address/path of the parent as base address, but ok...)
to do this:
create a new entry (just leave the address blank) and add it as child under the parent
now change the address of the child:
tick the pointer checkbox
give in as base address the address:
set the offset to 10 (don't worry about the questionmarks)
click ok
the child will get as address P->parentvalue+10
_________________
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 |
|
 |
Llisandur How do I cheat?
Reputation: 0
Joined: 25 Feb 2016 Posts: 4
|
Posted: Mon Feb 29, 2016 4:23 am Post subject: |
|
|
| The problem is that the value at 0x0970A7C7 isn't fixed. The game has several arrays at different locations for different stats. One array for health, another for magic, etc. Then it has another array that tells which characters are in the party and it offsets from the base address of the arrays by the character's ID number. And it's a DOS game played in DOSBox, so I'm already using pointers so the addresses come up properly after restarting.
|
|
| Back to top |
|
 |
panraven Grandmaster Cheater
Reputation: 62
Joined: 01 Oct 2008 Posts: 959
|
|
| Back to top |
|
 |
|