Here is the code I used in the .ini file:
ModifierList MyDamageBonus
Modifier = DAMAGE_MULT 50% //100% change nothing. 0% is no Damage. 200% is double Damage
Duration = 0 //Always
End
Object AmonSulTower
AddModule
Behavior = AttributeModifierUpgrade ModuleTag_PvDAiscool
TriggeredBy = Upgrade_Upgrade_AllFactionUpgrade //Always
AttributeModifier = MyDamageBonus
End
End
End
ModifierList MyDamageBonus
Modifier = DAMAGE_MULT 50% //100% change nothing. 0% is no Damage. 200% is double Damage
Duration = 0 //Always
End
Object AmonSulTower2
AddModule
Behavior = AttributeModifierUpgrade ModuleTag_PvDAiscool
TriggeredBy = Upgrade_Upgrade_AllFactionUpgrade //Always
AttributeModifier = MyDamageBonus
End
End
End
This is what the error message says:
An upgrade mask references Upgrade_Upgrade_AllFacti onUpgrade, which is not an upgrade
Error parsing field 'TriggeredBy' in block 'Object' in file 'c:\users\****\appdata\roaming\my the lord of the rings, the rise of the witch king files\maps\tarnost\map.ini', line 8.
Error parsing field 'TriggeredBy' in block 'Object' in file 'c:\users\****\appdata\roaming\my the lord of the rings, the rise of the witch king files\maps\tarnost\map.ini', line 8.
Error parsing field 'TriggeredBy' in block 'Object' in file 'c:\users\****\appdata\roaming\my the lord of the rings, the rise of the witch king files\maps\tarnost\map.ini', line 8.
Error parsing INI block ' Triggered by' in file 'c:\users\****\appdata\roaming\my the lord of the rings, the rise of the witch king files\maps\tarnost\map.ini'.
7 adresses:
(unknown)(0): game.dat+239838 Debug::PostStaticInit+3390
(unknown)(0): game.dat+2334561 StringBase<char>::~StringBase<char>+250781
(unknown)(0): game.dat+11454 operator<<<char>2072
(unknown)(0): game.dat+6541831 Xfer::operator==+119943
(unknown)(0): kernell32.dll+78730 BaseThreadInitThunk+18
(unknown)(0): ntdll.dll+235778 RtInitializeExceptionCha in+99
(unknown)(0): ntdll.dll+235733 RtInitializeExceptionCha in+54
Because of this severety the game will now exit.
Now I get another error message, almost identical:
Unknown block 'Modifier'.
Error parsing INI block 'Modifier' in file 'c:\users\****\appdata\roaming\my the lord of the rings, the rise of the witch king files\maps\tarnost\map.ini'.
7 adresses:
(unknown)(0): game.dat+239838 Debug::PostStaticInit+3390
(unknown)(0): game.dat+2334561 StringBase<char>::~StringBase<char>+250781
(unknown)(0): game.dat+11454 operator<<<char>2072
(unknown)(0): game.dat+6541831 Xfer::operator==+119943
(unknown)(0): kernell32.dll+78730 BaseThreadInitThunk+18
(unknown)(0): ntdll.dll+235778 RtInitializeExceptionCha in+99
(unknown)(0): ntdll.dll+235733 RtInitializeExceptionCha in+54
Because of this severety the game will now exit.
EDIT: The updated map.ini file I made:
ModifierList MyDamageBonus
Modifier = DAMAGE_MULT 50% //100% change nothing. 0% is no Damage. 200% is double Damage
Duration = 0 //Always
End
Object AmonSulTower
AddModule
Behavior = AttributeModifierUpgrade ModuleTag_PvDAiscool
TriggeredBy = Upgrade_AllFactionUpgrade //Always
AttributeModifier = MyDamageBonus
End
End
End
Modifier = DAMAGE_MULT 50% //100% change nothing. 0% is no Damage. 200% is double Damage
Duration = 0 //Always
End
Object AmonSulTower2
AddModule
Behavior = AttributeModifierUpgrade ModuleTag_PvDAiscool
TriggeredBy = Upgrade_AllFactionUpgrade //Always
AttributeModifier = MyDamageBonus
End
End
End