Flash-Ranger 195 Posted May 3, 2017 Hello, I am looking for a SIMPLE score system that I could use in my Deathmatch maps. I wan't no "kill streak", no "best player" of what so ever, just a simple score system that could collect the amount of kills that a player is getting and that will stop the game when limit it reached. I guess you can do this with "eventhandlers" but I'm clearly not an expert in Deathmatchs so ... Please help me :) Share this post Link to post Share on other sites
Nikander 122 Posted May 4, 2017 I tend to favour triggers as activators private _trg = createTrigger ["EmptyDetector", [0, 0, 0], false]; _trg setTriggerStatements [ "score player > 1", "'End1' call BIS_fnc_endMission", "" ]; I hope this helps 1 Share this post Link to post Share on other sites
Flash-Ranger 195 Posted May 5, 2017 Ok but how can I replace "score player > 1" by a condition that would detect the score of any player in the MP mission crossing the limit of points. what I mean is, isn't "score player > 1" a local condition ? Would it apply to any player ? >>>>> EDIT : Ah no found the answer myself on the wiki : "Returns the person's score in MP." OK it works. Thank you ! Share this post Link to post Share on other sites
dc207 11 Posted February 8, 2018 I know I am late to the game here, but does this work? I am creating a TvT/PvP game type, that is essentially a simple TDM. Well, I am unable to get the score limit to work. As in, when one team reaches 10 kills, the game does not "end" automatically. I am collecting scripts and using them in the various places (description.ext and init.sqf as appropriate), but so far have been unable to get any method to work. Any ideas or suggestions? I could post the scripts I am using (which are admittedly a mess, I am sure). Or just follow along in a video. I have been searching for about a week, to no avail. Any help is appreciated. Share this post Link to post Share on other sites
Flash-Ranger 195 Posted February 8, 2018 disableSerialization; createDialog "RscDisplayMPScoreTable"; private _display = uiNamespace getVariable "RscDisplayMPScoreTable"; private _ctrlTitle = _display displayCtrl 101; _ctrlTitle ctrlSetText serverName; private _ctrlGroupPlayers = _display displayCtrl 102; private _ctrlGroupScores = _display displayCtrl 103; private _y = 0; private _players = allPlayers apply {[getPlayerScores _x param [5, 0], _x]}; _players sort false; _players = _players apply {_x select 1}; { private _name = name _x; private _scores = getPlayerScores _x; _scores params ["_killsInfantry", "_killsVehicle", "_killsTank", "_killsAircraft", "_deaths", "_killsTotal"]; private _ctrlScores = _display ctrlCreate ["RscDisplayMPScoreTable_LineTemplate", -1, _ctrlGroupPlayers]; _ctrlScores ctrlSetPosition [0, _y]; _ctrlScores ctrlCommit 0; private _ctrlRanking = _ctrlScores controlsGroupCtrl 106; private _ctrlPlayerName = _ctrlScores controlsGroupCtrl 107; private _ctrlKillsInfantry = _ctrlScores controlsGroupCtrl 108; private _ctrlKillsVehicle = _ctrlScores controlsGroupCtrl 109; private _ctrlKillsTank = _ctrlScores controlsGroupCtrl 110; private _ctrlKillsAircraft = _ctrlScores controlsGroupCtrl 111; private _ctrlDeaths = _ctrlScores controlsGroupCtrl 112; private _ctrlKillsTotal = _ctrlScores controlsGroupCtrl 113; _ctrlRanking ctrlSetText ""; _ctrlPlayerName ctrlSetText _name; _ctrlKillsInfantry ctrlSetText str _killsInfantry; _ctrlKillsVehicle ctrlSetText str _killsVehicle; _ctrlKillsTank ctrlSetText str _killsTank; _ctrlKillsAircraft ctrlSetText str _killsAircraft; _ctrlDeaths ctrlSetText str _deaths; _ctrlKillsTotal ctrlSetText str _killsTotal; _y = _y + (ctrlPosition _ctrlScores select 3); } forEach _players; Just copy and paste. Share this post Link to post Share on other sites
dc207 11 Posted February 9, 2018 Holy cow. Thank you. Wow. Would I still be able to choose whether to make it a 5, 10, 15, or 25 kill limit? Or would this code apply a default for the gametype? Thank you. Share this post Link to post Share on other sites
Flash-Ranger 195 Posted February 9, 2018 Hi, This only displays the scoreboard. Score limits are not the subject of this topic. If you need any help developing some DM/TDM or other PvP, send me a PM I can help. TOPIC SOLVED Share this post Link to post Share on other sites