First post in the modding subforum!
So I posted an idea of mine here and wanted to try it out on a modded map. I've already tried a bit through some trial and error without luck.
Question: Is there a way to define different properties for a unit for different factions? I'm looking for the medium tank 2TNK to cost 1050 for Germany and 850 for France/England. Also I'm looking for the 90mm weapon to do different damage for different factions as well. I've recently delved into map modding so I'm currently on a steep learning curve
Defining different properties for different factions.
-
- Posts: 56
- Joined: Wed Apr 02, 2014 8:42 pm
- Location: Mars
I managed to make a German Medium Tank inherit the regular Medium Tank and fix prerequisites as to make it exclusive to Germany, plus make the regular Medium Tank exclusive to the remaining Allied factions.
Looking good!
The 90mm weapon change was easy in comparison:
German Medium Tank:
German 90mm.
Didn't think modding would be so rewarding!
Looking good!
The 90mm weapon change was easy in comparison:
German Medium Tank:
Code: Select all
2TNK:
Buildable:
Prerequisites: fix, ~vehicles.allies, ~!vehicles.germany, ~techlevel.medium
2TNK.Germany:
Inherits: 2TNK
Buildable:
Prerequisites: fix, ~vehicles.germany, ~techlevel.medium
Valued:
Cost: 1050
Tooltip:
Name: German Medium Tank
Description: German Main Battle Tank.\n Strong vs Vehicles\n Weak vs Infantry, Aircraft
Turreted:
TurnSpeed: 4
Armament:
Weapon: 90mm.Germany
RenderSprites:
Image: 2tnk
Code: Select all
90mm.Germany:
Inherits: 90mm
Warhead@1Dam: SpreadDamage
Versus:
Heavy: 125
- Graion Dilach
- Posts: 277
- Joined: Fri May 15, 2015 5:57 pm
Re: Defining different properties for different factions.
*achievement unlocked: succesfully opened pandora's box*SoScared wrote: ↑First post in the modding subforum!