Difference between revisions of "AGIWiki/Memory and Script"

Jump to navigation Jump to search
m
Line 164: Line 164:
|}
|}


==== Script Item Types ====
There are nine resource activities that are tracked in the AGI script:
{| border="1" cellpadding="5" cellspacing="5" style="border-collapse: collapse; border-style: hidden;"
|
<center>'''Script Activity #'''</center>
|
<center>'''AGI Command'''</center>
|-
|
<center>0</center>
| height="5" |
<center>load.logic</center>
|-
|
<center>1</center>
|
<center>load.view</center>
|-
|
<center>2</center>
|
<center>load.pic</center>
|-
|
<center>3</center>
|
<center>load.sound</center>
|-
|
<center>4</center>
|
<center>draw.pic</center>
|-
|
<center>5</center>
|
<center>add.to.pic*</center>
|-
|
<center>6</center>
|
<center>discard.pic</center>
|-
|
<center>7</center>
|
<center>discard.view</center>
|-
|
<center>8</center>
|
<center>overlay.pic</center>
|}
<nowiki>*</nowiki>''add.to.pic'' actually uses 4 script table entries (total of eight bytes) as follows:
: byte 0: script activity number
: byte 1: not used
: byte 2: view number
: byte 3: loop number
: byte 4: cel number
: byte 5: x position
: byte 6: y position
: byte 7: priority
=== Loading/Discarding Any Number of Times ===
=== Loading/Discarding Any Number of Times ===


885

edits

Navigation menu