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

Improved Python Event System (Quests for Europe Trade of specific Yields) [IMPLEMENTED]

Discussion in 'Civ4Col - We The People' started by raystuttgart, Sep 20, 2020.

  1. Raubwuerger

    Raubwuerger Chieftain

    Joined:
    Nov 24, 2014
    Messages:
    51
    Location:
    Bavaria
    Hello guys,

    I’ve implemented some EuropeanTradeQuest events. In the first step only for raw goods.
    Look at the screenshots …

    To start an quest you've to sell an certain amount to europe.
    Spoiler European Trade Quest Start :

    upload_2020-12-5_12-33-58.png


    For typical european raw materials (lumber, ore, ...) you've only 2 choices as reward.
    Spoiler European Trade Quest Rewards :

    upload_2020-12-5_12-34-42.png
    upload_2020-12-5_12-34-58.png upload_2020-12-5_12-35-10.png


    For typical american raw materieals like sugar, tabacco, pepper, ... you've 3 choices,

    Spoiler European Trade Quest Rewards :

    upload_2020-12-5_12-36-58.png upload_2020-12-5_12-37-8.png


    and for furs and premium furs even 4 choices.
    Spoiler European Trade Quest Rewards :

    upload_2020-12-5_12-37-23.png
    upload_2020-12-5_12-37-32.png upload_2020-12-5_12-37-41.png
     

    Attached Files:

    Last edited: Dec 5, 2020
  2. Raubwuerger

    Raubwuerger Chieftain

    Joined:
    Nov 24, 2014
    Messages:
    51
    Location:
    Bavaria
    And some special events
    Spoiler European Trade Quest Rewards :

    upload_2020-12-5_12-45-3.png
    upload_2020-12-5_12-45-14.png
     
    Schmiddie likes this.
  3. Schmiddie

    Schmiddie Emperor

    Joined:
    Feb 27, 2012
    Messages:
    1,451
    Location:
    Germany
    Is +1 for trading goods really a reward? Isn't it a penalty because you will use trading goods for trade with natives?
     
  4. Raubwuerger

    Raubwuerger Chieftain

    Joined:
    Nov 24, 2014
    Messages:
    51
    Location:
    Bavaria
    Upps, your are right. It should be -1 ...:crazyeye:
     
    Schmiddie likes this.
  5. Raubwuerger

    Raubwuerger Chieftain

    Joined:
    Nov 24, 2014
    Messages:
    51
    Location:
    Bavaria
    Now it's correct ...
    upload_2020-12-5_15-56-36.png
     
  6. Schmiddie

    Schmiddie Emperor

    Joined:
    Feb 27, 2012
    Messages:
    1,451
    Location:
    Germany
    Question: Does it influence buy price or sales price or both?
     
  7. Raubwuerger

    Raubwuerger Chieftain

    Joined:
    Nov 24, 2014
    Messages:
    51
    Location:
    Bavaria
    It influences both, but only in Europe. Not in Afrika which also belongs to the King ... hmmm
     
  8. raystuttgart

    raystuttgart Civ4Col Modder

    Joined:
    Jan 24, 2011
    Messages:
    5,975
    Gender:
    Male
    Location:
    Stuttgart, Germany
    @Raubwuerger

    Really cool events. :thumbsup:
    Thanks a lot for having given this new functionality of the Python Event System some real content and purpose. :hug:
     
  9. Schmiddie

    Schmiddie Emperor

    Joined:
    Feb 27, 2012
    Messages:
    1,451
    Location:
    Germany
    For these type of events you need to change the DLL, right?
     
  10. raystuttgart

    raystuttgart Civ4Col Modder

    Joined:
    Jan 24, 2011
    Messages:
    5,975
    Gender:
    Male
    Location:
    Stuttgart, Germany
    No, that is why I had enhanced the Python Event System. :)

    All necessary changes in DLL have already been made - they were minor though.
    (Basically just making a few functions accessible to Python.)

    Thus it is possible to add further of these Trade Events without any further DLL changes being necessary.
    You just need to call the new Python Functions I had already added and use the Generic Parameters in XML.

    I had prepared a blueprint here to create the XML configuration for these specific new events.
    But with all the events @Raubwuerger has created we have a massive amount of examples now.

    Summary:
    It is completely possible to use this now without being able to program. :thumbsup:
    To understand how it works it might be good to read the Python functions I had implemented though.
     
    Last edited: Dec 6, 2020
    Schmiddie likes this.
  11. raystuttgart

    raystuttgart Civ4Col Modder

    Joined:
    Jan 24, 2011
    Messages:
    5,975
    Gender:
    Male
    Location:
    Stuttgart, Germany
    @Raubwuerger

    I merged your new Trade Events into "Large Rivers". :thumbsup:
    I also tested of course.

    Although I tested only a couple of them - just to make sure I merged correctly - they were simply too many to test them all ...
    But since they all use the same "pattern" - I am pretty confident the rest works as well.

    You really have put a lot of effort into this. :wow:
    The amount of events and event options is amazing !!! :woohoo:
     

Share This Page