CLEO Help short question

CLEO related
Status
Not open for further replies.

GoodMan

Active member
Joined
Jun 4, 2014
Messages
142
Reaction score
0
I have a short question.

Is there a way to bypass sanny builder's max limit from ''if and'' because i have a lot of if and check i feel like i can make it look better. as you already know, ''if and'' supports three lines as maximum. and ''if or'' supports only 8. I wonder how can i do that by compiling the script with notepad++ or any other program?
If yes, which plugin for notepad++ is what does this? so i can take a look at it, thaks ugbase


here is my code:
Code:
                    if and
                    044B:   actor 30@ on_foot
                    8818: not actor 30@ in_air
                    82D8: not actor 30@ current_weapon == 46
                    then
                    if and
                    8611:  actor 30@ performing_animation "FALL_COLLAPSE"
                    8611:  actor 30@ performing_animation "FALL_GLIDE"
                    8611:  actor 30@ performing_animation "FALL_FALL"
                    then
                    if and
                    0611:  actor 30@ performing_animation "JUMP_LAUNCH"
                    0611:  actor 30@ performing_animation "JUMP_LAUNCH_R"
                    0611:  actor 30@ performing_animation "JUMP_GLIDE"
                    then
                    //do something 
                    end
                    end
                    end
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,151
Solutions
5
Reaction score
893
Location
Lithuania
Just COPY PASTE...

[shcode=cpp]
{$CLEO .cs}

0000:

wait 10000


WHILE TRUE
wait 0

if and
044B: actor 30@ on_foot
8818: not actor 30@ in_air
82D8: not actor 30@ current_weapon == 46
then
if and
8611: actor 30@ performing_animation "FALL_COLLAPSE"
8611: actor 30@ performing_animation "FALL_GLIDE"
8611: actor 30@ performing_animation "FALL_FALL"
then
if and
0611: actor 30@ performing_animation "JUMP_LAUNCH"
0611: actor 30@ performing_animation "JUMP_LAUNCH_R"
0611: actor 30@ performing_animation "JUMP_GLIDE"
then
//do something
end
end
end

if and
044B: actor 30@ on_foot
8818: not actor 30@ in_air
82D8: not actor 30@ current_weapon == 46
then
if and
8611: actor 30@ performing_animation "FALL_COLLAPSE"
8611: actor 30@ performing_animation "FALL_GLIDE"
8611: actor 30@ performing_animation "FALL_FALL"
then
if and
0611: actor 30@ performing_animation "JUMP_LAUNCH"
0611: actor 30@ performing_animation "JUMP_LAUNCH_R"
0611: actor 30@ performing_animation "JUMP_GLIDE"
then
//do something
end
end
end

if and
044B: actor 30@ on_foot
8818: not actor 30@ in_air
82D8: not actor 30@ current_weapon == 24
then
if and
8611: actor 30@ performing_animation "FALL_COLLAPSE"
8611: actor 30@ performing_animation "FALL_GLIDE"
8611: actor 30@ performing_animation "FALL_FALL"
then
if and
0611: actor 30@ performing_animation "JUMP_LAUNCH"
0611: actor 30@ performing_animation "JUMP_LAUNCH_R"
0611: actor 30@ performing_animation "JUMP_GLIDE"
then
//do something
end
end
end

if and
044B: actor 30@ on_foot
8818: not actor 30@ in_air
82D8: not actor 30@ current_weapon == 31
then
if and
8611: actor 30@ performing_animation "FALL_COLLAPSE"
8611: actor 30@ performing_animation "FALL_GLIDE"
8611: actor 30@ performing_animation "FALL_FALL"
then
if and
0611: actor 30@ performing_animation "JUMP_LAUNCH"
0611: actor 30@ performing_animation "JUMP_LAUNCH_R"
0611: actor 30@ performing_animation "JUMP_GLIDE"
then
//do something
end
end
end

END
[/shcode]
 
Status
Not open for further replies.
Top