Author Topic: Need an event  (Read 1082 times)

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

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

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

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.

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

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: [Select]
[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]

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!

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: [Select]
[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]

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!

this doesnt work for me, it just keeps saying the you dont have enough points, but i do.


you're doing something wrong then, post pictures of what you have done

you're doing something wrong then, post pictures of what you have done

Code: [Select]
[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]

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.


you're doing something wrong then, post pictures of what you have done

I gave you the event

can someone please help me?

I need an event that gives you points from killing the opposing players on SLayer which you can buy stuff with.
You already receive points for killing enemy players. You can change how many points are rewarded at the bottom of the General tab.

Code: [Select]
[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]

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.
you used vce_ifvariable instead of vce_ifvalue
i have no idea if that's the issue or not but it's worth a shot

you used vce_ifvariable instead of vce_ifvalue
i have no idea if that's the issue or not but it's worth a shot

Ah, thank you.

You already receive points for killing enemy players. You can change how many points are rewarded at the bottom of the General tab.

I know, but can I get points for damaging players?