Action-RPG Starter Kit Lua Code Problem
Posted: Thu Feb 02, 2017 2:55 am
Hello,
So I am using Dialogue System with Action-RPG Starter Kit, I have setup player and one ally with which player will start conversation. Now at one point ally wil ask player for potion but this will trigger only on this condition and if it is then Now it was working fine, till today I checked and it was not working and dialogue was not showing as condition was false but player has 1 potion and when I removed condition to show dialog it returned error = I have tried everything including testing through console but same error. So please help, I am really stuck.
Thanks.
Update:
Ok still I am not able to find solution but I think found root cause which is I lua interpreter is not working as I played "Lua Example" scene and used "sqrt(4)" in in lua console but it output was "no return value". So I might accidently caused this but don't know how to solve it without starting all over again.
So I am using Dialogue System with Action-RPG Starter Kit, I have setup player and one ally with which player will start conversation. Now at one point ally wil ask player for potion but this will trigger only on this condition
Code: Select all
Actor["EVE"].ItemQty1 > 0
Code: Select all
RemoveItem(1, 1)
Code: Select all
Dialogue System: Lua code 'RemoveItem(1, 1)' threw exception 'Invoke function call on non function value.'
Thanks.
Update:
Ok still I am not able to find solution but I think found root cause which is I lua interpreter is not working as I played "Lua Example" scene and used "sqrt(4)" in in lua console but it output was "no return value". So I might accidently caused this but don't know how to solve it without starting all over again.