Need help with scripting: setting the amount of Gold the player has as a variable
I can't seem to figure out how to get a variable to return the amount of gold the player has. I've got my script to compile right, but I have a notification that is supposed to pop up with the amount of gold the player has, and it pops up 0.
Here is the relevant bit of the script:
Int playerGold = PlayerRef.Getitemcount(Gold001)
Debug.Notification(playerGold)
Any help would be greatly appreciated.
Posted May 15, 2016, 8:20 PM UTC
32