# Changes the terrain at a given list of coordinates # For example we could make 14,15 and 14,16 grassland: # {MODIFY_TERRAIN g (14,14) (15,16)} #define MODIFY_TERRAIN LETTER X Y [terrain] letter={LETTER} x={X} y={Y} [/terrain] #enddef # Changes the terrain for a given area # For example we could create a castle at 10,12: # #define CASTLE_MASK # CC # CKC # CC # #enddef # {MODIFY_TERRAIN_MASK 10 12 ({CASTLE_MASK})} #define MODIFY_TERRAIN_MASK X Y MASK RULES [terrain_mask] x={X} y={Y} mask={MASK} {RULES} [/terrain_mask] #enddef # Ends the game with the result RESULT (can be either victory or defeat) # For example, we could win: # {ENDGAME victory} # #define ENDGAME RESULT [endlevel] result={RESULT} [/endlevel] #enddef # Allows the player to undo the effects of a moveto event. # For example, lets allow undoing reading a note: # {ON_TILE 5 7 () ( # {ALLOW_UNDO ( # [message] # speaker=narrator # message="This is a note." # [/message] # )} # )} #define ALLOW_UNDO ACTION [allow_undo] {ACTION} [/allow_undo] #enddef # Gives a side an amount of gold # For example, lets make player 1 rich: # {ADD_GOLD 1 999} #define ADD_GOLD SIDE AMOUNT [gold] side={SIDE} amount={AMOUNT} [/gold] #enddef #define PUT_IMG IMG X Y # Place an item image at a specified location. [item] x={X} y={Y} image={IMG} [/item] #enddef