[RESOLVED] Question about PseudoYields

Nerevatar

Warlord
Joined
Mar 17, 2019
Messages
192
I am unsure how PseudoYields is used by the AI, specifically does all AI value each PseudoYields equally? Like if I mark a building as PseudoYield A = 50, will all AIs value it the same?
 
Last edited:
Except where an AI ListType for a given leader has a different (generally higher) PseudoYield setting for a specific PseudoYield, they will "value" the PseudoYield the same.

Table Buildings does not have a PseudoYieldType column like tables Units, GreatPersonClasses, GreatWorkObjectTypes, Strategy_YieldPriorities do.

You cannot state a PseudoYield in any table used for Yield Changes like table "Building_YieldChanges" because columns stated as being "YieldType" require an argument that is a valid YieldType within table "Yields". PseudoYieldTypes are not part of table "Yields".
 
Last edited:
Except where an AI ListType for a given leader has a different (generally higher) PseudoYield setting for a specific PseudoYield, they will "value" the PseudoYield the same.

Table Buildings does not have a PseudoYieldType column like tables Units, GreatPersonClasses, GreatWorkObjectTypes, Strategy_YieldPriorities do.

You cannot state a PseudoYield in any table used for Yield Changes like table "Building_YieldChanges" because columns stated as being "YieldType" require an argument that is a valid YieldType within table "Yields". PseudoYieldTypes are not part of table "Yields".

Thank you for the answer. Just to make sure I understood it correctly:
This code snippet:
<AiFavoredItems>
<Row ListType="AncientPseudoYields" Item="PSEUDOYIELD_DIPLOMATIC_FAVOR" Value="-100"/>
<Row ListType="MedievalPseudoYields" Item="PSEUDOYIELD_DIPLOMATIC_FAVOR" Value="100"/>
</AiFavoredItems>


Would be an example of how a PseudoYield is "valued" differently depending on what era the AI is in?
 
Except where an AI ListType for a given leader has a different (generally higher) PseudoYield setting for a specific PseudoYield, they will "value" the PseudoYield the same.

Table Buildings does not have a PseudoYieldType column like tables Units, GreatPersonClasses, GreatWorkObjectTypes, Strategy_YieldPriorities do.

You cannot state a PseudoYield in any table used for Yield Changes like table "Building_YieldChanges" because columns stated as being "YieldType" require an argument that is a valid YieldType within table "Yields". PseudoYieldTypes are not part of table "Yields".

Hi, sorry for necroing this 2 year old post. I was wondering, if "PseudoYields" are not recognized as a valid argument for, e.g., Great People Points, then how should I name them when creating ModifierArguments to give a specific plot Great People Point yields?

In other words, I'm trying to make it so that, for instance, Mountains yield 0.5 GPP to my custom civilization as part of its Unique Ability.

I'm currently attempting to create a mod, without much coding experience. I noticed you have an extensive modding guide and I'll look at it, although I am already using a Template another user created.
 
Hi, sorry for necroing this 2 year old post. I was wondering, if "PseudoYields" are not recognized as a valid argument for, e.g., Great People Points, then how should I name them when creating ModifierArguments to give a specific plot Great People Point yields?
In other words, I'm trying to make it so that, for instance, Mountains yield 0.5 GPP to my custom civilization as part of its Unique Ability.
You cannot grant GPPs via standard adjacency mechanism. It's not supported (only yields and appeal are). You must use Modifiers and look for a solution suitable for your ideas.
PseudoYields are used by AI for scoring.
 
Back
Top Bottom