Difference between revisions of "Set.pri.base"

From AGI Wiki
Jump to navigationJump to search
Line 36: Line 36:
 
== See Also ==
 
== See Also ==
  
[[Screen Object/View Commands]]
+
*[[Screen Object/View Commands]]
  
 
[[Category:References]]
 
[[Category:References]]

Revision as of 17:40, 22 March 2019

The set.pri.base command adjusts the size of the priority bands on the priority screen.

Syntax

set.pri.base(byt A);

Parameters

  • A: the y value of the top of the desired priority 4 base band

Remarks

This command adjusts the size of the priority bands. The height of the base band (priority = 4) is set to A. 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

Code:
set.pri.base(60); // this widens the base band by 12 pixels

Technical Information

Required Interpreter Version: Available in version 2.936 and above.
Byte-Code Value: 174 (0xAE hex)

See Also