Difference between revisions of "Chrono Cross Fieldscript Research"

From Chrono Compendium
Jump to: navigation, search
Line 33: Line 33:
 
</table>
 
</table>
 
Arguments:<br>
 
Arguments:<br>
const A - If set to 0x01, takes away an item.<br>
+
const A<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<br>
 +
 
 +
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)
 
(In-progress)

Revision as of 01:57, 23 December 2008

Currently identified commands :

00 - Return/Halt

Self explantory

01 GoTo

Memory layout:

0x01N

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:

0x5AMP

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:

0xBBAN

Arguments:
const 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)