Replicating TS Component Tower Weapon Logic
|
|
This tutorial will show you how to replicate the Tiberian Sun Component Tower's weapon logic, i.e. you build an unarmed base structure, then can choose between three weapons to apply to it. Once one is applied, the others cannot be.
Required Items:
Now, firstly you will be working with several XML files.
You will also need to copy the UnitAbilityButtonTemplates.xml file from the CnC3XML folder. Make sure to change the id tag under UnitAbilityButtonTemplateStore to something different than what it currently is.
Required Items:
- An XML Editor (Notepad will do if you have nothing else, but I recommend Notepad++)
- The latest version of the C&C3 Mod SDK.
- Brain / Intelligence
- Basic knowledge of mod directory structure, string files, building mods and C&C3 XML.
Now, firstly you will be working with several XML files.
- GDIComponentTower.xml - This will be used to hold the Component Tower itself.
- LogicCommand.xml - this will contain your CommandButtons, (don't copy the existing one, we're only putting new buttons in this one),
- LogicCommandSet.xml - This will contain your CommandSets (don't copy the existing one).
- NewUpgrades.xml - This will contain your new upgrades.
You will also need to copy the UnitAbilityButtonTemplates.xml file from the CnC3XML folder. Make sure to change the id tag under UnitAbilityButtonTemplateStore to something different than what it currently is.