Replicating TS Component Tower Weapon Logic

Avatar of Nighthawk

Nighthawk

Category: Code
Level: Intermediate
Created: Saturday December 1, 2007 - 15:50
Updated: Saturday July 11, 2009 - 16:29
Views: 3372
Summary: Tutorial on replicating the upgrade weapon logic of the TS Component Tower.
Rating
  • Staff-
  • Members-
  • Average-

0 votes

Page 1 2 3 4 5 6
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:
  • An XML Editor (Notepad will do if you have nothing else, but I recommend Notepad++)
  • The latest version of the C&C3 Mod SDK.
  •     -UnitAbilityButtonTemplates.xml will have to be copied from the base files.
  • 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.

Return to top