Forum Discussion
o0netquik0o
4 years agoSeasoned Rookie
@iguanaworld to understand what's happening in the code with no generating bases Can you run this code in console e give me values of last 3 variables?
var player = ClientLib.Data.MainData.GetInstance().get_Player();
var cw = player.get_Faction();
var cj = ClientLib.Base.Tech.GetTechIdFromTechNameAndFaction(ClientLib.Base.ETechName.Research_BaseFound, cw);
var cr = player.get_PlayerResearch();
var cd = cr.GetResearchItemFomMdbId(cj);
var nextLevelInfo = cd.get_NextLevelInfo_Obj();
var resourcesNeeded = [];
for (var i in nextLevelInfo.rr) {
if (nextLevelInfo.rr.t > 0) {
resourcesNeeded = nextLevelInfo.rr.c;
}
}
var creditsNeeded = resourcesNeeded;
var creditGrowthPerHour = (creditsResourceData.Delta + creditsResourceData.ExtraBonusDelta) * 3600;
var playerCredits = player.GetCreditsCount();
About Tiberium Alliances Technical Issues
Having problems running the game or a script? Get help with Command and Conquer: Tiberium Alliances with the community!
1,433 PostsLatest Activity: 6 hours agoRelated Posts
Recent Discussions
- 6 hours ago
- 6 hours ago
- 3 days ago
- 3 days ago