How can i create RandomEvent that give several different population? 6 years ago
I want add Sowers, Sefaloros, Mavros, pulsos, Niris, Amoeba to giving Haroshems randomevent, but it dosen't go well.
Where should I fix parts of xml to work properly?
<!--#######################################-->
<!--######## BABIES NOT BOOMS ########-->
<!--#######################################-->
-<QuestDefinition TriggeringProbability="0.6" MinimumTurn="20" SubCategory="Random" Category="Event" Name="EventRandom07" IsInstant="true">
<!--============ TAGS ============-->
<Tags>BeginTurn</Tags>
<QuestContextSolo/>
<RepetitionRules NumberOfConcurrentInstances="0" NumberOfOccurrencesPerEmpire="1" NumberOfOccurrencesPerGame="0"/>
<!--============ VARIABLES ============-->
-<Vars>
-<Var VarName="$EffectTarget1">
<From Source="$Empire"/>
</Var>
-<Var VarName="$AvailableSystem">
-<Any>
-<From Source="$EffectTarget1.$ColonizedStarSystems">
-<Where>
<InterpreterPrerequisite Flags="Prerequisite">((Property(Context, @'ClassColonizedStarSystem', MaximumPopulation))-(Property(Context, @'ClassColonizedStarSystem', Population))) ge 1</InterpreterPrerequisite>
<PathPrerequisite Flags="Prerequisite" Inverted="true">ClassColonizedStarSystem,ColonizedStarSystemStateOutpost</PathPrerequisite>
</Where>
</From>
</Any>
</Var>
-<Var VarName="AvailableSystemLocation">
<From Source="$AvailableSystem.$StarSystem"/>
</Var>
<Var VarName="$Amount01" IntValue="1"/>
<Var VarName="$Affinity" StringValue="AffinityHaroshems"/>
<Var VarName="$Marker01"/>
<LocalizationVar Source="AvailableSystemLocation" LocalizationKey="$MySystemName"/>
</Vars>
<!--============ PREREQUISITES ============-->
-<Prerequisites Target="$(Empire)">
<PathPrerequisite Flags="Prerequisite" Inverted="true">ClassEmpire,AffinityGameplayVampirilis</PathPrerequisite>
</Prerequisites>
<!--============ STEPS ============-->
-<Steps>
-<Step Name="Step1">
-<ObjectiveSet>
-<StartActions>
-<Action_SpawnPopulation LocalizationKey="%EventRandom07EffectTitle" LogAction="true">
<Input_Empire VarName="$EffectTarget1"/>
<Input_System VarName="AvailableSystemLocation"/>
<Input_Amount VarName="$Amount01"/>
<Input_PopulationAffinity VarName="$Affinity"/>
</Action_SpawnPopulation>
-<Action_AddQuestMarkers>
<Input_Targets VarName="AvailableSystemLocation"/>
<Input_Empires VarName="$EffectTarget1"/>
<Output_Markers VarName="$Marker01"/>
</Action_AddQuestMarkers>
</StartActions>
-<Objective Name="Step2_1_Objective1">
-<Sequence>
<Decorator_BeginTurn/>
-<Action_RemoveQuestMarkers>
<Input_Markers VarName="$Marker01"/>
</Action_RemoveQuestMarkers>
</Sequence>
</Objective>
</ObjectiveSet>
</Step>
</Steps>
</QuestDefinition>