Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.

AddDynGraphic

From AGEWiki

Revision as of 12:26, 16 February 2012 by Lodilefty (Talk | contribs)
Jump to: navigation, search

AddDynGraphic

Syntax  

AddDynGraphic = <RgnUID>;<ImageName>;<AltWeatherImgName>;<TerrainUID>;<CooX>;<CooY>;<Tooltip>[;<Layer>]

Description

This command adds a graphic to a region, and may change the weather graphic or the terrain.

Example  

AddDynGraphic = $Gorlitz;Icon_PassBlocked.png;Icon_PassBlocked.png;NULL;150;150;strPassIsBlocked

AddDynGraphic.png


Spreadsheet of examples

This will display the Icon_PassBlocked.png graphic in Region Gorlitz, with a location 150 pixels right and 150 pixels down from the upper left point of the region. A tooltip strPassIsBlocked will appear on the graphic icon.

Note: See RemDynGraphic


 

Parameters

RgnUID

Alias of the Region selected

ImageName

The Graphic to be displayed

AltWeatherImgName

The image to use if the weather of the region is harsh or very harsh (can be the same as above).

TerrainUID

If not NULL or -1, then the new terrain of the region (i.e $Mountain will transform the terrain of the region into mountainous terrain!).

CooX

Graphic offset in pixels to the right of the upper left point of region

CooY

Graphic offset in pixels down from the upper left point of region

Tooltip

Text to be displayed when mouse hovers on the graphic icon

Layer

OPTIONAL Indicates the display layer to use to show the graphic

region graphic is 1, miniflag is 3, siege indicator is 2, etc.) default = 1
Available only with Game Engine updates on or after February 15, 2012
Forums