H
halkun
Guest
Good news everyone!
I'm working with lasyan3 and he was able to give me a listing of the Scripting Tolkens (Commands) for the field files.
There are over 200 scripting commands. I don't have thier definitions yet, some are hard to decypher and I haven't even dug through the field files to figure out what section conatins the tokens. (In the PSX version, it's the DAT file, which is split into two parts. The text, and then the script that's executed)
Here's a listing of the scripting commands, you read it like this:
num = name | arg
num is the tolken number (The command code)
name is the name of the command
arg is the legnth of the command including arguments. (For example RET is one command with no arguments, so it's 1)
Here are the commands.....
Code: [Select]
Now STARTMAP is the first room in the debug room. Yuffie is there and you have that first menu, here is the code for that room as it's really small.
This is the text section.
Code: [Select]
and this is the script section
Code: [Select]
THANKS LASYAN3!!!!!
Oh, and Gears has been updated.
http://the-afterm.ath.cx/gears/gears.pdf
Oh: One last thing...
Which field file is the first one where the game starts? Not STARTMAP, but where Barret says "C'mon newcomer, follow me"
I'm working with lasyan3 and he was able to give me a listing of the Scripting Tolkens (Commands) for the field files.
There are over 200 scripting commands. I don't have thier definitions yet, some are hard to decypher and I haven't even dug through the field files to figure out what section conatins the tokens. (In the PSX version, it's the DAT file, which is split into two parts. The text, and then the script that's executed)
Here's a listing of the scripting commands, you read it like this:
num = name | arg
num is the tolken number (The command code)
name is the name of the command
arg is the legnth of the command including arguments. (For example RET is one command with no arguments, so it's 1)
Here are the commands.....
Code: [Select]
Code:
00 = RET | 101 = REQ | 302 = REQSW | 303 = REQEW | 304 = PREQ | 305 = PRQSW | 306 = PRQEW | 307 = RETTO | 508 = JOIN | 209 = SPLIT | 150A = SPTYE | 60B = GTPYE | 60C = | 00D = | 00E = DSKCG | 20F = SPECIAL | 210 = gotoNext +<1> | 211 = gotoNextLong +<2> | 312 = gotoPrev -<1> | 213 = gotoPrevLong -<2> | 314 = if UByte(<1>)[<1>] != <1> then(<1>) goto +<1> | 615 = if UByteL(<1>)[<1>] != <1> then(<1>) gotoLong +<2> | 716 = if SWord(<1>)[<2>] != <2> then(<1>) goto +<1> | 817 = if SWordL(<1>)[<2>] != <2> then(<1>) gotoLong +<2> | 918 = if USWord(<1>)[<2>] != <2> then(<1>) goto +<1> | 819 = if USWordL(<1>)[<2>] != <2> then(<1>) gotoLong +<2> | 91A = | 01B = | 01C = | 01D = | 01E = | 01F = | 020 = MINIGAME | 1121 = TUTOR | 222 = BTMD2 | 523 = BTRLD | 324 = wait( time=<2> ) | 325 = NFADE | 926 = BLINK | 227 = BGMOVIE | 228 = KAWAI | 25529 = KAWIW | 12A = PMOVA | 22B = SLIP | 22C = BGPDH | 52D = BGSCR | 72E = WCLS | 22F = WSIZW | 1030 = IF-KEY | 431 = IF-KEYON | 432 = IF-KEYOF | 433 = UC | 234 = PDIRA | 235 = PTURA | 436 = WSPCL | 537 = WNUMB | 838 = STTIM | 639 = GOLD+ | 63A = GOLD- | 63B = CHGLD | 43C = HMPMAX1 | 13D = HMPMAX2 | 13E = MHMMX | 13F = HMPMAX3 | 140 = message( window=<1>, dialog=<1> ) | 341 = MPARA | 542 = MPRA2 | 643 = MPNAM | 244 = | 045 = MP+ | 546 = | 047 = MP- | 548 = ASK | 749 = MENU | 44A = MENU2 | 24B = BTLTB | 24C = | 04D = HP+ | 54E = | 04F = HP- | 550 = window( id=<1>, X=<2>, Y=<2>, W=<2>, H=<2> ) | 1051 = WMOVE | 652 = WMODE | 453 = WREST | 254 = WCLSE | 255 = WROW | 356 = GWCOL | 757 = SWCOL | 758 = ST-ITM | 559 = DL-ITM | 55A = CK-ITM | 55B = SM-TRA | 75C = DM-TRA | 85D = CM-TRA | 105E = SHAKE | 85F = NOP | 160 = MAPJUMP | 1061 = SCRLO | 262 = SCRLC | 563 = SCRLA | 664 = SCR2D | 665 = SCRCC | 166 = SCR2DC | 967 = SCRLW | 168 = SCR2DL | 969 = MPDSP | 26A = VWOFT | 76B = FADE | 96C = FADEW | 16D = IDLCK | 46E = LSTMP | 36F = SCRLP | 670 = battle | 471 = BTLON | 272 = BTLMD | 373 = PGTDR | 474 = GETPC | 475 = PXYZI | 876 = PLUS! | 477 = PLUS2! | 578 = MINUS! | 479 = MINUS2! | 57A = INC! | 37B = INC2! | 37C = DEC! | 37D = DEC2! | 37E = TLKON | 27F = RDMSD | 380 = set byte(<1>)[<1>]=<1> | 481 = SET-WORD | 582 = BIT-ON | 483 = BIT-OFF | 484 = BIT-XOR | 485 = PLUS | 486 = PLUS2 | 587 = MINUS | 488 = MINUS2 | 589 = MUL | 48A = MUL2 | 58B = DIV | 48C = DIV2 | 58D = MOD | 48E = MOD2 | 58F = AND | 490 = AND2 | 591 = OR | 492 = OR2 | 593 = XOR | 494 = XOR2 | 595 = INC | 396 = INC2 | 397 = DEC | 398 = DEC2 | 399 = RANDOM | 39A = LBYTE | 49B = HBYTE | 59C = 2BYTE | 69D = SETX | 79E = GETX | 79F = SEARCHX | 11A0 = PC | 2A1 = CHAR | 2A2 = DFANM | 3A3 = ANIME1 | 3A4 = VISI | 2A5 = XYZI | 11A6 = XYI | 9A7 = XYZ | 9A8 = MOVE | 6A9 = CMOVE | 6AA = MOVA | 2AB = TURA | 4AC = ANIMW | 1AD = FMOVE | 6AE = ANIME2 | 3AF = ANIM!1 | 3B0 = CANIM1 | 5B1 = CANM!1 | 5B2 = MSPED | 4B3 = DIR | 3B4 = TURNGEN | 6B5 = TURN | 6B6 = DIRA | 2B7 = GETDIR | 4B8 = GETAXY | 5B9 = GETAI | 4BA = ANIM!2 | 3BB = CANIM2 | 5BC = CANM!2 | 5BD = ASPED | 4BE = | 0BF = CC | 2C0 = JUMP | 11C1 = AXYZI | 8C2 = LADER | 15C3 = OFST | 12C4 = OFSTW | 1C5 = TALKR | 3C6 = SLIDR | 3C7 = SOLID | 2C8 = PRTYP | 2C9 = PRTYM | 2CA = PRTYE | 4CB = IF-PRTYQ | 3CC = IF-MEMBQ | 3CD = MMB+- | 3CE = MMBLK | 2CF = MMBUK | 2D0 = LINE | 13D1 = LINON | 2D2 = MPJPO | 2D3 = SLINE | 16D4 = SIN | 10D5 = COS | 10D6 = TLKR2 | 4D7 = SLDR2 | 4D8 = PMJMP | 3D9 = PMJMP2 | 1DA = AKAO2 | 15DB = FCFIX | 2DC = CCANM | 4DD = ANIMB | 1DE = TURNW | 1DF = MPPAL | 11E0 = BGON | 4E1 = BGOFF | 4E2 = BGROL | 3E3 = BGROL2 | 3E4 = BGCLR | 3E5 = STPAL | 5E6 = LDPAL | 5E7 = CPPAL | 5E8 = RTPAL | 7E9 = ADPAL | 10EA = MPPAL2 | 10EB = STPLS | 5EC = LDPLS | 5ED = CPPAL2 | 8EE = RTPAL2 | 8EF = ADPAL2 | 11F0 = MUSIC | 2F1 = Sound | 5F2 = AKAO | 14F3 = MUSVT | 2F4 = MUSVM | 2F5 = MULCK | 2F6 = BMUSC | 2F7 = CHMPH | 4F8 = PMVIE | 2F9 = MOVIE | 1FA = MVIEF | 3FB = MVCAM | 2FC = FMUSC | 2FD = CMUSC | 6FE = CHMST | 3FF = GAMEOVER | 1
Now STARTMAP is the first room in the debug room. Yuffie is there and you have that first menu, here is the code for that room as it's really small.
This is the text section.
Code: [Select]
Code:
000------------------------------------------------ NEXT{EOL} MENU ON{EOL} BATTLE LOCK{EOL} BATTLE UNLOCK{EOL} MOVIE LOCK{EOL} MOVIE UNLOCK{EOL} GLOBAL RESET{EOL} FULL NAME{EOL} NEW START{EOL} EXIT{STOP}001------------------------------------------------ BACK{EOL} SOUND RESET{EOL} FULL MATERIA{EOL} BATTLE999{EOL} EXIT{STOP}002------------------------------------------------MMMMMMMMMMMMMMM{STOP}003------------------------------------------------WWWWWWWWWWWWWWW{STOP}004------------------------------------------------MMMMMMMMMMMMMMM{STOP}005------------------------------------------------WWWWWWWWWWWWWWW{STOP}006------------------------------------------------MMMMMMMMMMMMMMM{STOP}007------------------------------------------------WWWWWWWWWWWWWWW{STOP}008------------------------------------------------MMMMMMMMMMMMMMM{STOP}009------------------------------------------------WWWWWWWWWWWWWWW{STOP}00A------------------------------------------------MMMMMMMMMMMMMMM{STOP}
and this is the script section
Code: [Select]
Code:
****** Section n°0 (dic) Script n° 0 ******000 : PRTYP ( 00 )002 : RET003 : RET ****** Section n°0 (dic) Script n° 1 ******000 : RET ****** Section n°1 (cloud) Script n° 0 ******000 : CHAR ( 00 )002 : PC ( 00 )004 : RET005 : XYZI ( 00, 00, 00, 00, 00, 00, 00, 00, 01, 00 )010 : RET ****** Section n°1 (cloud) Script n° 1 ******000 : RET ****** Section n°2 (tifa) Script n° 0 ******000 : CHAR ( 01 )002 : PC ( 02 )004 : RET005 : RET ****** Section n°2 (tifa) Script n° 1 ******000 : RET ****** Section n°3 (cid) Script n° 0 ******000 : CHAR ( 02 )002 : PC ( 08 )004 : RET005 : RET ****** Section n°3 (cid) Script n° 1 ******000 : RET ****** Section n°4 (yufi) Script n° 0 ******000 : CHAR ( 03 )002 : XYZI ( 00, 00, B6, FF, 7E, FF, 00, 00, 64, 00 )00D : DIR ( 00, 60 )010 : SLIDR ( 00, 01 )013 : RET014 : RET ****** Section n°4 (yufi) Script n° 1 ******000 : window( id=01, X=0000, Y=0000, W=008A, H=00A9 )00A : ASK ( 05, 01, 00, 00, 09, 00 )011 : gotoNext +15013 : window( id=01, X=0000, Y=0000, W=0081, H=0059 )01D : ASK ( 05, 01, 01, 00, 04, 00 )024 : gotoNextLong +009D027 : if UByteL(50)[00] != 00 then(00) gotoLong +000702E : gotoPrev -1B030 : gotoNextLong +0090033 : if UByteL(50)[00] != 01 then(00) gotoLong +000A03A : SET-WORD ( 20, 1E, 00, 00 )03F : gotoNextLong +0081042 : if UByteL(50)[00] != 02 then(00) gotoLong +0008049 : SPECIAL ( FB )04B : REQ ( 11, 74 )04E : RET04F : if UByteL(50)[00] != 03 then(00) gotoLong +0008056 : SPECIAL ( FB )058 : RET059 : gotoNextLong +006705C : if UByteL(50)[00] != 04 then(00) gotoLong +0008063 : SPECIAL ( FC )065 : REQ ( 11, 5A )068 : RET069 : if UByteL(50)[00] != 05 then(00) gotoLong +0008070 : SPECIAL ( FC )072 : RET073 : gotoNextLong +004D076 : if UByteL(50)[00] != 06 then(00) gotoLong +000707D : SPECIAL ( FE )07F : gotoNextLong +0041082 : if UByteL(50)[00] != 07 then(00) gotoLong +0029089 : SPECIAL ( FD )08B : RET08C : REQSW ( 0F, FD )08F : REQ ( 03, 0F )092 : CMUSC ( 02, 04, 0F, FD, 03 )098 : PRQSW ( 0F, FD )09B : PRQSW ( 06, 0F )09E : CMUSC ( 06, 07, 0F, FD, 08 )0A4 : JOIN ( 0F )0A6 : CMUSC ( 04, 0A, 0F, FD, 07 )0AC : SPLIT ( 11, 13, 00, 15, 50, 00, 08, 00, 0C, 00, 60, 74, 00, 00 )0BB : RET0BC : RET0BD : RET0BE : RET0BF : RET0C0 : RET0C1 : RET0C2 : if UByteL(50)[00] != 00 then(00) gotoLong +00080C9 : gotoPrevLong -00C90CC : gotoNextLong +01020CF : if UByteL(50)[00] != 01 then(00) gotoLong +00DF0D6 : AKAO ( 00, 00, 00, C0, 7F, 00, 00, 00, 00, 00, 00, 00, 00 )0E4 : AKAO ( 00, 00, 00, A0, 7F, 00, 00, 00, 00, 00, 00, 00, 00 )0F2 : AKAO ( 00, 00, 00, A1, 7F, 00, 00, 00, 00, 00, 00, 00, 00 )100 : AKAO ( 00, 00, 00, A2, 7F, 00, 00, 00, 00, 00, 00, 00, 00 )10E : AKAO ( 00, 00, 00, A3, 7F, 00, 00, 00, 00, 00, 00, 00, 00 )11C : AKAO2 ( 00, 00, 00, C8, FF, 7F, 00, 00, 00, 00, 00, 00, 00, 00 )12B : AKAO2 ( 00, 00, 00, E4, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 )13A : AKAO2 ( 00, 00, 00, B0, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 )149 : AKAO2 ( 00, 00, 00, B1, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 )158 : AKAO2 ( 00, 00, 00, B2, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 )167 : AKAO2 ( 00, 00, 00, B3, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 )176 : MUSIC ( 00 )178 : AKAO ( 00, 00, 00, 28, 3F, 00, 00, 00, 00, 00, 00, 00, 00 )186 : AKAO ( 00, 00, 00, 29, 3F, 00, 00, 00, 00, 00, 00, 00, 00 )194 : AKAO ( 00, 00, 00, 2A, 3F, 00, 00, 00, 00, 00, 00, 00, 00 )1A2 : AKAO ( 00, 00, 00, 2B, 3F, 00, 00, 00, 00, 00, 00, 00, 00 )1B0 : gotoNextLong +001E1B3 : if UByteL(50)[00] != 02 then(00) gotoLong +000B1BA : SPECIAL ( F9 )1BC : SPECIAL ( F9 )1BE : SPECIAL ( F9 )1C0 : gotoNextLong +000E1C3 : if UByteL(50)[00] != 03 then(00) gotoLong +00071CA : battle ( 00, E7, 03 )1CE : MHMMX ****** Section n°4 (yufi) Script n° 2 ******000 : RET
THANKS LASYAN3!!!!!
Oh, and Gears has been updated.
http://the-afterm.ath.cx/gears/gears.pdf
Oh: One last thing...
Which field file is the first one where the game starts? Not STARTMAP, but where Barret says "C'mon newcomer, follow me"