Relationships: Improved marriage dialogue.

When relationships change phase, dialogues are now updated as well.
Data: Added placeholder dialogues for both sexes and all phases.
This commit is contained in:
zorman2000 2016-12-04 15:24:32 -05:00
parent a3b463ff26
commit 01699d1d4a
2 changed files with 168 additions and 0 deletions

View File

@ -375,8 +375,15 @@ local function update_relationship(self, clicker_name, modifier)
local current_phase = self.relationships[i].phase local current_phase = self.relationships[i].phase
self.relationships[i].phase = npc.get_relationship_phase_by_points(self.relationships[i].points) self.relationships[i].phase = npc.get_relationship_phase_by_points(self.relationships[i].points)
if current_phase ~= self.relationships[i].phase then if current_phase ~= self.relationships[i].phase then
-- Re-select favorite items per new phase
self.gift_data.favorite_items = self.gift_data.favorite_items =
select_random_favorite_items(self.sex, self.relationships[i].phase) select_random_favorite_items(self.sex, self.relationships[i].phase)
-- Re-select dialogues per new
self.dialogues =
npc.dialogue.select_random_dialogues_for_npc(self.sex,
self.relationships[i].phase,
self.gift_data.favorite_items,
self.gift_data.disliked_items)
return true return true
end end
return false return false

View File

@ -55,6 +55,87 @@ npc.data.DIALOGUES.female["phase1"] = {
} }
} }
-- Phase 2
npc.data.DIALOGUES.female["phase2"] = {
[1] = {
text = "Hey buddy!"
},
[2] = {
text = "Hey buddy!"
},
[3] = {
text = "Hey buddy!"
},
[4] = {
text = "Hey buddy!"
}
}
-- Phase 3
npc.data.DIALOGUES.female["phase3"] = {
[1] = {
text = "Hi there! Great to see you!"
},
[2] = {
text = "Hi there! Great to see you!"
},
[3] = {
text = "Hi there! Great to see you!"
},
[4] = {
text = "Hi there! Great to see you!"
}
}
-- Phase 4
npc.data.DIALOGUES.female["phase4"] = {
[1] = {
text = "I was honestly looking forward to talk to you!"
},
[2] = {
text = "I was honestly looking forward to talk to you!"
},
[3] = {
text = "I was honestly looking forward to talk to you!"
},
[4] = {
text = "I was honestly looking forward to talk to you!"
}
}
-- Phase 5
npc.data.DIALOGUES.female["phase5"] = {
[1] = {
text = "You are the love of my life"
},
[2] = {
text = "You are the love of my life"
},
[3] = {
text = "You are the love of my life"
},
[4] = {
text = "You are the love of my life"
}
}
-- Phase 6
npc.data.DIALOGUES.female["phase6"] = {
[1] = {
text = "You are the best thing that has happened to me!"
},
[2] = {
text = "You are the best thing that has happened to me!"
},
[3] = {
text = "You are the best thing that has happened to me!"
},
[4] = {
text = "You are the best thing that has happened to me!"
},
}
-- Male dialogue options defined by phase -- Male dialogue options defined by phase
-- Phase 1 -- Phase 1
npc.data.DIALOGUES.male["phase1"] = { npc.data.DIALOGUES.male["phase1"] = {
@ -99,4 +180,84 @@ npc.data.DIALOGUES.male["phase1"] = {
} }
} }
} }
}
-- Phase 2
npc.data.DIALOGUES.male["phase2"] = {
[1] = {
text = "Hey buddy!"
},
[2] = {
text = "Hey buddy!"
},
[3] = {
text = "Hey buddy!"
},
[4] = {
text = "Hey buddy!"
}
}
-- Phase 3
npc.data.DIALOGUES.male["phase3"] = {
[1] = {
text = "Hi there! Great to see you!"
},
[2] = {
text = "Hi there! Great to see you!"
},
[3] = {
text = "Hi there! Great to see you!"
},
[4] = {
text = "Hi there! Great to see you!"
}
}
-- Phase 4
npc.data.DIALOGUES.male["phase4"] = {
[1] = {
text = "I was honestly looking forward to talk to you!"
},
[2] = {
text = "I was honestly looking forward to talk to you!"
},
[3] = {
text = "I was honestly looking forward to talk to you!"
},
[4] = {
text = "I was honestly looking forward to talk to you!"
}
}
-- Phase 5
npc.data.DIALOGUES.male["phase5"] = {
[1] = {
text = "You are the love of my life"
},
[2] = {
text = "You are the love of my life"
},
[3] = {
text = "You are the love of my life"
},
[4] = {
text = "You are the love of my life"
}
}
-- Phase 6
npc.data.DIALOGUES.male["phase6"] = {
[1] = {
text = "You are the best thing that has happened to me!"
},
[2] = {
text = "You are the best thing that has happened to me!"
},
[3] = {
text = "You are the best thing that has happened to me!"
},
[4] = {
text = "You are the best thing that has happened to me!"
},
} }