The code for allying is the following:
[/strike]
Code: Select all
<'Effect type ='TechStatus' status ='obtainable'>'ypConsulateRelationsBritish<'/Effect>'
<'Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractVillager<'/Target>'<'/Effect>'
<'Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractInfantry<'/Target>'<'/Effect>'
<'Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractCavalry<'/Target>'<'/Effect>'
<'Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractArtillery<'/Target>'<'/Effect>'
<'Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'Surgeon<'/Target>'<'/Effect>'
The code for breaking relations is the following:
[/strike]
Code: Select all
<'Effect type ='TechStatus' status ='unobtainable'>'ypConsulateRelationsBritish<'/Effect>'
<'Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractArtillery<'/Target>'<'/Effect>'
<'Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractCavalry<'/Target>'<'/Effect>'
<'Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractInfantry<'/Target>'<'/Effect>'
<'Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'Surgeon<'/Target>'<'/Effect>'
Who thought this was a good idea? Multiplying a number by 1,10 and then by 0,9 does not give you the original value.
150*1,1=165
165*0,9=148,5
So basicly, each time you break relations with Brits, you lose 1% hp on all your units. [/strike]
It's even worse for Japanese.
When you isolate:
Code: Select all
<'Effect type ='Data' amount ='1.05' subtype ='Damage' allactions ='1' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractCavalry<'/Target>'<'/Effect>'
<'Effect type ='Data' amount ='1.05' subtype ='Damage' allactions ='1' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractArtillery<'/Target>'<'/Effect>'
<'Effect type ='Data' amount ='1.05' subtype ='Damage' allactions ='1' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractVillager<'/Target>'<'/Effect>'
When you break relations:
Code: Select all
<'Effect type ='Data' amount ='0.90' subtype ='Damage' allactions ='1' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractArtillery<'/Target>'<'/Effect>'
<'Effect type ='Data' amount ='0.90' subtype ='Damage' allactions ='1' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractCavalry<'/Target>'<'/Effect>'
<'Effect type ='Data' amount ='0.90' subtype ='Damage' allactions ='1' relativity ='BasePercent'>'
<'Target type ='ProtoUnit'>'AbstractInfantry<'/Target>'<'/Effect>'
:whistling: