Anonymous

Changes

From Final Fantasy Inside

FF7/Battle/Battle Scenes/Battle Script

700 bytes added, 20:38, 2 February 2009
m
Some revision/restructuring
There are four actions to be explained when dealing with any opcode in AI script: Arguments, Values to take from the stack, what to do with Arguments and Values, and what to put back on the stack. So to fully understand what is happening a brief explanation of the stack is necessary.
The stack is more-or-less a list of values with different lengths. Only the top of the stack (the most recently added value) can be accessed at any given time, but when that value is accessed it leaves is removed from the top of the stack and the previously added value now becomes the top of the stack. Adding to the stack is called "Pushing" a value and taking a value off is called "Popping". When pushing a value to the stack, the value of the number is pushed followed by the value type. The value type can be one of three different things:
<br/>
<br/>
| Argument of type 03
|-
! style="background:rgb(224,224,224)" align="center" colspan = "4" | Script Jumps(No Pushes)
|-
| 70h
| colspan="3" align="center"| This ends the script
|-
| style="background:rgb(255,255,204);" | 74h| style="background:rgb(255,255,204);" | | style="background:rgb(255,255,204);" | One of any type| style="background:rgb(255,255,204);" | Unknown Effect
|-
| 75h
| Type 02 with only bit in pop turned on (1 << [pop])
|-
|}<p>&nbsp;</p>{| border="1" cellspacing="1" cellpadding="3" align="center" style="border: 1px solid black; border-collapse: collapse;"! style="background:rgb(204,204,204)" align="center" colspan = "4" | Command |-! style="background:rgb(224,224,224)" align="center" | Code! style="background:rgb(224,224,224)" align="center" colspan | Arguments! style="background:rgb(224,224,224)" align= "3center" | CommandsValue(s) to pop
! style="background:rgb(224,224,224)" align="center" | Effect
|-
| 93h
| NULL terminated string
| colspan="2" align = "center"| Displays string
|-
| 94h
| Displays string to debug console, replacing "%d"s with pops
|-
| style="background:rgb(255,255,204);" | A1h| style="background:rgb(255,255,204);" | ?| style="background:rgb(255,255,204);" | ?| style="background:rgb(255,255,204);" | ?
|-
|}
Anonymous user