CLEO Help Auto Activation

CLEO related
Status
Not open for further replies.

JuliusBear

Active member
Joined
Dec 21, 2013
Messages
30
Reaction score
0
How do I put auto activation on a script that already has an activation?
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
You can turn a togglable cleo into one that automaticly activates itself.

Here's a sample :

Code:
:MAIN
wait 0
if and
044B:   actor $PLAYER_ACTOR on_foot
0AB0:   key_pressed 123
else_jump @MAIN
0332: set_actor $PLAYER_ACTOR bleeding 1
jump @MAIN

So the code itself is working as this :
Check if i am standing on foot, and if i am on foot, check also if i pressed F12, if i did, make the actor bleed.

By removing those conditions, you can make it run automaticly :

Code:
:MAIN
wait 1000
0332: set_actor $PLAYER_ACTOR bleeding 1
jump @MAIN

Now i want to take your attention to "wait 1000", it was "wait 0", but if there is "wait 0"
and also right afterwards a command that sets something, it might crash sometimes. So i changed it 1000.

Shortly, remove the lines with 'key_pressed' or 'test_cheat'  :urtheman:
 
Status
Not open for further replies.
Top