Open main menu

Difference between revisions of "AGI/Specifications/Other"

→‎Fan-Made Extensions: -- syntax highlighting
(Hyperlinked shake.screen-command's name from AGIPAL-section to another part of the AGI specification.)
(→‎Fan-Made Extensions: -- syntax highlighting)
Line 494: Line 494:
AGIPAL uses the [[AGI/Specifications/Logic#Other_commands | shake.screen]] command to call an external file which changes the palette. The range of palette files is 100-109.
AGIPAL uses the [[AGI/Specifications/Logic#Other_commands | shake.screen]] command to call an external file which changes the palette. The range of palette files is 100-109.


<pre>shake.screen(101)</pre>
<syntax type="C++">
shake.screen(101)
</syntax>
 
That command would use the palette in pal.101, instead of shaking the screen 101 times under the AGIPAL interpreter.
That command would use the palette in pal.101, instead of shaking the screen 101 times under the AGIPAL interpreter.


Line 520: Line 523:


Example of use:
Example of use:
<pre>
<syntax type="C++">
v123 = 10
v123 = 10
unknown170(v123)
unknown170(v123)
</pre>
</syntax>
That would load the picture resource number 10 as a 256-color picture resource.
That would load the picture resource number 10 as a 256-color picture resource.
Any variable can be used with unknown170, v123 was just chosen for this example.
Any variable can be used with unknown170, v123 was just chosen for this example.