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

Tsentom1 Python Promotions

Discussion in 'Civ4 - Mod Components' started by tsentom1, Jan 24, 2009.

  1. smeagolheart

    smeagolheart Monarch

    Joined:
    Sep 4, 2007
    Messages:
    924
    Location:
    Phoenix, AZ
    Hey quick question, how tough would it be to limit the skirmisher promotion to 1 extra move per turn as opposed to the limit of 10 or so.

    I'm thinking maybe add a new global or something to keep track of victories, but maybe you know an easier way.
     
  2. Cybah

    Cybah Emperor

    Joined:
    Jun 22, 2007
    Messages:
    1,481
    How can I prevent the marauder promotion from working against barbarians (and animals) ?

    [ need something like: if playerY is not barbar ]

    edit: nevermind. got it:

    PHP:
    if ((pWinner.isHasPromotion(gc.getInfoTypeForString('PROMOTION_MARAUDER'))) and (not pLoser.isBarbarian())):
     
  3. tsentom1

    tsentom1 Bubble Dragon

    Joined:
    Jul 24, 2007
    Messages:
    1,000
    Location:
    New York
    Code:
    	if pLoser.getUnitCombatType() != gc.getInfoTypeForString('UNITCOMBAT_ANIMAL'):
    
            	   if (pLoser.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_BARBARIAN')):
     
  4. Cybah

    Cybah Emperor

    Joined:
    Jun 22, 2007
    Messages:
    1,481
    well. thanks anyway. ;) did not look for new posts. :)
     

Share This Page