Logo Platform
logo amplifiers simplified

Perform actions of Affinity during runtime?

Reply
Copied to clipboard!
8 years ago
Sep 25, 2016, 2:32:30 AM

Is it possible to change values or run a command on an affinity during run time? For example take the below affinity, would it be possible to change the Cost value (i.e. from a setting) or run an "CreateArmy" command on the FactionAffinity? All before an actual match begins, during the setup or right when it starts.

<FactionAffinity                  Name="AffinityBrokenLords"                  SubCategory="MajorFactionAffinity"    Hidden="false" Cost="80">
    <SimulationDescriptorReference  Name="AffinityBrokenLords"/>
    <DefaultAffinityMapping         Name="AffinityMappingBrokenLords"/>
    <Personality                    Name="PersonalityAffinityBrokenLords"/>
    <SubTrait                       Name="FactionTraitBrokenLordsMainQuest"                                           Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitBrokenLords2"/>                 <!-- Affinity: Appetite for Dust -->
    <SubTrait                       Name="FactionTraitBrokenLordsUnit1"/>
    <SubTrait                       Name="FactionTraitBrokenLordsUnit2"/>
    <SubTrait                       Name="FactionTraitBrokenLordsUnit3"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
</FactionAffinity>

0Send private message
8 years ago
Oct 7, 2016, 6:14:28 PM

I would also like to know about this.  I would like to have an ability to call the Cost value so as to make a variable Trait Point cap without having to swap mods to do it... I have everything I need except a Path that would allow me to properly target it.  I have looked in the heiarchy shown in the SimulationDescriptors[class].xml, but to no avail.  All I need is to be able to target that portion... is there any way to do this?

0Send private message
?

Click here to login

Reply
Comment