Difference between revisions of "Chrono Cross Fieldscript Research"
From Chrono Compendium
Line 8: | Line 8: | ||
<td>0x01</td><td>N</td> | <td>0x01</td><td>N</td> | ||
</table> | </table> | ||
− | Arguments: N - 16 bit integer. | + | Arguments:<br> |
+ | N - 16 bit integer. | ||
Goes to offset N in the fieldscript. | Goes to offset N in the fieldscript. | ||
Line 14: | Line 15: | ||
*0F xx 80* - Load NPC model xx | *0F xx 80* - Load NPC model xx | ||
+ | |||
+ | |||
+ | ===5A - Mapjump=== | ||
+ | Memory Layout: | ||
+ | <table border = 1> | ||
+ | <td>0x5A</td><td>M</td><td>P</td> | ||
+ | </table> | ||
+ | Arguments:<br> | ||
+ | const/var M - 16-bit<br> | ||
+ | const/var P - 16-bit<br> | ||
+ | Mapjump to map M using map parameter P. | ||
===BB - Item give/take=== | ===BB - Item give/take=== | ||
Line 20: | Line 32: | ||
<td>0xBB</td><td>A</td><td>N</td> | <td>0xBB</td><td>A</td><td>N</td> | ||
</table> | </table> | ||
− | Arguments: | + | Arguments:<br> |
const A - If set to 0x01, takes away an item.<br> | const A - If set to 0x01, takes away an item.<br> | ||
const/var N - 16-bit, determines item involved. 0x200 means Element, 0x400 means Key Item, and by default is regular item. | const/var N - 16-bit, determines item involved. 0x200 means Element, 0x400 means Key Item, and by default is regular item. | ||
(In-progress) | (In-progress) |
Revision as of 01:49, 23 December 2008
Currently identified commands :
00 - Return/Halt
Self explantory
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.
BB - Item give/take
Memory layout:
0xBB | A | N |
Arguments:
const A - If set to 0x01, takes away an item.
const/var N - 16-bit, determines item involved. 0x200 means Element, 0x400 means Key Item, and by default is regular item.
(In-progress)