Blockland Forums > General Discussion

How do I make a shop in-game using points and events?

Pages: (1/1)

setro2:

/title
All help is appreciated.
Example: The shop in Pecon7's boss battles

Darkness ZXW:

uh vce

iirc it's like

onactivate>VCEifvariable[<var:client:score>] <= [20]
ifvariabletrue>player>additem>Gun
ifvariablefalse>client>centerprint>You need 20 points for this item!

it might be ifvalue(whatever), try both.

Dr_Zegobob:


--- Quote from: Darkness ZXW on September 14, 2012, 04:21:49 PM ---uh vce

iirc it's like

onactivate>VCEifvariable[<var:client:score>] <= [20]
ifvariabletrue>player>additem>Gun
ifvariablefalse>client>centerprint>You need 20 points for this item!

it might be ifvalue(whatever), try both.

--- End quote ---
Adding on to this:
ifvariabletrue > client > increasepoints (-20)

I am just a noob with VCE, but I am pretty sure that is how you do this if you want to have the user spend 20 points on that item, and not keep them after purchasing.

Darkness ZXW:


--- Quote from: Dr_Zegobob on September 14, 2012, 05:07:06 PM ---Adding on to this:
ifvariabletrue > client > increasepoints (-20)

I am just a noob with VCE, but I am pretty sure that that is how you do this if you want to have the user spend 20 points on that item, and not keep them after purchasing.

--- End quote ---

ifvariabletrue>client>incscore>-20 yes

Pages: (1/1)

Go to full version