Okay, so here is the deal. I want to make an in-base shop for my Laser Tag game. What I want the shop to do is have 2 buttons : One of them with a print of ? That when you click on it, it tells you what the weapon is and does. Of course, I have that down, that part is easy. But the buy button? This is as close as I have gotten:
OnActivate -> Client -> ifVariable -> beamriflebought == 2 (2 is true, 1 is false)
IfVariableTrue -> Player -> addItem -> Beam Rifle
IfVariableFalse -> Self -> Promptclient -> (Yes/No) Do you want to buy this Beam Rifle? (1)
OnPromptAccept -> Self -> ifValue -> <var:cl:score> >= 200
OnVariableFalse -> Client -> CenterPrint -> <color:ffffff>You don't have enough points to buy a Beam rifle...
OnVariableTrue -> Client -> Centerprint -> <color:ffffff>Beam rifle bought! Click on this again to get it.
OnVariableTrue -> Client -> incScore -> -200
OnVariableTrue -> Client -> modVariable -> beamriflebought (Set) 2
What happens is, the first time they click on it and they don't have it, it asks the player : "Do you want to buy this Beam Rifle?" If they choose no, the prompt goes away. But if they choose yes, then it checks the point amount to see if it is above or equal to 200. If that is false, they get a message saying "You dont have enough points to buy a Beam Rifle...". But, if they do have enough points, they get a message saying "Beam rifle bought! Click on this again to get it.". Then their score decreases by 200 and the beamriflebought variable is set to True.
When I tested it, the same thing came out with and without the 200 points - It did the prompt AND said "You dont have enough money to buy this...". The prompt didnt do anything but disappear when I clicked yes, same with no.
What should I do, how can I fix this? Sad Pandah
