Hello im triying to figure how to do a Dialogue for my NPCS
let say i just drop a npc on a map well when i press E on him a dialogue appears saying Welcome Soldier do you want to buy someting? and then 2 buttons appear Yes and the second one No
Then if the player Click on No it closes the menu but if he click yes he calls my function
Im also triying to implement a RANK system lets say you kill 20 combines if you reach enough XP a small text pops up and tells you that you have Level up and you name changes to (steam user nickname-Sargent Rank)
I know im a lua started but i want to learn any help or hints are very appreciated!