Logo Platform
logo amplifiers simplified

Noob question: How to 'AND' in a path statement?

Reply
Copied to clipboard!
7 years ago
Aug 16, 2018, 2:07:39 AM

Hello everybody,


first post here so please be gentle :)


I'm trying to change how the pillaging/razing thing works for the Vodyani. The mechanic in general seems to be defined in TemporaryEffectDefinitions[DLC2].xml together with SimulationDescriptors[DLC2].xml.


Code:


<TemporaryEffectDefinition Name="SystemPillageHappinessMalus" Category="LawEffects" Duration="5">
        <Path>ClassEmpire/ClassSenate</Path>
        <SimulationDescriptorReference Name="TemporaryEffectSystemPillageHappinessMalus"/>
</TemporaryEffectDefinition>


<SimulationDescriptor Name="TemporaryEffectSystemPillageHappinessMalus" Type="TemporaryEffect">
        <Modifier TargetProperty="Happiness" Operation="Addition" Value="-10" Path="ClassSenate,!GovernmentDictatorship,!GovernmentDictatorshipCravers/../ClassEmpire/ClassColonizedStarSystem" TooltipOverride="%HappinessOnNonDictatorship"/>
</SimulationDescriptor>

Now let's assume I simply want to exempt the Vodyani from the mechanic entirely: I would need to insert some kind of 'AND' statement to the government check, I suppose, but how would I do that? The syntax does not seem to be made for 'AND' structures. Would I plop a PathPrerequisite statement in one of the files instead?


Bonus question: Is there a full path listing anywhere? The manual only has a brief sample, but I find it very hard to get a good grasp of where I am and where I need to go...


Could somebody lend me a hand, please?


Thanks for your time,

T.

Updated 7 years ago.
0Send private message
7 years ago
Aug 16, 2018, 8:19:44 AM

Hey terodil,


The solution is actually very simple :)

You just need to modify the path "ClassSenate,!GovernmentDictatorship,!GovernmentDictatorshipCravers/../ClassEmpire/ClassColonizedStarSystem" to include a check on the empire's gameplay affinity, like so: "ClassSenate,!GovernmentDictatorship,!GovernmentDictatorshipCravers/../ClassEmpire,!AffinityGameplayVampirilis/ClassColonizedStarSystem".


The effect can be described as following: "If applied on the senate which is not a Dictatorship or an Autocracy, move up to the empire then back down on the systems and add -10 happiness."

The new version is: "If applied on the senate which is not a Dictatorship or an Autocracy, move up to the empire if it is not a Vodyani then back down on the systems and add -10 happiness."

0Send private message
7 years ago
Aug 16, 2018, 8:29:41 AM

MonAmiral, thank you so much for this quick and helpful answer! I feel rather stupid now, I really have not got the hang of paths yet. If I might impose once more, is there any more documentation on this feature anywhere? The modding guide PDF was all too brief and I haven't seen anything in the stickies (though... that doesn't mean much in my case)...

0Send private message
0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message