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,446 PostsLatest Activity: 7 hours agoRelated Posts
Recent Discussions
- 7 hours ago
- 2 days ago
- 4 days ago
- 4 days ago
- 14 days ago