Author Topic: How can I make a weapon cost free after a player buys it?  (Read 1035 times)

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.


vce

Can you give me the exact events?

I'm not so good with variables.

Can you give me the exact events?

I'm not so good with variables.

Code: [Select]
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

Code: [Select]
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

Thanks a lot :)

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

use the weapon shop add-on