Search found 13 matches
- Fri Apr 22, 2022 10:17 pm
- Forum: Cheat Engine Lua Scripting
- Topic: Simplify script
- Replies: 2
- Views: 3945
Re: Simplify script
Oh my bad you right I should've just wrote this in "Lua IF"
- Fri Apr 22, 2022 9:35 pm
- Forum: Cheat Engine Lua Scripting
- Topic: Lua IF
- Replies: 13
- Views: 5839
Re: Lua IF
I just did this [ENABLE] {$lua} b={} timercharactersstand = createTimer(nil, false) timercharactersstand.Interval = 20 timercharactersstand.Enabled = true timercharactersstand.OnTimer = function() local level = readByte(0x2059DDA0,1) if level == 4 then writeBytes(0x2059E085,0xFF) else for i=1,2 do r...
- Fri Apr 22, 2022 9:34 pm
- Forum: Cheat Engine Lua Scripting
- Topic: Simplify script
- Replies: 2
- Views: 3945
Simplify script
Can I simplify this?I mean I'm randomizing all of those addresses values but without certain values and for each one of them I have a different "for" for randomizing their values: [ENABLE] {$lua} s={} timerstand = createTimer(nil, false) timerstand.Interval = 20 timerstand.Enabled = true timerstand....
- Thu Apr 21, 2022 11:04 pm
- Forum: Cheat Engine Lua Scripting
- Topic: Lua IF
- Replies: 13
- Views: 5839
Re: Lua IF
Ok solved it,thanks!
- Thu Apr 21, 2022 7:45 pm
- Forum: Cheat Engine Lua Scripting
- Topic: Lua IF
- Replies: 13
- Views: 5839
Re: Lua IF
I have the entire script here ,I implemented your script but it says violation access [ENABLE] {$lua} b={} timercharactersstand = createTimer(nil, false) timercharactersstand.Interval = 20 timercharactersstand.Enabled = true timercharactersstand.OnTimer = function(timer) local level = readByte(0x205...
- Thu Apr 21, 2022 6:03 pm
- Forum: Cheat Engine Lua Scripting
- Topic: Lua IF
- Replies: 13
- Views: 5839
Re: Lua IF
now there's this error : 2:attempt to index a niv value (global timer)
- Thu Apr 21, 2022 4:00 pm
- Forum: Cheat Engine Lua Scripting
- Topic: Lua IF
- Replies: 13
- Views: 5839
Re: Lua IF
Error in line 22 timer.destroy():This instruction can't be compiled
- Thu Apr 21, 2022 2:38 pm
- Forum: Cheat Engine Lua Scripting
- Topic: Lua IF
- Replies: 13
- Views: 5839
Re: Lua IF
Yes indeed basically i'm trying to make a randomizer for a ps2 game but if the level with id 4 is loaded then the randomizer stop(which is that "for")and if the level id is not 4 anymore then the "for" can resume randomizing
- Wed Apr 20, 2022 10:20 pm
- Forum: Cheat Engine Lua Scripting
- Topic: Lua IF
- Replies: 13
- Views: 5839
Lua IF
I would need to have an "if" that if an address value is 4 then it writes FF and it stops the "for" below but if that value is not 4 anymore than the "for" can resume. [ENABLE] {$lua} b={} timercharactersstand = createTimer(nil, false) timercharactersstand.Interval = 20 timercharactersstand.Enabled ...
- Wed Apr 20, 2022 7:13 pm
- Forum: Cheat Engine
- Topic: Adding code
- Replies: 7
- Views: 1259
Re: Adding code
I mean yeah if you add another character before the FF's yes that shouldn't be a problem,but idk how to add those bytes in CE withous modifiyng the game files
- Wed Apr 20, 2022 7:02 pm
- Forum: Cheat Engine
- Topic: Adding code
- Replies: 7
- Views: 1259
Re: Adding code
Ok so the code is like this: 01 00 00 01 00 00 00 00(one character),then after a few of these there are 4 FF'S so FF FF FF FF and that's where the game stops loading the characters so instead of replacing the already loaded characters I would want to add another "01 00 00 01 00 00 00 00" before thos...
- Wed Apr 20, 2022 6:49 pm
- Forum: Cheat Engine
- Topic: Adding code
- Replies: 7
- Views: 1259
Re: Adding code
I know that it's possible because it's been done before but only if you modify the files themselves with HxD with copy and insert but that would mean rebuilding the iso each time(it's a ps2 game)
- Wed Apr 20, 2022 6:22 pm
- Forum: Cheat Engine
- Topic: Adding code
- Replies: 7
- Views: 1259
Adding code
Is it possible to add code instead of just pasting it?
Context: I want a game to load a character into a cutscene but there are only 2 slots and all characters loaded end with 4 FF'S so if I insert another character before those FF the game should load another character
Context: I want a game to load a character into a cutscene but there are only 2 slots and all characters loaded end with 4 FF'S so if I insert another character before those FF the game should load another character