Blockland Forums > Suggestions & Requests
More RPG Help: Gold
Blockoman:
How would I make it so that the player can only pick up some gold pieces once?
But if a player has not picked up the gold yet, they still can?
I've experimented with adding special variables (not displayed) so that a player cannot pick up the pieces twice, but if the player had already picked them up, why would they still be visible? If they were invisible after one player picked them up, then other players wouldn't be able to pick them up.
I could just make the gold in a treasure chest, but it wouldn't fit where the gold is supposed to go and I believe Lilboarder has done something like that.
Blockoman:
Bump, I really need help.
Wizard:
Nope, lilboarder did it like you did, using invisible vars. Gold disappears after you pick it up, just like any other time.
Niblic:
OnActivate > Self > IfVariable > Gold > GreaterEquals > 1
VariableTrue > Client > Centerprint > [You have already taken this]
VariableFalse > Client > AddVariable > Gold > 1
VariableFalse > Client > CenterPrint > [You have taken 1 piece of gold]
Hurrdurr.
Niblic:
--- Quote from: Blockoman on June 21, 2009, 10:38:18 AM ---How would I make it so that the player can only pick up some gold pieces once?
But if a player has not picked up the gold yet, they still can?
I've experimented with adding special variables (not displayed) so that a player cannot pick up the pieces twice, but if the player had already picked them up, why would they still be visible? If they were invisible after one player picked them up, then other players wouldn't be able to pick them up.
I could just make the gold in a treasure chest, but it wouldn't fit where the gold is supposed to go and I believe Lilboarder has done something like that.
--- End quote ---
Maybe it was a large(Rarely happens)piece of gold that you only took a little chunk right off.