Announcement

Collapse
No announcement yet.

Converting units to PW

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

  • Converting units to PW

    The idea is a unit, that after a certain event is turned into PW points. I know that this may sound strange, but do any of you modders think it is possible? If so, what do you think the best path for implementing it into a scenario/mod would be?

  • #2
    Sure it's possible. All that's required is to kill the unit (KillUnit(tmpUnit);) and add PW points (pw = player[5].publicworkslevel; SetPW(tmpPlayer, (pw + bonus);). If you want to make the amount of PW you get dependant on the cost of the unit, use UnitDB(tmpUnit.type).ShieldCost.
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

    Comment


    • #3
      Thanks Locutus. Sometimes I feel like I may be biting off more than I can chew, but thanks to SLIC studs like yourself, I'm learning more and more about this stuff everyday

      Comment


      • #4
        why public works you can mod it to gold as well just use the
        givegold(player, amount);
        command
        "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
        The BIG MC making ctp2 a much unsafer place.
        Visit the big mc’s website

        Comment

        Working...
        X