Add (male|female)_message to [message]
This commit is contained in:
parent
f8e897e8dd
commit
8a7f71578d
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue