Long story short, I have a mining area in my space station RPG that has different kinds of minerals. Different minerals are worth a certain amount of money.
Ore chart
- Green = 10
- Yellow = 8
- Red = 6
- Blue = 4
- Purple = 2
- Orange = 1
When you successfully mine a block of Blue ore:
On variabletrue>player>VCEmodvariable>[Blue Ore] add [1]
I want to add a brick that when you click it, depending on the color/amount of ore you have, it gives you the corresponding amount of money.
So if I had:
1 Orange ore
4 Blue ore
2 Green ore
It would give me the right amount of money.
PLEASE HELP!