Found this great mod for server (marriage system) here :
NPC - [TFS 1.0] Marriage System
but there is a problem with incrementing, more specifically this line here, inside confirmRemoveEngage function:
The first time, the function removeEngage is being executed once
The second time you propose to someone and revoke your proposal. It will execute the function twice, also giving you back 2 rings
The third time will execute the function three times and so on.....
I have no experience with NPCs, thats why I am writing it here so hopefully someone can help me a little bit to prevent that from happening
using tfs 1.0
NPC - [TFS 1.0] Marriage System
but there is a problem with incrementing, more specifically this line here, inside confirmRemoveEngage function:
Lua:
node:addChildKeyword({'yes'}, removeEngage, {moveup = 3, text = 'Ok, your marriage proposal to {' .. getPlayerNameById(playerSpouse) .. '} has been removed. Take your wedding ring back.'})
The first time, the function removeEngage is being executed once
The second time you propose to someone and revoke your proposal. It will execute the function twice, also giving you back 2 rings
The third time will execute the function three times and so on.....
I have no experience with NPCs, thats why I am writing it here so hopefully someone can help me a little bit to prevent that from happening
using tfs 1.0