How would I make it search to see if the party has the gold coins on them to first buy the object and then remove the correct amount of coins.
I was thinking it could look for the ID of them but the problem is I would think each coin would have a special ID to it. So unless I spawn in each coin myself I won't know what their ID will be making that quite impossible for my script to call on.
If I knew what each coins ID is I could have it then delete certain ID's as long as they are there. I'm not sure if this idea is one able to work and 2 the best option to go with. SO if anyone has a better idea or a way to make this one work correctly