[King] MOV/INC variables in King files?

BoomBoom

Dedicated Member
Dedicated Member
Aug 16, 2013
108
9
44
Found a script that uses the following

Mov B1
Mov Z74 0
Mov Z75 0
Mov Z76 50
Mov Z77 50
Mov Z78 50
Mov Z79 50
Mov N10 0
Mov N30 0
Mov N20 0
Mov N21 0
Mov N22 50
Mov N30 300000
Mov N31 300
Mov N32 50000
Mov N33 6
Mov N40 0
Mov N50 0
Mov N60 0
Mov N61 0

However these don't work with King files.

Online I found a Chinese king guide posted a few years ago

变量 ;变量用字母表示,在程序中可以赋任何数据 名称只限于A0-A9字符型 B0-B9字符型 D0-D9数字型 P0-P9数字型
S0-S9数字型
服务器共享变量 N0-N9 数字型 B1-B9 字符型
#Define N0{START} N0
#Define N1{WEDDING} N1
#Define N3{TIME} N3
#Define N4{TRY} N4
#Define N5{WAITINGTIMEOUT} N5
#Define N6{MAN} N6
#Define N7{GIRL} N7
#Define B1{MANNAME} B1
#Define B2{GIRLNAME} B2
#Define B3{INPUTGIRLNAME} B3
mov 变量 数值 ;给变量赋值 A0-A9字符型 B0-B9字符型 D0-D9数字型
mov A0 字符
mov D0 数字




Does anyone know of any more that support over 10 values
 

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
97
135
UK
I don't know what these are however your main variables are A0 to A9 and D0 to D9. They should work; there was some stuff I done a long time ago with Z and N but can't remember what.

Mostly A0-A9 are strings/ mixed values.
D0-D9 are integer values (i'm not sure if there is any benefit doing this or whether it is just convention).
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
This should be in NPC help section - there is a thread in there with "All in one thread help"
Ok here is a list :

N0 - N9 Integer Value = -2147483648..2147483647 (Server Global)
S0 - S1 Singel Value = -255..255 (Script Global)
D0 - D9 Digit Value = -2147483648..2147483647 (Script Global)
P0 - P9 Integer Value = -2147483648..2147483647 (Function Local)
A0 - A9 ASCII Value = A..Z (Script Global)
B0 - B9 ASCII Value = A..Z (Server Global)

P9 P0 A0 A9 D0 D9 = Command Use <-->
You can use all !!
The Most Problem I have see with the Scripts N and B Variables Uset for some
thinks in the most used Scripts, Problem : Player_A Use eg. the Integral Sys
and Player_B same to the same Time, both use the same. The Effect is
Player_A overwrite the Value from Player_B, Player_B has the Value from
Player_A ! You understand this ? I belive now some will unite clearly. ^^

Regards Coly
 
Upvote 0