Post: Unlocking All Emblems/Medals/Calling Cards
11-27-2015, 11:56 AM #1
BullyWiiPlaza
Climbing up the ladder
(adsbygoogle = window.adsbygoogle || []).push({}); I want to unlock all emblems, challenges, calling cards and medals on Multiplayer. For this, I already wrote the following script:
    givePlayerMedals(player)
{
player thread maps\mp\gametypes\_hud_message::hintMessage("^1Unlocking all medals, please wait...");

player giveAllMedals();

player thread maps\mp\gametypes\_hud_message::hintMessage("^2All medals successfully unlocked!");
}

giveAllMedals()
{
medalNames = getAllMedalNames();

foreach(medalName in medalNames)
{
giveMedal(medalName, 1337);
}
}

giveMedal(dataName, desiredValue)
{
self addPlayerStat(dataName, desiredValue);

/*currentValue = self.pers[dataName];

if(currentValue < desiredValue)
{
increment = desiredValue - currentValue;

if(increment <= 0)
{
return;
}

self addPlayerStat(dataName, increment);
self.pers[dataName] += increment;
}*/
}

getAllMedalNames()
{
tableName = tableLookupFindCoreAsset("mp/statsmilestones3.csv");

startingRow = 2;
rowsCount = 188;
medals = [];
groupColumn = 3;
namesColumn = groupColumn + 1;

for(rowIndex = startingRow; rowIndex < startingRow + rowsCount; rowIndex++)
{
group = tableLookupColumnForRow(tableName, rowIndex, groupColumn);

if(group == "global")
{
name = tableLookupColumnForRow(tableName, rowIndex, namesColumn);
medals[medals.size] = name;
}
}

return medals;
}

Issues:

  • I cannot query the existing amount and then add what is left to have my desired amount, only adding works (see the commented out code)
  • Earned stuff shows up in the after action report but does not save to the profile
  • The function giveAllMedals() returns before all unlocks popped up on-screen so the 2nd hint message comes up too early
  • Profile modifications don't work at all in private matches, they have to be played on public (any working script for forcing a public match in a private match?)
  • Not everything is unlocked/affected by mp/statsmilestones3.csv
  • Using all 4 stats milestone files for getting the stat names and adding to them causes a server disconnect for some reason
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked BullyWiiPlaza for this useful post:

HiddenHour

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo