#textdomain wesnoth # Utility macros for images, overlays, and display effects. # These don't depend on any other macros. Please don't change this. #define MAGENTA_IS_THE_TEAM_COLOR # A macro to define a common set of magenta color values which different # units can be color shifted by using the team color system. flag_rgb=magenta #enddef #define COLOR_HEAL green=255 #enddef #define COLOR_HARM red=255 #enddef #define COLOR_WHITE red=255 green=255 blue=255 #enddef #define IS_HERO # Embed this into a unit declaration to add a hero icon to the unit. overlays="misc/hero-icon.png" #enddef #define REMOVE_HERO_ICON FILTER # Remove the hero icon from a unit by ID or other filter [store_unit] [filter] {FILTER} [/filter] kill=no variable=hero_removal_target [/store_unit] [remove_unit_overlay] x,y=$hero_removal_target.x,$hero_removal_target.y image=misc/hero-icon.png [/remove_unit_overlay] [clear_variable] name=hero_removal_target [/clear_variable] #enddef #define DOT X Y # Mark the specified map hex with a dot. [image] x,y={X},{Y} file=misc/dot.png delay=500 [/image] #enddef #define CROSS X Y # Mark the specified map hex with a cross. [image] x,y={X},{Y} file=misc/cross.png delay=500 [/image] #enddef #define DOT_CENTERED X Y # A centered version of {DOT X Y} for easier application [image] x,y={X},{Y} file=misc/dot.png delay=500 centered=yes [/image] #enddef #define CROSS_CENTERED X Y # A centered version of {CROSS X Y} for easier application [image] x,y={X},{Y} file=misc/cross.png delay=500 centered=yes [/image] #enddef #define DOT_WHITE_CENTERED X Y # A centered white dot representing the movement in the past scenarios [image] x,y={X},{Y} file=misc/dot-white.png centered=yes [/image] #enddef #define CROSS_WHITE_CENTERED X Y # A centered white cross representing the past battles [image] x,y={X},{Y} file=misc/cross-white.png centered=yes [/image] #enddef #define FLAG_WHITE_CENTERED X Y # A centered white flag representing the past non-combat scenarios [image] x,y={X},{Y} file=misc/flag-white.png centered=yes [/image] #enddef #define FLAG_RED_CENTERED X Y # A centered red flag representing the non-combat scenarios [image] x,y={X},{Y} file=misc/flag-red.png delay=500 centered=yes [/image] #enddef #define PLACE_IMAGE IMAGE X Y # Place an image at a specified location on the map. [item] x={X} y={Y} image={IMAGE} [/item] #enddef #define REMOVE_IMAGE X Y # Removes a previously set image from a tile. # # Example: #! {REMOVE_IMAGE 14 5} [removeitem] x,y={X},{Y} [/removeitem] #enddef #define TEAM_COLOR_OVERRIDE FILTER TEAMCOLOR # Override the team color of filtered units. [object] silent=yes [filter] {FILTER} [/filter] [effect] apply_to=image_mod add=RC(magenta>{TEAMCOLOR}) [/effect] [/object] #enddef #define MAKE_HERO ID_STRING # Give an existing unit a hero overlay [store_unit] [filter] id={ID_STRING} [/filter] variable=hero_store kill=no [/store_unit] [unit_overlay] x=$hero_store.x y=$hero_store.y image=misc/hero-icon.png [/unit_overlay] {CLEAR_VARIABLE hero_store} #enddef #define UNMAKE_HERO ID_STRING # Remove the hero overlay from a unit [store_unit] [filter] id={ID_STRING} [/filter] variable=hero_store kill=no [/store_unit] [remove_unit_overlay] x=$hero_store.x y=$hero_store.y image=misc/hero-icon.png [/remove_unit_overlay] {CLEAR_VARIABLE hero_store} #enddef #define ANIMATED_CAMPFIRE X Y [terrain_graphics] x={X} y={Y} [tile] x=0 y=0 [image] layer=0 name="../scenery/fire1:140,../scenery/fire2:140,../scenery/fire3:140,../scenery/fire4:140,../scenery/fire5:140,../scenery/fire6:140,../scenery/fire7:140,../scenery/fire8:140" [/image] [/tile] [/terrain_graphics] #enddef