(I apologize for the double post)
So I have a few status attributes attached to my player, and i'll just use this example here.
I have the Key set to "Pride" and the Value set to "Pride: 1" Due to the fact the key does not show during gameplay, and the player must read which status they gained in.
Well, I tried to add "1" to the pride like this:
player.pride = player.pride + 1
To no avail. I get this error:
Error running script: Error compiling expression 'player.pride + 1': ArithmeticElement: Operation 'Add' is not defined for types 'Object' and 'Int32'
I looked it up and the documentation gives no way to fix this error. This code does not work:
IncreaseObjectCounter (player, "Pride", 1)
I would appreciate some help...thank you! Nothing is working.
Did you set player.pride=0 earlier?
Something this helps because Quest thinks pride is a string by default.
But, in this case, it thinks it's a object.
And yea... Quest doesn't give the most useful error messages.