Difference between revisions of "Chrono Cross Fieldscript Research"
m |
|||
Line 18: | Line 18: | ||
===5A - Mapjump=== | ===5A - Mapjump=== | ||
− | Memory Layout: | + | Memory Layout:<br> |
<table border = 1> | <table border = 1> | ||
<td>0x5A</td><td>M</td><td>P</td> | <td>0x5A</td><td>M</td><td>P</td> | ||
Line 26: | Line 26: | ||
const/var P - 16-bit<br> | const/var P - 16-bit<br> | ||
Mapjump to map M using map parameter P. | Mapjump to map M using map parameter P. | ||
+ | |||
+ | ===7E - Set Movie=== | ||
+ | Memory Layout:<br> | ||
+ | <table border = 1> | ||
+ | <td>0x7E</td><td>N</td> | ||
+ | </table> | ||
+ | Arguments: | ||
+ | const/var N - 16 bit<br> | ||
+ | Sets movie to be played to N. | ||
+ | |||
+ | ===7F - Play movie=== | ||
+ | Memory layout: | ||
+ | <table border = 1> | ||
+ | <td>0x7F</td> | ||
+ | </table> | ||
+ | Play movie set by command 7E. | ||
+ | |||
+ | ===88 - Play song=== | ||
+ | Memory layout:<br> | ||
+ | <table border = 1> | ||
+ | <td>0x88</td><td>N</td> | ||
+ | </table> | ||
+ | Arguments: | ||
+ | const/var N - 16 bit<br> | ||
+ | Play song N. | ||
+ | |||
+ | ===9E Set Dialog Portrait=== | ||
+ | Memory layout: | ||
+ | <table border = 1> | ||
+ | <td>0x9E88</td><td>N</td> | ||
+ | </table> | ||
+ | Arguments: | ||
+ | const/var N - 16 bit<br> | ||
+ | Sets entity's dialog portrait to N. | ||
===BB - Item give/take=== | ===BB - Item give/take=== |
Revision as of 08:14, 24 December 2008
Currently identified commands :
Contents
00 - Return/Halt
Self explanatory
01 GoTo
Memory layout:
0x01 | N |
Arguments:
N - 16 bit integer.
Goes to offset N in the fieldscript.
0F - Load NPC model
- 0F xx 80* - Load NPC model xx
5A - Mapjump
Memory Layout:
0x5A | M | P |
Arguments:
const/var M - 16-bit
const/var P - 16-bit
Mapjump to map M using map parameter P.
7E - Set Movie
Memory Layout:
0x7E | N |
Arguments:
const/var N - 16 bit
Sets movie to be played to N.
7F - Play movie
Memory layout:
0x7F |
Play movie set by command 7E.
88 - Play song
Memory layout:
0x88 | N |
Arguments:
const/var N - 16 bit
Play song N.
9E Set Dialog Portrait
Memory layout:
0x9E88 | N |
Arguments:
const/var N - 16 bit
Sets entity's dialog portrait to N.
BB - Item give/take
Memory layout:
0xBB | A | N |
Arguments:
const byte A
const/var N - 16-bit
If A is not 0, then an item will be taken away. Otherwise, an item is added to your inventory. N determines what item is involved. By default, it's a normal item. If bit 0x200 is set, the item will be an Element. If 0x400 is set, the item will be a key item.
(In-progress)