Skip to content

Instantly share code, notes, and snippets.

@Vultraz
Vultraz / wml_action_message.lua
Last active September 16, 2015 15:40 — forked from CelticMinstrel/wml_action_message.lua
A Lua implementation of Wesnoth's [message] WML tag
local helper = wesnoth.require "lua/helper.lua"
local location_set = wesnoth.require "lua/location_set.lua"
local wml_actions = wesnoth.wml_actions
local function get_image(cfg, speaker)
local image = cfg.image
if speaker and image == nil then
image = speaker.profile