| Blockland Forums > Help |
| Need an event |
| << < (2/4) > >> |
| Gsterman:
--- Quote from: Gen. Hothauser on December 30, 2012, 12:26:19 AM ---VCE is needed, as you'd need a way to check whether a player has enough points to buy anything. Here is the most basic of events using only the VCE event mod. --- Code: ---[0] [x] [0] [Onactivate] [Self] [VCE_Ifvalue] [<var:cl:score>] [>=] [5] [1 4] [1] [x] [0] [Onvariabletrue] [Client] [Incscore] [-5] [2] [x] [0] [Onvariabletrue] [Client] [Centerprint] [You have purchased the bow] [3] [3] [x] [0] [Onvariabletrue] [Player] [Additem] [Bow] [4] [x] [0] [Onvariablefalse] [Client] [Centerprint] [You do not have enough points for the bow] [3] --- End code --- Again, this is as basic as it comes. You can add flare and pizzazz to fit it into what you are making, such as allowing the player to buy the item once, but be able to select it multiple times. Happy eventing! --- End quote --- this doesnt work for me, it just keeps saying the you dont have enough points, but i do. |
| Gsterman:
help? |
| phflack:
you're doing something wrong then, post pictures of what you have done |
| Gsterman:
--- Quote from: phflack on December 30, 2012, 04:33:27 PM ---you're doing something wrong then, post pictures of what you have done --- End quote --- --- Code: ---[OnActivate] [Self] [VCE_IfVariable] [<var:cl:Score>] [>=] [5] [1 4] [Onvariabletrue] [Client] [IncScore] [-5] [Onvariabletrue] [Player] [Additem] [Baldr] [Onvriablefalse] [client] [centerprint] [Get more points from completing missions] --- End code --- Also how do you make it give you points for not killing but damaging a player? As in shooting it will give you 1 point, but it wont kill it. |
| Gsterman:
help? |
| Navigation |
| Message Index |
| Next page |
| Previous page |