Announcement

Collapse
No announcement yet.

Help with XML text.

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

  • Help with XML text.

    I am trying to change the type of cargo that a caravel can carry to include settlers and workers, along with special units such as explorers.

    I found the location in the unit document where I need to make the change:

    SPECIALUNIT_PEOPLE

    But my question is, how do I include non-special units with special units? Do I make another cargo line for settlers and workers right below the line? If so, how do I type the line for settler and worker cargo?


    Thank you for any help.
    A lot of Republicans are not racist, but a lot of racists are Republican.

  • #2
    I haven't checked this in the source code but the first thing I would try would be to change the line

    Code:
    < UnitInfo>
    	< Class>UNITCLASS_WORKER< /Class>
    	< Type>UNIT_WORKER< /Type>
    	< UniqueNames/>
    	< Special>NONE< /Special>      <= this one here
    	< Capture>UNITCLASS_WORKER< /Capture>
    to

    Code:
    	< Special>SPECIALUNIT_PEOPLE< /Special>
    (Without the spaces I put in to show the XML tags.) Likewise for settlers. And keep your fingers crossed that it doesn't screw anything up.

    Comment


    • #3
      I thought about doing already -- but as you said, changing the status of the Worker, Indian Worker, and Settler could screw other aspects of the game.

      I'm hoping someone who has already done this, will read this thread and tell me if there are any adverse effects that they know of.
      A lot of Republicans are not racist, but a lot of racists are Republican.

      Comment

      Working...
      X