Poll

Can you help?

Yes.
4 (100%)
No.
0 (0%)

Total Members Voted: 4

Author Topic: Variable Problems  (Read 689 times)

Hello. I figured I'd ask the Blockland community if I could have some help with something. I had went to medieval RPs with variables, and I wondered about the gold system. I tried to do an example:

onActivate > Player > VCE_modVariable > [Gold] Add [1]

I tried another variable event on another brick to see if I actually got the Gold bit:

onActivate > Player > VCE_ifVariable > [Gold] >= [1]

onVariableTrue > Client > CenterPrint > [SUCCESS]

onVariableFalse > Client > CenterPrint > [FAILURE]

I clicked on the collective brick, and then I clicked on the other brick, and it said, "SUCCESS". I need to know something, though. What events do I do to check how much Gold bits the player has? For example:

*click on collective brick 10 times*

*click on special evented brick*

"You have 10 Gold."

May someone help?

Err what?

Lamens terms please.

Also, you can use <var:player:gold> to view your gold.

You mean like this???

OnActivate -> <name of special brick> -> VCE_modVariable -> gold -> add -> 1

Special brick:

OnActivate -> self -> VCE_ifVariable -> gold = 10



No edit:

Continued:

onVariableTrue -> Client -> centerprint -> You have 10 gold

Okay, so an adder and a checker?

Eddie's got it right.

No edit:

Continued:

onVariableTrue -> Client -> centerprint -> You have 10 gold
Could simply do as Deathwishez was trying to suggest -

onActivate -> Client -> centerprint -> You have <var:pl:Gold> gold

Could simply do as Deathwishez was trying to suggest -

onActivate -> Client -> centerprint -> You have <var:pl:Gold> gold
I wasn't sure what Talent was asking.
But that would be better if you wanted to know exactly how much you had.
I thought he was asking for 10.