So i'm trying to fix an issue with one of my mods where a character (through dialogue) is supposed to give you money.
My issue is that in my attempt of getting the character to only give the money once i kinda broke the script.
I'm doing it through the dialogue "Result" box, which might be the issue? It could be that i have to create a proper script for it? I just don't fully understand how i would integrate it.
Currently my result box looks like this:
short moneygiven
set moneygiven to 0
if (moneygiven == 0)
;player->AddItem "gold_001" 400
set moneygiven to 1
endif
At the moment whenever the conversation is run ingame the game crashes.
This is all i could get out of modding guides/articles online.
Got any ideas?
Thank you very much in advance!