1. Firaxis celebrates the "Asian American and Pacific Islander Heritage Month", and offers a give-away of a Civ6 anthology copy (5 in total)! For all the details, please check the thread here. .
    Dismiss Notice
  2. We have selected the winners of the Old World random draw and competition. For the winning entries, please check this thread.
    Dismiss Notice

[BTS Python/XML] Petra Mod (UB Wonder Mod)

Discussion in 'Civ4 - Mod Components' started by GIR, Aug 28, 2007.

  1. GIR

    GIR It'sNotStupidIt'sAdvanced

    Joined:
    Jul 12, 2005
    Messages:
    884
    Location:
    EU
    update: version1.1

    Here is another mini mod:

    PetraMod (UB Wonder Mod)

    It adds a new Wonder: (The city of) Petra (building (Petra Monastery) by hrochland)
    The wonder building is more or less a placeholder but I don’t know what ancient building fit better to the python code.
    The wonder comes with a nice python code:

    The Petra Wonder gives you the ability to use Unique Buildings (UB) from other civilizations.
    With this wonder you can capture enemy UBs. That means when you conquer a roman city with a Forum in it you will get the Forum and not only a plain Market. Of course you will only get it if it’s not destroyed by your attack.
    Also you will get a UB replacement after building a city improvement that is a UB of one of your Vassals and you will get a 25% chance to build a UB instead of the default building in the home city.


    Some pics:




    Have fun!

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




     
  2. hrochland

    hrochland Prince

    Joined:
    Apr 9, 2006
    Messages:
    2,354
    Location:
    Czech Kingdom
    This is good too:goodjob:
     
  3. keldath

    keldath LivE LonG AnD PrOsPeR

    Joined:
    Dec 20, 2005
    Messages:
    7,043
    Location:
    israel
    gir!
    see your back in bussines!!!

    why not create your promotion system from sevo mod? that would be awesome
     
  4. Impaler[WrG]

    Impaler[WrG] Civ4:Col UI programmer

    Joined:
    Dec 5, 2005
    Messages:
    1,750
    Location:
    Vallejo, California
    A very original Idea indeed, I think you could even go up a notch or two on the effect like ...

    "Build unique Buildings of your Vassals"
    "Build unique Buildings of Foreign Cultures in your Cities" (some threshold would be required)
    "Build unique Buildings of your Allies"
    "Build unique Buildings of opponents you have Infiltrated" (espionage ratio or some such thing)

    Then drop the other effects so its laser focused on the new effect (I always think one big effect is better then several small ones).
     
  5. GIR

    GIR It'sNotStupidIt'sAdvanced

    Joined:
    Jul 12, 2005
    Messages:
    884
    Location:
    EU
    jeha, i will see what i can do - i'll make a few spin-off mods of my old add-on mod and the promotion system will be one of them.
     
  6. GIR

    GIR It'sNotStupidIt'sAdvanced

    Joined:
    Jul 12, 2005
    Messages:
    884
    Location:
    EU
    ohh, that are very nice ideas!
    the one with the vassals is really great! (i hate the vassals because it's some kind of weak in my opinion but with this it will make it worth (at least more than before)).


    what do you mean with "other effects"? do you mean the trade routes and defence stuff? if yes, i would love to but unfortunately if i drop them the AI won't build the wonder (<- because the AI dont know the python effects). so it's some kind of ballancing.


    edit:
    @ Impaler[WrG]
    btw, is it possible to make a python/xml mod like this modular?
    i tried it but i don't know how this should work with the python code...
     
  7. GIR

    GIR It'sNotStupidIt'sAdvanced

    Joined:
    Jul 12, 2005
    Messages:
    884
    Location:
    EU
    update: version1.1
    add the vassal feature and a 25% chance for the home city of the wonder...
     
  8. Impaler[WrG]

    Impaler[WrG] Civ4:Col UI programmer

    Joined:
    Dec 5, 2005
    Messages:
    1,750
    Location:
    Vallejo, California
    The xml portions yes, the Python could use the DEJ eventmanager to be the closest thing to modular for python but you would still have two 'chunks' to plug in and it wouldn't be truely modular in that respect.

    Implementing the logic in the SDK could allow full modular function (with the aproprite DLL ofcourse) and allow the AI to recognize the effect. I'd sugjest playing around with the additional effects in Python first and getting a feel for balance and fun. Then a convertion to SDK could be tried, I'll sugjest it to the WoC team when you think its ready.

    P.S. I think Alhambra would be a good wonder to link this effect too, the flavor is good cause its a Moorish fortress/mosque that was taken by Spain so the effect and history jive. I don't know if anyones done artwork for it though, perhaps it could be commissioned.
     
  9. kristopherb

    kristopherb Protective/Charismatic

    Joined:
    May 23, 2006
    Messages:
    2,210
    Location:
    British Empire Soul:Tesco
    Whoa nice sweet idea. :goodjob:
     
  10. boazman

    boazman Chieftain

    Joined:
    Jan 28, 2006
    Messages:
    41
    Thanks! That's exactly what I'm looking for. The download link seems to be broken though.
     
  11. OzzyKP

    OzzyKP Emperor

    Joined:
    Dec 16, 2000
    Messages:
    1,729
    Location:
    Washington, DC USA
    Excellent stuff. :goodjob:

    Love to see this reuploaded.
     
  12. eukaliptus

    eukaliptus Chieftain

    Joined:
    Oct 13, 2007
    Messages:
    22
    GIR if you're still around I sent you PM about Petra
     
  13. turingmachine

    turingmachine Emperor

    Joined:
    May 4, 2008
    Messages:
    1,438
    Gir's gone, I suggest you ask your question to tsentom1, he seems to be the one making python wonders these days.
     

Share This Page