Logo Platform
logo amplifiers simplified

Dynamic Values

Reply
Copied to clipboard!
8 years ago
Dec 26, 2016, 4:41:31 AM

So 'm currently trying to change the forgotten's faction trait "science phobic" so that instead of just eliminating science altogether it converts the science on tiles into dust (either at 100% or 50%) but i can't seem to find a way to do this with the addition function. in all the simulation files i've seen (and all the effects i can think of) there isn't a mechanic nearly as dynamic. everything is percents or flat addition/subtraction.


additionally, i'm quite new to this :P thank you all in advance.


Edit: i have since tried adding the following line


<SimulationModifierDescriptor TargetProperty="DistrictDust"  Operation="Addition"       Value="$(DistrictScience)" Path="EmpireTypeMajor,AffinityReplicants/ClassCity/ClassDistrict,TerrainTagScience" Priority="1"/>


and if i leave the line that multiplies DistrictScience by 0 i get no changes. If i remove that line then what i get is science showing up on tiles, and when science shows up and no natural dust there's 0 dust... but the display shows 0 dust where it wouldn't show it at all. scrolling over those tiles shows no tooltip dedicated to dust. I feel like i'm so close :(



Updated 8 years ago.
0Send private message
8 years ago
Mar 15, 2017, 9:15:28 AM


hawking wrote:

So 'm currently trying to change the forgotten's faction trait "science phobic" so that instead of just eliminating science altogether it converts the science on tiles into dust (either at 100% or 50%) but i can't seem to find a way to do this with the addition function. in all the simulation files i've seen (and all the effects i can think of) there isn't a mechanic nearly as dynamic. everything is percents or flat addition/subtraction.


additionally, i'm quite new to this :P thank you all in advance.


Edit: i have since tried adding the following line


<SimulationModifierDescriptor TargetProperty="DistrictDust"  Operation="Addition"       Value="$(DistrictScience)" Path="EmpireTypeMajor,AffinityReplicants/ClassCity/ClassDistrict,TerrainTagScience" Priority="1"/>


and if i leave the line that multiplies DistrictScience by 0 i get no changes. If i remove that line then what i get is science showing up on tiles, and when science shows up and no natural dust there's 0 dust... but the display shows 0 dust where it wouldn't show it at all. scrolling over those tiles shows no tooltip dedicated to dust. I feel like i'm so close :(

<BinarySimulationModifierDescriptor TargetProperty="DistrictDust"  Operation="Addition"   BinaryOperation="Multiplication" Left="1" Right="$(DistrictScience)" IsBindOnSource="false" Path="EmpireTypeMajor,AffinityReplicants/ClassCity/ClassDistrict,TerrainTagScience" Priority="1"/>


This syntax should work, it's like that are made dynamics operations

0Send private message
?

Click here to login

Reply
Comment