1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Unique Great General Problem

Discussion in 'Civ4 - Creation & Customization' started by eggs2121, Oct 6, 2008.

  1. eggs2121

    eggs2121 Chieftain

    Joined:
    May 8, 2008
    Messages:
    34
    I've created a unit I call GREAT_COMMANDER to be a unique civ specific unit. I've created it normally like I would any other unique unit. In the civilopedia, the unit shows up as a unique unit to replace Great General for the civilization. However, in the game, the normal Great General is generated and not the unique unit.

    I've checked my XML and everything appears to be correct.

    Does anyone know why the unique unit is not being generated during gameplay.
     
  2. Refar

    Refar Deity

    Joined:
    Apr 10, 2005
    Messages:
    4,608
    It might be impossible to make unique great people. The GPP are for a specific Unit, and there is probably just no check for a UU replacement when one is created in the game.
     
  3. General Tso

    General Tso Panzer General

    Joined:
    Oct 12, 2007
    Messages:
    1,547
    Location:
    U. S. of A.
    In my mod I have unique generals for each civ, but I did it manually without using the built in unique unit stuff.

    There is a method in CvEventManager called onGreatPersonBorn. Just add a test to see if the great person being born is one that you're interested in. If so Create your new Great Person and delete the original one.
     
  4. Gaius Octavius

    Gaius Octavius Deity

    Joined:
    Jul 28, 2006
    Messages:
    4,016
  5. Refar

    Refar Deity

    Joined:
    Apr 10, 2005
    Messages:
    4,608
    Sure with a SDK change anything can be done.
    Fot the vast mayouty of modders however SDK change is impossible...
     
  6. Gaius Octavius

    Gaius Octavius Deity

    Joined:
    Jul 28, 2006
    Messages:
    4,016
    Which is why we have the Python modcomp. :D
     
  7. rarmonio8920

    rarmonio8920 Chieftain

    Joined:
    Oct 15, 2008
    Messages:
    25
    I've been successful in having a UU for Great Artists, Merchants, Engineers, Scientists, and Prophets... not so much on the Great Generals though.

    I think there was a mod for specific names according to the country for the Great People. The only one that was unsuccessful was the Great General as well.
     

Share This Page