Difference between revisions of "Set.pri.base"
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:AGI Pages]] | ||
The '''set.pri.base''' command adjusts the size of the priority bands on the priority screen. | The '''set.pri.base''' command adjusts the size of the priority bands on the priority screen. | ||
== Syntax == | == Syntax == | ||
− | set.pri.base(byt | + | set.pri.base([[number|byt]] NEWBASE); |
− | == | + | == Remarks == |
− | + | This command adjusts the size of the [[priority bands]]. The height of the base band (priority = 4) is set to '''NEWBASE'''. All other bands from 5 to 14 are then spaced evenly over the remaining area of the screen (Priority 15 is never reachable on screen). | |
− | |||
− | |||
− | This command adjusts the size of the [[priority bands]]. The height of the base band (priority = 4) is set to | ||
The default height of the base band when AGI starts is 48 (pixel rows 0 - 47). This arrangement works well for most [[rooms]] to simulate a 3-D screen, but if you have a room with a more complex perspectives, the '''set.pri.base''' command can be helpful. | The default height of the base band when AGI starts is 48 (pixel rows 0 - 47). This arrangement works well for most [[rooms]] to simulate a 3-D screen, but if you have a room with a more complex perspectives, the '''set.pri.base''' command can be helpful. | ||
Line 21: | Line 19: | ||
<div class="CodeBlockHeader">Code:</div> | <div class="CodeBlockHeader">Code:</div> | ||
<syntaxhighlight lang="agi"> | <syntaxhighlight lang="agi"> | ||
− | set.pri.base(60); | + | set.pri.base(60); [ this widens the base band by 12 pixels |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 36: | Line 34: | ||
== See Also == | == See Also == | ||
− | [[Screen Object/View Commands]] | + | *[[Screen Object/View Commands]] |
+ | [[Category:References]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:View Commands]] | [[Category:View Commands]] | ||
− | [[Category: | + | [[Category:Objects]] |
Latest revision as of 11:11, 28 January 2022
The set.pri.base command adjusts the size of the priority bands on the priority screen.
Syntax
set.pri.base(byt NEWBASE);
Remarks
This command adjusts the size of the priority bands. The height of the base band (priority = 4) is set to NEWBASE. All other bands from 5 to 14 are then spaced evenly over the remaining area of the screen (Priority 15 is never reachable on screen). The default height of the base band when AGI starts is 48 (pixel rows 0 - 47). This arrangement works well for most rooms to simulate a 3-D screen, but if you have a room with a more complex perspectives, the set.pri.base command can be helpful.
Possible Errors
Do not use a value greater than 158, otherwise some priority bands will be missing from the screen due to the way that AGI calculates the bands. If you use a value greater than 166, then the entire screen will be priority 4, regardless of objects' position.
Example
<syntaxhighlight lang="agi"> set.pri.base(60); [ this widens the base band by 12 pixels </syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in version 2.936 and above. |
Byte-Code Value: | 174 (0xAE hex) |