Author Topic: Mini-game help  (Read 237 times)

in some TDM games theres a event that tells you how many points you need to unlock this weapon and i really need to learn the events to do it, can someone be kind and tell how to do it step by step in the comments

Firstly, you'll need to download Variable/Conditional Events and the addItem output event. Once you've done that, use the following events:

Code: [Select]
[ON] [0] [onActivate] [Self] [VCE_ifValue] [<var:pl:score>] [>=] [10] (let's say the weapon costs 10 points)
[ON] [0] [onVariableTrue] [Player] [addItem] [itemNameHere]
[ON] [0] [onVariableFalse] [Client] [bottomPrint] [Sorry, you don't have enough credit to purchase this item.]

Is this what you're looking for?