Logo Platform
logo amplifiers simplified

Trying to fix Forgotten tech "Learn From Others"

Reply
Copied to clipboard!
9 years ago
Oct 5, 2015, 3:58:33 AM
I noticed some weirdness with the Forgotten tech, "Learn From Others" and posted about it here. I decided I would make a mod to fix the issue.



I changed the problem line in the technology definition from this:



[CODE][/CODE]



to this:



[CODE]

[/CODE]



I am now seeing the infiltrated hero bonus applied to hero XP, but it's always 0. (See below screenshots.)



What have I done wrong? Am I accessing the SpyCount property incorrectly? Am I applying the bonus to hero units wrong? Or maybe, is it just bugged? Any help is appreciated.





0Send private message
9 years ago
Oct 29, 2015, 11:02:05 PM
The SpyCount property belongs to ClassEmpire (aka EmpireTypeMajor) while the ExperienceGainPerTurn property belongs to UnitHero. My guess is that you are attempting to access a nonexistent SpyCount property under the UnitHero class, which is why you're adding zero. Try modifying your call to $(SpyCount) to $Property(EmpireTypeMajor:SpyCount). I found examples of calls like this in DepartmentOfScience+Constructibles[].xml, specifically the technology cost lines. Let us know if this works, as it seems like an easy fix to make.
0Send private message
?

Click here to login

Reply
Comment