[BTS Python/XML] KGB Wonder

Discussion in 'Civ4 - Mod Components' started by GIR, Feb 13, 2008.

  1. GIR

    GIR It'sNotStupidIt'sAdvanced

    Joined:
    Jul 12, 2005
    Messages:
    884
    Location:
    EU
    update: new KGB building

    Here is another little mini mod:

    KGB Wonder
    (It was part of the GIRs Sevomod Add-On)

    It adds a new Wonder: KGB (KGB building by asioasioasio)
    It also adds a little python code:

    The KGB provides 3 Spies with Sentry, Morale and Mobility Promotion. It also provides a Sentry Promotion to all new build Spies (built in any of your cities).

    Sentry: +1 Visibility Range

    Morale: +1 Movement Range

    Mobility: -1 Terrain Movement Cost


    Some pics:



    Pics of the in-game KGB Building (thx to asioasioasio for creating it) :



    Have fun!

    File:
    http://forums.civfanatics.com/downloads.php?do=file&id=8397




     
  2. Chuggi

    Chuggi Espada

    Joined:
    Jan 2, 2007
    Messages:
    2,369
    Location:
    Australia
    Sounds cool. :) Can you remind me what sentry, morale and mobility does again? It's been too long since I played civ :( I remember always picking morale when I attached a great general to a unit though.
     
  3. hrochland

    hrochland Prince

    Joined:
    Apr 9, 2006
    Messages:
    2,341
    Location:
    Czech Kingdom
    :thumbsup: :goodjob: , Awesome, thanks you for this :thumbsup:
     
  4. asioasioasio

    asioasioasio Fallout Scrubber

    Joined:
    Mar 4, 2006
    Messages:
    3,058
    Location:
    Poland, EU
    Wow great wonder - i'll use it

    I have a question

    if i change
    if iBuildingType == gc.getInfoTypeForString( 'BUILDING_KGB' )
    u_spy = gc.getInfoTypeForString( 'UNIT_SPY' )
    if ( pUnit.getUnitClassType() == gc.getInfoTypeForString("UNITCLASS_SPY") ):
    if pCity.getNumActiveBuilding(gc.getInfoTypeForString( 'BUILDING_KGB' )) == true:

    and change there UNITCLASS_SPY BUILDING_KGB to other - i could get than other buildings and units?
     
  5. GIR

    GIR It'sNotStupidIt'sAdvanced

    Joined:
    Jul 12, 2005
    Messages:
    884
    Location:
    EU
    added it in the first post...

    yes! thats all.
     
  6. hrochland

    hrochland Prince

    Joined:
    Apr 9, 2006
    Messages:
    2,341
    Location:
    Czech Kingdom
    Please, GIR, for change for example in this line:
    pNewUnit = pPlayer.initUnit( u_spy, iX, iY, UnitAITypes.UNITAI_ATTACK, DirectionTypes.NO_DIRECTION )

    i don´t understand u_spy args. For example archer in this have be u_archer???
     
  7. Chuggi

    Chuggi Espada

    Joined:
    Jan 2, 2007
    Messages:
    2,369
    Location:
    Australia
    Thanks! :) Quite a useful wonder as well!
     
  8. hrochland

    hrochland Prince

    Joined:
    Apr 9, 2006
    Messages:
    2,341
    Location:
    Czech Kingdom
    Sorry. I´m not programmer but for second view I see you define u_spy is...
    sorry and thanks for it
    It is very helpful concept. Excellent work

    HROCHland
     
  9. asioasioasio

    asioasioasio Fallout Scrubber

    Joined:
    Mar 4, 2006
    Messages:
    3,058
    Location:
    Poland, EU
    BTW GIR.
    Do you want model of KGB on Lubyanka?
    It should be pritty simple to model i could make it.
     
  10. GIR

    GIR It'sNotStupidIt'sAdvanced

    Joined:
    Jul 12, 2005
    Messages:
    884
    Location:
    EU
    yeha, that would be great !
     
  11. asioasioasio

    asioasioasio Fallout Scrubber

    Joined:
    Mar 4, 2006
    Messages:
    3,058
    Location:
    Poland, EU
  12. GIR

    GIR It'sNotStupidIt'sAdvanced

    Joined:
    Jul 12, 2005
    Messages:
    884
    Location:
    EU
  13. Xenomorph

    Xenomorph King

    Joined:
    Oct 7, 2007
    Messages:
    972
    Awesome model. Much better than the hospital reskin. :lol:
    That Da Vinci's workshop one would be great to have next (all units upgraded for free? Awsome!). Hell, all those neat python-related wonders from your Sevomod Add-on would be great to have either individually or as a complete stand-alone package.
     
  14. GIR

    GIR It'sNotStupidIt'sAdvanced

    Joined:
    Jul 12, 2005
    Messages:
    884
    Location:
    EU
    well, i can't promise that but i will try to make one or two more mini mods in the next few weeks...
     
  15. Xenomorph

    Xenomorph King

    Joined:
    Oct 7, 2007
    Messages:
    972
  16. asioasioasio

    asioasioasio Fallout Scrubber

    Joined:
    Mar 4, 2006
    Messages:
    3,058
    Location:
    Poland, EU
    I'm not fully happy with the roof - but it's best what i can get from Google Earth (the photo was shoot from angle).

    I would be glad to see wonder units - the unit that can be built only in one example and only once.
     
  17. GIR

    GIR It'sNotStupidIt'sAdvanced

    Joined:
    Jul 12, 2005
    Messages:
    884
    Location:
    EU
    --> http://forums.civfanatics.com/showthread.php?t=263722
     
  18. Xenomorph

    Xenomorph King

    Joined:
    Oct 7, 2007
    Messages:
    972
    I did that with Chuck Norris. :D
     
  19. asioasioasio

    asioasioasio Fallout Scrubber

    Joined:
    Mar 4, 2006
    Messages:
    3,058
    Location:
    Poland, EU
    Lol good example :p
    Is it python modcomp? or chuck doesn't need any code to kick ennemies? ;)
     
  20. GIR

    GIR It'sNotStupidIt'sAdvanced

    Joined:
    Jul 12, 2005
    Messages:
    884
    Location:
    EU
    but when he dies you can build him again - or is it possible to prevent this without python?
     

Share This Page