You are not logged in.
// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
{$VERSION 3.1.0027}
{$CLEO .cs}
//-------------MAIN---------------
03A4: name_thread 'DANCE'
:DANCE_11
0001: wait 0 ms
00D6: if
0256: player $PLAYER_CHAR defined
004D: jump_if_false @DANCE_11
0AB0: key_pressed 90
0002: jump @DANCE_42
:DANCE_42
0001: wait 0 ms
04ED: load_animation "DANCING"
0002: jump @DANCE_80
:DANCE_80
04EE: animation "DANCING" loaded
004D: jump_if_false @DANCE_42
0002: jump @DANCE_118
00D6: if
:DANCE_118
0611: actor $PLAYER_CHAR performing_animation "DAN_LOOP_A"
0611: actor $PLAYER_CHAR performing_animation "DNCE_M_A"
0611: actor $PLAYER_CHAR performing_animation "DNCE_M_B"
0611: actor $PLAYER_CHAR performing_animation "DNCE_M_C"
0611: actor $PLAYER_CHAR performing_animation "DNCE_M_D"
0611: actor $PLAYER_CHAR performing_animation "DNCE_M_E"
0002: jump @DANCE_237
:DANCE_237
0001: wait 0 ms
04EF: release_animation "DANCING"
0002: jump @DANCE_11
Pls help me!!!
Offline
You can install Scmlog from cleo.sannybuilder.com to define reasons of script mistakes.
Mistakes, which I found:1.
0AB0: key_pressed 90 0002: jump @DANCE_42 :DANCE_42
There jump to :DANCE_42 will be performed always. So, you should replace with
0AB0: key_pressed 90 jf @DANCE_11 :DANCE_42
2.
:DANCE_42 0001: wait 0 ms 04ED: load_animation "DANCING" 0002: jump @DANCE_80 :DANCE_80 04EE: animation "DANCING" loaded 004D: jump_if_false @DANCE_42
a)Command 0002: jump @DANCE_80 is unuseful b) you load animation again and again until it will be loaded. You should load animation only one time - before using:
:DANCE_42 04ED: load_animation "DANCING" :DANCE_80 wait 0 04EE: animation "DANCING" loaded 004D: jump_if_false @DANCE_80
3.Delete ":DANCE_118" after "if".
4. 0611 is used for check - is actor performing animation. For perform animation you should use 0605.
Example: if "Shift" pressed - actor will perform animation:
{$CLEO .cs} wait 0 while true repeat wait 0 until player.Defined($PLAYER_CHAR) repeat wait 0 until 0AB0: key_pressed 0x10 // Shift 04ED: load_animation "POOL" repeat wait 0 until 04EE: animation "POOL" loaded 0605: actor $PLAYER_ACTOR perform_animation_sequence "POOL_SHORT_SHOT" from_file "POOL" 4.0 loop 0 0 0 0 -1 ms while 0AB0: key_pressed 0x10 // Shift wait 0 end end
Last edited by Den_spb (06-12-2010 22:26)
Offline
Thanks for your help!!
Do you know a website which teach people about the cleo??
I want to learn more about it...
Offline
1. Not the cleo. CLEO.
2. You are here
Offline