Skip to content

Instantly share code, notes, and snippets.

View CelticMinstrel's full-sized avatar

Celtic Minstrel CelticMinstrel

View GitHub Profile
@CelticMinstrel
CelticMinstrel / wml_action_message.lua
Last active September 17, 2015 02:46 — forked from Vultraz/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
@CelticMinstrel
CelticMinstrel / wml_action_message.lua
Last active September 16, 2015 08:37
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 or ""
if image == "none" then
image = ""
end
@CelticMinstrel
CelticMinstrel / CorrectResults.txt
Created August 29, 2011 22:14
Spout Inventory Click: getSlot() and getRawSlot() results
<Celmin> Player
[0] Slot 0 of type RESULT clicked (raw slot 0)
[1] Slot 1 of type CRAFTING clicked (raw slot 1)
[2] Slot 2 of type CRAFTING clicked (raw slot 2)
[3] Slot 3 of type CRAFTING clicked (raw slot 3)
[4] Slot 4 of type CRAFTING clicked (raw slot 4)
[5] Slot 39 of type HELMET clicked (raw slot 5)
[6] Slot 38 of type ARMOR clicked (raw slot 6)
[7] Slot 37 of type LEGGINGS clicked (raw slot 7)
[8] Slot 36 of type BOOTS clicked (raw slot 8)