Browse Source

Initial commit

master
Abheek Dhawan 3 years ago
commit
d46efa5753
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. BIN
      content/scripts/game/components/inventoryComponent.ws
  2. 45
      content/scripts/local/achievementStatTrak/achievement_stats.ws

BIN
content/scripts/game/components/inventoryComponent.ws

Binary file not shown.

45
content/scripts/local/achievementStatTrak/achievement_stats.ws

@ -0,0 +1,45 @@
// TODO: Multiple functions: one returns array of stuff, another formats, and one final exec function
// Function to get the stats in a formatted string
function getAchievementStats() : string
{
// Integer to be later used in the for loop
var i : int;
// Array to store the achievement stats
var stats : array<EStatistic>;
// String where all the achievements go
var achievementString : string;
// Set achievement string empty to be later added on to
achievementString = "";
// Add all stats to the array
stats.PushBack(ES_CharmedNPCKills);
stats.PushBack(ES_AardFallKills);
stats.PushBack(ES_EnvironmentKills);
stats.PushBack(ES_CounterattackChain);
stats.PushBack(ES_DragonsDreamTriggers);
stats.PushBack(ES_KnownPotionRecipes);
stats.PushBack(ES_KnownBombRecipes);
stats.PushBack(ES_ReadBooks);
stats.PushBack(ES_HeadShotKills);
stats.PushBack(ES_BleedingBurnedPoisoned);
stats.PushBack(ES_DestroyedNests);
stats.PushBack(ES_FundamentalsFirstKills);
stats.PushBack(ES_FinesseKills);
stats.PushBack(ES_SelfArrowKills);
stats.PushBack(ES_ActivePotions);
stats.PushBack(ES_KilledCows);
stats.PushBack(ES_SlideTime);
// Loop through each stat to create a final string that goes in the Gwent book
for (i = 0; i < stats.Size(); i += 1)
{
achievementString += StatisticEnumToName(stats[i]) + ": " + "<font color='#00ff00'>" + theGame.GetGamerProfile().GetStatValue(stats[i]) + "</font>" + "<br>";
}
// Return the final string
return achievementString;
}
Loading…
Cancel
Save