Author Topic: VCE mining  (Read 579 times)

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!

Im wayyyy too lazy to type up how to do this. If I came to your server I could do it for you, is it up now?

Im wayyyy too lazy to type up how to do this. If I came to your server I could do it for you, is it up now?
Shield's space RP


I'm thinking that this might work:
Code: [Select]
Onactivate>ifvariable [X] ≤ 1
Onvariabeltrue>player>Modvariable [X] subtract [1]
Onvaraibletrue>player>Modvariable [credits] add 1
X = Variable you get when you mine a block of ore (i.e. Orange Ore, Bue Ore, Green Ore)

onactivate>player>vce_ifvariable[orename][>=][0][1 2]
onvariabletrue>player>vce_modvariable[orename][subtract][1]
onvariabletrue>player>vce_modvariable[moneys][add][1]
or
onactivate>player>vce_modvariable[credits][add][<var:pl:orename>]
onactivate>player>vce_modvariable[orename][set][0]

Don't use <. Use >=. < would be if the ore is LESS. > would be if it's more. But we want if it's more OR equal. So use >=

Don't use <. Use >=. < would be if the ore is LESS. > would be if it's more. But we want if it's more OR equal. So use >=
nobody is using <