Author Topic: Event help  (Read 385 times)

This is what I want to do.

If a person/player activates this brick he/she gets an item but his/her score decreases.

Example:

You activate the brick and you get a that costs 30 points.

How would I do that?

Please list add-ons needed (if any) and the exact way on how to do (e.g. Onactivate>????>????>????)


Oh yeah and one more thing. If you don't have a high enough score, nothing happens.

Get V4 Variables[
Onplayertouch-player-ifplacerscore-GreaterEquals-[SCORE]

VariableTrue-Player-AddItems-[ITEM]
Variablefalse-Client-Centerprint- You don't have enough score!


Get V5 Variables[
Onplayertouch-VCE_IfValue-<var:cl:score>-GreaterEquals-[SCORE]

On
VariableTrue-Player-AddItems-[ITEM]
OnVariablefalse-Client-Centerprint- You don't have enough score!
Fixed.


onactivate>self>vce_ifvalue[<var:cl:score>][>=][ammount][1 3]
onvariabetrue>player>additem[item]
onvariabletrue>client>incscore[same as above ammount]
onvariablefalse>client>bottomprint[You need (same ammount) score or more to buy a (item)]