Skip to content

Commit

Permalink
Add (male|female)_message to [message]
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Oct 6, 2015
1 parent f8e897e commit 8a7f715
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/lua/wml/message.lua
Expand Up @@ -70,6 +70,14 @@ local function message_user_choice(cfg, speaker, options, text_input)
message = cfg.message,
portrait = image,
}

if speaker ~= nil then
if cfg.male_message ~= nil and speaker.gender == "male" then
msg_cfg.message = cfg.male_message
elseif cfg.female_message ~= nil and speaker.gender == "female" then
msg_cfg.message = cfg.female_message
end
end

-- Parse input text, if not available all fields are empty
if text_input then
Expand Down

0 comments on commit 8a7f715

Please sign in to comment.