CLEO Help Force Break 'WHILE TRUE'

CLEO related
Status
Not open for further replies.

GidanDaniel

Active member
Joined
Feb 22, 2014
Messages
28
Reaction score
0
hey master,
i am stuck with this thing.. could you help me out?
(these code below are just example)
Code:
WHILE TRUE
wait 0
0@ = 0
if
XXXX: key_pressed "123" // Check if User Press F12
then
  if
  0@ == 0
  then
    0@ = 1
  else
    0@ = 0
  end
end
if
0@ == 1
then
//------------------------------------------------------------//
  wait 1000 // 1 sec
  XXXX: set_actor $PLAYER_ACTOR health_to 320
  if
  0@ == 1
  then
    wait 4750 // 4 sec and 750 milisec
    XXXX: set_actor $PLAYER_ACTOR health_to 375
    if
    0@ == 1
    then
      wait 3560 // 3 sec and 560 milisec
      XXXX: set_actor $PLAYER_ACTOR health_to 450
    end
  end
//------------------------------------------------------------//
end
END
the code i mark OR bordered is not work anyway :angry:
the trouble is that i cannot check this '0@' while the code is running :table_flip:

my main target is to check the trigger every 1 code OR make the trigger to force break the code repeat :red_eyes:
 

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
Code:
WHILE TRUE
wait 0
0@ = 0
if
XXXX: key_pressed "123" // Check if User Press F12
then
    if
    0@ == 0
    then
        0@ = 1
    else
    0@ = 0
  end
end
if
0@ == 1
then
//------------------------------------------------------------//
  wait 1000 // 1 sec
  XXXX: set_actor $PLAYER_ACTOR health_to 320
end 
 if
  0@ == 1
  then
      wait 4750 // 4 sec and 750 milisec
      XXXX: set_actor $PLAYER_ACTOR health_to 375
   end    
if
    0@ == 1
    then
      wait 3560 // 3 sec and 560 milisec
      XXXX: set_actor $PLAYER_ACTOR health_to 450
    end
   
  end
//------------------------------------------------------------//
 
Status
Not open for further replies.
Top