| View previous topic :: View next topic |
| Author |
Message |
engineer_professor Newbie cheater
Reputation: 0
Joined: 31 Jan 2013 Posts: 10
|
Posted: Thu Feb 07, 2013 9:55 am Post subject: How to write value when x = 1? |
|
|
Hello.
Basically, I would like CE to make a value = 1, when another address is equal to 200.
In other words,
If address 00D03000 = '200', then write the value '1' to address 00469000.
Could someone please help me accomplish this goal?
CE is very powerful and I know there is a way to do this!
|
|
| Back to top |
|
 |
Screitor Cheater
Reputation: 1
Joined: 26 Nov 2012 Posts: 33 Location: Venezuela
|
Posted: Thu Feb 07, 2013 2:37 pm Post subject: |
|
|
Write your own program to do it, that should be easy and faster.
_________________
Everybody lies.
Last edited by Screitor on Sat Feb 09, 2013 6:58 pm; edited 1 time in total |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25828 Location: The netherlands
|
Posted: Thu Feb 07, 2013 2:44 pm Post subject: |
|
|
execute this script:
| Code: |
function writeif200(sender)
if readInteger("00D03000")==200 then
writeInteger("00469000", 1)
end
end
t=createTimer(nil, true)
timer_onTimer(t, writeif200)
timer_setInterval(t, 100) --check every 100 milliseconds
|
_________________
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 |
|
 |
engineer_professor Newbie cheater
Reputation: 0
Joined: 31 Jan 2013 Posts: 10
|
Posted: Wed Feb 13, 2013 9:02 am Post subject: |
|
|
| Dark Byte wrote: | execute this script:
| Code: |
function writeif200(sender)
if readInteger("00D03000")==200 then
writeInteger("00469000", 1)
end
end
t=createTimer(nil, true)
timer_onTimer(t, writeif200)
timer_setInterval(t, 100) --check every 100 milliseconds
|
|
thank you for this,
one more question: how to modify this script so that I can make "00D07000" equal to the value at "00E07000" ?
(the value at 00E07000 changes often, so i need 00D07000 to always match it!)
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25828 Location: The netherlands
|
Posted: Wed Feb 13, 2013 9:34 am Post subject: |
|
|
writeInteger("00D07000", readInteger("00E07000"))
alternatively, just add both 00D07000 and 00E07000 to the cheat table
freeze 00d07000 and change the value to "(descriptionof00e07000)" (without the quotes, with the 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 |
|
 |
engineer_professor Newbie cheater
Reputation: 0
Joined: 31 Jan 2013 Posts: 10
|
Posted: Thu Jun 27, 2013 1:34 pm Post subject: |
|
|
thanks,
and is it possible to change 'writeInteger' and 'readInteger' to make it read and write 4 bytes instead of one?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25828 Location: The netherlands
|
Posted: Thu Jun 27, 2013 2:28 pm Post subject: |
|
|
Integer is 4 bytes
_________________
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 |
|
 |
|