Blockland Forums > Help

Need an event

Pages: (1/4) > >>

Gsterman:

I need an event that gives you points from killing the opposing players on SLayer which you can buy stuff with.

Goth77:

I think you might need the minigame events, and VCE

OnPlayerKill -> Player VCE ModVar -> Points Add 1

This will give you 1 point for each kill.

Minigame Events: http://forum.returntoblockland.com/dlm/viewFile.php?id=683
VCE: http://forum.blockland.us/index.php?topic=74148.0

pecon98:

You don't need VCE to change a player's score. There is a default incscore event.

pecon98:

Additionally, there should be options in slayer to reward players points for making kills. I think it's at the bottom of the general tab.

Gen. Hothauser:


--- Quote from: pecon98 on December 29, 2012, 11:39:49 PM ---You don't need VCE to change a player's score. There is a default incscore event.

--- End quote ---

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!

Pages: (1/4) > >>

Go to full version