Hello World - Your First Codes

Hello,this is BlackHat

today i will explain how to make your first codes and your first script < yes yes there s codes in the video :p


www.youtube.com/watch?v=TZx5AZ_IxWg


this will show you the basic of codes and structures

the script:

Code:
{$CLEO}

0000: NOP


// this is comment ...

{this
is
comment 
also
}
:MAIN
wait 0
if and
056D:   actor $PLAYER_ACTOR defined
0AB0: 49 //key 1 pressed?
jf @MAIN
0332: set_actor $PLAYER_ACTOR bleeding 1  
jump @MAIN
         


thanks for following my tutorials series ..
 

laurrence_nsc

New member
Joined
Apr 7, 2014
Messages
3
Reaction score
0
Re: 3)Hello World - Your First Codes -TUT

Hi, I have a question.

this thing $PLAYER_ACTOR

must it be in capital letters or can it be in small letters like this too? -> $player_actor
 

NoJustNo

Active member
Joined
Jul 26, 2014
Messages
178
Reaction score
0
Re: 3)Hello World - Your First Codes -TUT

laurrence_nsc link said:
Hi, I have a question.

this thing $PLAYER_ACTOR

must it be in capital letters or can it be in small letters like this too? -> $player_actor

it doesnt really matter ... but it shall be $PLAYER_ACTOR ... That Will Save That You are A Player In The Code "$Player_Actor" and you will use it when you will apply / do things to your player. which you saved him at "$player_actor" so its kinda neccessary .

depends on how you do the " 056D:  actor $PLAYER_ACTOR defined" , if u do it 2@ it will save at 2@ .. if you do it "056D:  actor $me_thegaylord defined" then it will save at me_thegaylord ...and u can use actions like "####: Set_player_infinite_run $me_thegaylord" and it will set player "$me_thegaylord" for infinite run.


this was just an example . it doesnt exist: "####: Set_player_infinite_run $me_thegaylord"
 

blackHat

Expert
Joined
Jul 28, 2013
Messages
930
Reaction score
2
Re: 3)Hello World - Your First Codes -TUT

laurrence_nsc link said:
Hi, I have a question.

this thing $PLAYER_ACTOR

must it be in capital letters or can it be in small letters like this too? -> $player_actor

In sannybuilder scripting is not case sensitive

So u can use it with capital letters and in small letters

You can even define actor like this
Code:
056D:   actor $PLAYER_ACTOR defined
And then use it like this
Code:
0332: set_actor $player_actor bleeding 1 

So there is no problem :)
 

laurrence_nsc

New member
Joined
Apr 7, 2014
Messages
3
Reaction score
0
Re: 3)Hello World - Your First Codes -TUT

I see, thanks for the reply guys..
 

blackHat

Expert
Joined
Jul 28, 2013
Messages
930
Reaction score
2
Re: 3)Hello World - Your First Codes -TUT

laurrence_nsc link said:
I see, thanks for the reply guys..
np :D

thank you for following my tutorials :)
 

zezkin

New member
Joined
Aug 24, 2014
Messages
3
Reaction score
0
Re: 3)Hello World - Your First Codes -TUT

Thanks u  :youdontsay:  U are awesome..thank u alot..a very cool start. :somuchwin:
 
Top