CLEO Help disabling a mod

CLEO related
Status
Not open for further replies.

PlasticBottle

Active member
Joined
Jul 13, 2016
Messages
162
Reaction score
1
Yo, how can i make a Cleo disable ?
I have this:
Beginning stuff here
...
....

:NONAME_1
wait 0
0ADC: test_cheat "SPACECAKE"
else_jump @NONAME_1

...
...
then stuff again
I edited the Cleo by myself, I know a liiiiiitle bit about Cleo scripting, but I don't have enough knowledge to make it disable.

(I can enable it in game but can't disable)
 

4changesLeft

Well-known member
Joined
Apr 10, 2015
Messages
365
Reaction score
4
For enabling/disabling you need this opcode:
0B12: 0@ = 0@ XOR 1
It takes the variable "0@" and returns a value of 0/1 everytime you use it (false/true)
Here's how it's done:

if
0ADC: test_cheat "SPACECAKE" //check if user types "SPACECAKE"
then
0B12: 0@ = 0@ XOR 1 //so everytime user types "SPACECAKE", the 0@ variable is either gonna return 0 or 1.
if
0@ == 1 //check if var is true
then
//stuff when enabled
else //when var is false
//stuff when disabled
end
end
 

PlasticBottle

Active member
Joined
Jul 13, 2016
Messages
162
Reaction score
1
Oh, thanks, now I get it, I thought I had to put a test cheat to enable, them another to disable, and I was confused cause I didn't know where o put the disable one.
Well thanks anyway, I'll try it when I'm on my PC ^^
 
Status
Not open for further replies.
Top