Announcement

Collapse
No announcement yet.

add new xml tags for a unit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • add new xml tags for a unit

    How do you add/create a new xml tag for a unit. Say you want to create a new unit ability and then have an xml tag that flags whether or not a particular unit has this ability.

    What are the required steps?

    Been searching several forums on the SDK and cannot find the answer.

    Thanks in advance.

  • #2
    1. Define the tag in the XML schema file.
    2. Add the tag in the actual XML file.
    3. Tell the SDK to read, load and save the new tag.
    4. Tell the SDK what to do with the new tag.

    Easy.

    Comment


    • #3
      Man oh, man.

      3 days and the trick was adding "bVisible1/bVisible" in brackets in front of the button in Civ4MissionInfos.xml!

      Wrote it, rewrote it, went through steps by step ... Good Lord!

      Comment


      • #4
        Problem now is that all units have the ability even though in the .xml file only a few have the boolean switch turned on.

        It's late, I've hit a wall. Any ideas?

        Comment

        Working...
        X