Author Topic: More RPG Help: Gold  (Read 1737 times)

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.

Bump, I really need help.

Nope, lilboarder did it like you did, using invisible vars. Gold disappears after you pick it up, just like any other time.

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.

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.
Maybe it was a large(Rarely happens)piece of gold that you only took a little chunk right off.

I just made it so when you open the "chest", gold pieces appear on the ground for you, and it automatically gives you gold. After you open it, you can't open it again, so you can't really see the gold again, unless someone opens it right in front of you.

I just made it so when you open the "chest", gold pieces appear on the ground for you, and it automatically gives you gold. After you open it, you can't open it again, so you can't really see the gold again, unless someone opens it right in front of you.
The Magical Chest of Infinite Gold.


@TacticGamer: Durr hurr, I knew that too. And, I did it that way before. I just wanted it to be only invisible to players who have picked it up already. But that's impossible.

Also, I have the invisible variables named like GoldCoin15Area6 ands stuff like that. :S

By invisible variables, do you mean random variables so players can't modify them? Or do you mean it generally how you can't physically see variables?

No display variable events.

And they do make sense, GoldPiece15Area6 is the fifteenth single gold piece you encounter in the sixth area.