Valkrionn
The Hamster King
Posting this here as well just to make sure it's seen; It'll be in 1.4, but it's available now via the SVN (check the RifE Beta forum on our official website for more info on that!).
I've added an entirely new Affinity mechanic, which is open to 40 or so different stats (technically; Several don't work yet, as they don't exist ) and can even add promotions to account for literally every other unit stat.
I've added an entirely new Affinity mechanic, which is open to 40 or so different stats (technically; Several don't work yet, as they don't exist ) and can even add promotions to account for literally every other unit stat.
Valkrionn said:That's right, the new Affinity setup is fully integrated, tested, and working perfectly. We have a new AffinityInfos file, within the Units folder; You can think of them as a new type of promotion, more or less. Units and Promotions can have a list of affinities (currently, no units use the new setup, but the D'teshi and Mechanos affinities have been moved over to it), and items in this list can be clicked, taking you to their page in the pedia.
Affinities have various AffinityTypes, or requirements. Each individual affinity can reference any resource (and multiple affinities can use the same resource!), but there are four new types as well; Number of Cities, Capital Population, Total Population, and Number of Vassals.
Affinities have a wide array of potential effects to choose from; Aside from the D'teshi Entropy Affinity (which was a post-combat effect, and now on the core D'teshi Affinity promotion), all D'teshi and Mechanos Affinity effects are easily possible in pure xml now. Even the Greater Shadow Affinity which granted 1 First Strike per 5 Shadow mana; Each and every single tag accepts Float values, so the tag simply reads 0.20 and both Shadow affects are on the same affinity. :mrgreen:
Affinities are even capable of granting promotions for niche effects (though these are a list, so no float support at this time, sorry; I'll turn it into an array later, so you can grant promotions for every X resource :mrgreen. Assuming these promotions are stackable, you can duplicate the old D'teshi/Mechanos Affinity setups in promotion form with absolutely no python. This helps, as some tags were too underutilized for me to add them. :mrgreen:
There are a few Affinity tags which are loaded into the game, and displayed, but do not yet have an effect on the unit; These will be added as we add the necessary tags.
And now, here's a picture of the D'teshi Shadow Affinity (one of four affinities in existence atm :mrgreen. I'm fairly happy with the way it's organized, and think it's easy to understand; If there's anything we can do to make it better, let me know.
Finally, for those of you interested in the specific capabilities... Here are all the Effect tags (all Requirement/Type tags were mentioned above, just the 5 of them). There may or may not be some surprises in them, but they're in the XML regardless so oh well. :
Code:--Working Properly-- <fStrength/> <fStrengthMod/> <fAttackStrength/> <fDefenseStrength/> <fMovement/> <fMovementDiscount/> <fVisibility/> <fPerception/> <fRangedStrength/> <fRange/> <fRangedLimit/> <fFirstStrikes/> <fFirstStrikeChance/> <fDefensiveStrikes/> <fWithdrawal/> <fXPRate/> <fCommandRange/> <fCommandLimit/> <fWorkRate/> <fCollateral/> <fCollateralLimit/> <fCollateralTargets/> <fVictoryInfluenceModifier/> <fDefeatInfluenceModifier/> <fPillageInfluenceModifier/> <fSlaveChance/> <fCombatHealPercent/> <fEnemyHealChange/> <fNeutralHealChange/> <fFriendlyHealChange/> <AffinityPromotions/> <AffinityDamageTypes/> <AffinityDamageResists/> --Not Yet Implemented-- <fAttackStrengthMod/> <fDefenseStrengthMod/> <fRangedStrengthMod/> <fAntiFirstStrikes/> <fAntiDefensiveStrikes/> <fCapacity/> <fWillpower/> <fAntiWithdrawal/> <fHealRate/> <fXPFromCombat/>