Blockland Forums > Help
Slayer / IfPlayerScore / Sort Weight
iBlox / (-Nick-):
Problem #1: Is there a sort weighting option for Slayer? Am I missing it? Is there a different name for it in Slayer? I need to make one team start with one player and the other to start with the rest of the people in the server, but I can't find the sort weight option.
Problem #2: In the minigame, when you die, your score decreases by 200 points. When you respawn, I have an event that, OnPlayerTouch, checks your points to see if you have the right amount. When you have less than 0 points, you get sent to the other team (the team that starts with 1 player) and if you have 0 or more, you stay on your team. I am using the JoinTeam eventt that came with slayer, and these events are not working. I clearly have the right amount of points when I check the player list, but the event is still not working. I have come to believe that the IfPlayerScore event does not work with Slayer points. Am I doing something wrong? Is there an add-on with more events for Slayer?
Information that may be needed:
>I have only downloaded the add-on "Throwing Knife" recently
>I only have the add-ons needed (which isn't too many) enabled
>I have triple checked the events and they are correct
Greek2me:
1) No, there is no autosort weighting currently. However, I plan to include it in the upcoming version.
https://bitbucket.org/Greek2me/slayer/issue/5/autosort-weighting
2) Can you show me the events that you have? Also, the joinTeam event uses the team name, not the team number.
iBlox / (-Nick-):
--- Quote from: Greek2me on May 01, 2012, 05:54:15 PM ---Can you show me the events that you have? Also, the joinTeam event uses the team name, not the team number.
--- End quote ---
You get no points for anything except dying. When you die, you lose 200 points. When you don't have 0 points (you have died), you get sent to the "Infected" team.
2 and 3 are CenterPrint messages.
--- Quote from: Greek2me on May 01, 2012, 05:54:15 PM ---1) No, there is no autosort weighting currently. However, I plan to include it in the upcoming version.
https://bitbucket.org/Greek2me/slayer/issue/5/autosort-weighting
--- End quote ---
^Do this^
Greek2me:
I believe that you should use ifPlayerScore < 0 rather than ifPlayerScore == 0.
And no worries, I'll work on it.
iBlox / (-Nick-):
--- Quote from: Greek2me on May 01, 2012, 06:25:53 PM ---I believe that you should use ifPlayerScore < 0 rather than ifPlayerScore == 0.
And no worries, I'll work on it.
--- End quote ---
I'll try it and ^Do this^
I am working on this game and it needs it.