Internal Macro variables
kathorus
Traveler
Is there any access to "internal" values via the Macro language, for example, if I wanted to draw a horizontal line across my map at a certain point, is there a way to get the map height, width? Are there other variables exposed?
LINE (0, .33% Map Height) (Map Width, .33% Map Height)
LINE (0, .33% Map Height) (Map Width, .33% Map Height)
Comments
Just be aware that these values will be based on the outermost points where entities exists, and not the visible/decorative map border. For most maps, this would probably end up being the white polygon on the SCREEN sheet.
Also remember that you can store the results, so if you go the route of asking the user for something, you can only ask once, and then use the stored values thereafter. This is helpful if you do the same command multiple times in the same map.
For instance, a Key Box where the key would be placed in the lower right-hand corner and would be based on percentages of the H and W of the map, a border could be drawn, filled with a standard color, with guide lines on the inside based on the size of the box drawn to help with text placement, etc.... I figured since the size of the map has to be defined at creation, that perhaps there were variables or functions that returned that user input for macro consumption.