Player.MyInstance.GainXP(50);
when a certain response is chosen by the player during a conversation.
I tried placing it into the script part of the dialogue option but received this error
Code: Select all
Dialogue System: Lua code 'Player.MyInstance.GainXP(50);' threw exception 'Lookup of field 'MyInstance' in the table element failed because the table element itself isn't in the table.'
Also, is there a way to move the use message to be displayed above the thing we are going to talk to instead of at the top of the screen? I know I can move it to be center left/right etc but I think it would be better to be above the person we are about to interact with.