GTA CLEO 制作教程(4)

$
is used to
mark a GLOBAL VARIABLE
是用来标记一个全局变量

The stuff in
the game needs a identity for registration to can handle with
it
在游戏中的东西需要一个能够处理登记与它的身份

The identities
can be variable, for exemble by calculating
something
的身份,可变量,通过计算的东西exemble

The global
variable is builded with the $ sign and aa letter or a word or a
number or both
全局变量是千秋的$符号和AA字母或一个字或一个数字或两者

But using
global variables in Cleo scripts can cause heavy bugs or
crashs
但是,使用克里奥脚本全局变量可以造成严重错误或crashs

only
$PLAYER_CHAR, $PLAYER_ACTOR, $ONMISSION are
valid
只有PLAYER_CHAR,$ PLAYER_ACTOR,$
ONMISSION是有效的

global, local,
whats that ?
全球,地区,whats呢?

Global
variables are used in the main.scm to communicate between different
threads
全局变量用于main.scm在不同的线程之间的通信

Local
variables are also used in the main.scm but they can not
communicate between different
threads
局部变量也用于main.scm但他们却无法不同的线程之间的通信

You can create
a car with a LOCAL variable in a thread as [email protected] and also with [email protected] in
an other thread of main.scm
您可以创建在一个为1 @线程局部变量的汽车,并与1
@在一个main.scm其他线程

[email protected] =
create_car
1 @ = create_car

You have then
2 different cars, commanded from 2 different
threads
然后,您有两个不同的车,从2个不同的线程指挥

You can create
a car with GLOBAL variable in a thread but dont use again the same
global to create it again in an other
thread.
您可以创建一个带有全局变量在线程但是dont再次使用相同的全局来创建另一个线程在再次汽车。

$mycar5 =
create_car
$ mycar5 = create_car

But you can
command the car from an other thread of the main.scm by using a
GLOBAL variable
但是你可以命令从一个main.scm其他线程使用一个全局变量的车

At
least:
至少:

The GLOBAL
variables are storable, the LOCAL variables
not
全局变量可存储的不是局部变量

But dont using
global variables in Cleo scripts because they can cause heavy bugs
or crashs
但是dont脚本中使用克里奥全局变量,因为它们可以造成严重错误或crashs

only
$PLAYER_CHAR, $PLAYER_ACTOR, $ONMISSION are
valid
只有PLAYER_CHAR,$ PLAYER_ACTOR,$
ONMISSION是有效的

#
marks the
connected entry as filename of a loadable
model
标记为可加载的文件名连入模型





CODE
代码
0247:
load_model #BMYCG
0247:load_model#BMYCG

0247:
load_model #HMYCM
0247:load_model#HMYCM

0247:
load_model #SWATVAN
0247:load_model#SWATVAN

0247:
load_model #M4
0247:load_model#用m4

0247:
load_model #COLT45
0247:load_model#COLT45


For Cleo can
only be used models which are defined in vehicles.ide, peds.ide or
default.ide
对于克莱奥只能用于这是vehicles.ide,peds.ide或default.ide定义模型

Other models
needs to use their ID number
其他型号需要使用身份证号码

‘…’
‘…’

short string
to insert letters or numbers like GXT entrynames or names of
special IPL entries
短字符串插入字母或类似GXT
entrynames或特殊彩光作品名称号码





CODE
代码
03A4:
name_thread ‘MAIN’
03A4:name_thread’主’

0917:
audio_zone ‘BEACH’ enable_sound 0

0917:audio_zone’海滩’enable_sound 0

00BA:
show_text_styled GXT ‘INTRO_1’ time 1000 style 2

00BA:show_text_styled GXT’INTRO_1时间1000风格2

0299:
activate_garage ‘MODLAST’

0299:activate_garage’MODLAST’

07FB:
set_interior ‘GYM1’ access 1  // Ganton Gym

07FB:set_interior’GYM1’进入1 / /甘顿体育馆

0390:
load_txd_dictionary ‘LD_BEAT’

0390:load_txd_dictionary’LD_BEAT’

076C: set_zone
‘GAN1’ gang 1 density_to 25
076C:set_zone’GAN1’刚1 density_to
25

“…”
“…”

long string to
insert letters or numbers like animation- and IFP file names,
bodypart names, particel names,
etc…
长字符串插入字母或数字等动画和因卡塔自由党的文件名,正文部分名称,particel姓名等..





CODE
代码
087B:
set_player $PLAYER_CHAR clothes_texture “PLAYER_FACE” model “HEAD”
body_part 1
087B:set_player $ PLAYER_CHAR
clothes_texture“PLAYER_FACE”模型“人头”body_part 1

038F:
load_texture “DOWN” as 1 // Load dictionary with 0390 first

038F:load_texture“向下”的1 / /加载字典与0390第一

0605: actor -1
perform_animation_sequence “DAN_LOOP_A” IFP_file “DANCING” 4.0 loop
1 0 0 0 time -1 // versionA
0605:演员-1
perform_animation_sequence“DAN_LOOP_A”IFP_file“跳舞”4.0环路1 0 0 0时-1 /
/ versionA

0674:
set_car_model #GREENWOO numberplate “GROVE4L_”

0674:set_car_model#GREENWOO numberplate“GROVE4L_”

0245:
set_actor [email protected] walk_style_to “GANG2”
0245:set_actor 5 @
walk_style_to“刚2”

064B: [email protected] =
create_particle “EXPLOSION_MOLOTOV” at 2010.0 -1610.0 16.5 type
1
064B:25 @ = create_particle“EXPLOSION_MOLOTOV于2010.0
-1610.0 16.5 1型”

To set entries
of strings equal to variable names must be used special opcodes and
extended variable
signs
要设置相同的字符串变量名的参赛作品必须使用的特殊操作码和扩展可变标志

05AA:
05AA:

05A9:
05A9:

06D2:
06D2:

06D1:
06D1:

furthermore
can strings also replaced with variables by using extended variable
signs
此外还可以用变量替换使用扩展可变标志串

@s @秒

local-string-variable
-本地字符串变量





CODE
代码

05AA: [email protected] =
‘FEM_OK’
05AA:@第5 =’FEM_OK’

00BC:
show_text_highpriority GXT [email protected] time 10000 flag 1

00BC:show_text_highpriority GXT 5 @秒的时间10000旗1

新加坡元

global-string-variable
-全球字符串变量

Attension by
using Global vars in cleo scripts, it can cause bugs or
crashes!
通过使用克里奥全球瓦尔Attension脚本,它会导致错误或崩溃!





CODE
代码
05A9:
s$Actor_Speech_GXT_Reference = ‘CATX_UA’  //
~z~Carl, you are af*cking idiota!

05A9:新元Actor_Speech_GXT_Reference =’CATX_UA’/ /?Ž?卡尔,你是自动对焦* cking
idiota!

00BC:
show_text_highpriority GXT s$Actor_Speech_GXT_Reference time 10000
flag 1
00BC:show_text_highpriority
GXT新元Actor_Speech_GXT_Reference时间10000旗1

05AA: [email protected] =
s$Actor_Speech_GXT_Reference
05AA:5 @商S
=新元Actor_Speech_GXT_Reference

00BC:
show_text_highpriority GXT [email protected] time 10000 flag 1

00BC:show_text_highpriority GXT 5 @秒的时间10000旗1

@v @ v

local-long-string-variable
-本地长字符串变量





CODE
代码
06D2: [email protected]
= “LAPDAN1” // @v = string
06D2:28 @ v =“LAPDAN1”/ / @ v
=字符串

0812: AS_actor
$PLAYER_ACTOR perform_animation “LAPDAN_P” IFP_file [email protected] 1000.0
loopA 0 lockX 0 lockY 0 lockF 1 time -1
0812:AS_actor
$“LAPDAN_P”IFP_file 28 @ v 1000.0 loopA 0 lockX 0则以0 lockF
1次PLAYER_ACTOR perform_animation -1

v$ v $
– global-long
string-variable
-全球长字符串变量

Attension by
using Global vars in cleo scripts, it can cause bugs or
crashes!
通过使用克里奥全球瓦尔Attension脚本,它会导致错误或崩溃!

 



 
Source: New feed

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください