Author Topic: How do I make a shop in-game using points and events?  (Read 1050 times)

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

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.
« Last Edit: September 14, 2012, 03:23:22 PM by 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.
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.
« Last Edit: September 15, 2012, 09:00:49 AM by Dr_Zegobob »

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.

ifvariabletrue>client>incscore>-20 yes