Blockland Forums > Help
How can I make a weapon cost free after a player buys it?
(1/2) > >>
Golden Hawk²:
Sorry if the title is ambiguous, I couldn't find a better one.

I'll make an example to try to explain this with a better way.

Example I buy a weapon for 30 points by click a brick, and I drop this weapon, how can I make it so I don't have to buy it again by clicking the same brick, using events? By the way, I know it would be easy to do this with item saving/loading events, but it's not what am I talking about at all.

If someone already went to Reinforcement's Trench Dig server, they might know what do I mean.
Darksaber530:
vce
Golden Hawk²:

--- Quote from: Darksaber530 on November 02, 2012, 06:45:56 PM ---vce

--- End quote ---

Can you give me the exact events?

I'm not so good with variables.
Evar678:

--- Quote from: Golden Hawk² on November 02, 2012, 06:50:44 PM ---Can you give me the exact events?

I'm not so good with variables.

--- End quote ---


--- Code: ---0 OnActivate Client VCE_IfVariable     purchased         == 1  [1 2]
1 OnVariableFalse Client VCE_IfValue     <var:cl:score> >= 50 [2 4]
2 OnVariableTrue Player AddItem     Gun
3 OnVariableTrue Client AddScore             -50
4 OnVariableTrue Client VCE_ModVariable     purchased         set 1

--- End code ---
Golden Hawk²:

--- Quote from: Evar678 on November 03, 2012, 02:34:55 AM ---
--- Code: ---0 OnActivate Client VCE_IfVariable     purchased         == 1  [1 2]
1 OnVariableFalse Client VCE_IfValue     <var:cl:score> >= 50 [2 4]
2 OnVariableTrue Player AddItem     Gun
3 OnVariableTrue Client AddScore             -50
4 OnVariableTrue Client VCE_ModVariable     purchased         set 1

--- End code ---

--- End quote ---

Thanks a lot :)

I'll lock this thread because i've been answered, but if it doesn't work, i'll unlock it back.
Navigation
Message Index
Next page

Go to full version