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

Pillage Experience Mod (BTS 3.19)

Discussion in 'Civ4 - Mod Components' started by stolenrays, Oct 4, 2011.

  1. stolenrays

    stolenrays Deity

    Joined:
    Aug 2, 2009
    Messages:
    2,061
    Pillage Experience MOD v1.3 (BTS 3.19)​


    This is a simple Mod that makes it so that units gain experience when :gold:pillaging:gold: improvements. This includes land and sea units. In addition, successfully :gold:blockading:gold: naval routes also accumulates naval XP. A Custom Game Option allows you to turn the mod on/off from the Custom Game Menu as requested.

    I used a snippet of code from the Air Combat Experience Mod by the Lopez (so big thanks to the Lopez) and changed it for pillaging. The modification was only to a few C++ files. The Mod includes the Changed C++ files plus a working mod. Enjoy.

    -----Game Play-----
    -Units gain experience when successfully pillaging improvements (land or sea) and when naval units successfully blockade naval routes.

    -----Note to Modmakers-----
    In the SDK files I have added // < Pillage Experience START > and
    // < Pillage Experience END > in all of the places that I have made changes to
    the original files.

    -------Version History---------
    Spoiler :

    Version 1.3
    -Removed uneeded SDK booleans for non-existant ini file
    -Added Concept Text
    -Added Changlog & Readme Texts

    Version 1.21
    -Fixed commenting in source code

    Version 1.2
    -Added a Custom Game Option

    Version 1.1
    -removed after 24 downloads
    A-dded XP for Blockading naval routes

    Version 1.0
    -removed after 1 download
    XP for Pillaging sea/land improvements


    Download
     

    Attached Files:

    • PE.jpg
      PE.jpg
      File size:
      189.1 KB
      Views:
      202
  2. The_J

    The_J Say No 2 Net Validations Retired Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    31,147
    Location:
    Germany / Netherlands
    If there's no problem with the modcomp, then it should be in the modcomps section ;).
    Should i move it :)?


    And nice idea :cool:.
     
  3. stolenrays

    stolenrays Deity

    Joined:
    Aug 2, 2009
    Messages:
    2,061
  4. The_J

    The_J Say No 2 Net Validations Retired Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    31,147
    Location:
    Germany / Netherlands
    Moderator Action: Thread moved :).
     
  5. CaptainMidnight

    CaptainMidnight Warlord

    Joined:
    Apr 16, 2006
    Messages:
    141
    This is cool. I'm gonna see if I can't make this a trait and civic dependent.
     
  6. stolenrays

    stolenrays Deity

    Joined:
    Aug 2, 2009
    Messages:
    2,061
  7. CaptainMidnight

    CaptainMidnight Warlord

    Joined:
    Apr 16, 2006
    Messages:
    141
    Yeah, a bool tag which enables it under civics traits or unit infos. IMO this mod could be a little overpowered as it stands. However, it could make for a damn fine unique unit/civic/trait ability. Its on my todo list but the list is quite long and my coding skills are somewhat haphazard. ;)
     
  8. stolenrays

    stolenrays Deity

    Joined:
    Aug 2, 2009
    Messages:
    2,061
    Sounds interesting. I like promotions so it is for some. If only I could figure out how to add gameoption entries for these little additions I have made. I think that would help out.
     
  9. stolenrays

    stolenrays Deity

    Joined:
    Aug 2, 2009
    Messages:
    2,061
  10. stolenrays

    stolenrays Deity

    Joined:
    Aug 2, 2009
    Messages:
    2,061
  11. Lib.Spi't

    Lib.Spi't Overlord of the Wasteland

    Joined:
    Feb 12, 2009
    Messages:
    3,690
    Location:
    UK
    hi rays, another great idea that I would love to incorporate in my mod (eventually! Damn code headaches :-D)

    Any progress on the idea of trait/civic/promotion specific feature, that would be an AWESOME addition for my raiders civ!
     
  12. stolenrays

    stolenrays Deity

    Joined:
    Aug 2, 2009
    Messages:
    2,061
    Nothing I've worked on sorry. That'd require some more sdk work I think. Doable, but nothing I have experience with yet.

    There is that marauder promotion from TLO Tags. You could make that promotion free for a certain trait in the meantime.
     
  13. Lib.Spi't

    Lib.Spi't Overlord of the Wasteland

    Joined:
    Feb 12, 2009
    Messages:
    3,690
    Location:
    UK
    cool, I shall look into it when the time comes, but anyway, another great modcomp addition :D
     
  14. stolenrays

    stolenrays Deity

    Joined:
    Aug 2, 2009
    Messages:
    2,061
  15. platyping

    platyping Sleeping Dragon

    Joined:
    Oct 22, 2010
    Messages:
    4,626
    Location:
    Emerald Dreams
    If all you want is:
    If player X has trait ABC or civic XYZ:
    Grants Y experience when pillaging.
    Then this is quite doable with python, but if you want those XML tags, then those will definitely need SDK
     

Share This Page