1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. Photobucket has changed its policy concerning hotlinking images and now requires an account with a $399.00 annual fee to allow hotlink. More information is available at: this link.
    Dismiss Notice
  3. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  4. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  5. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  6. Dismiss Notice
  7. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

Modder Resource - Custom Diplomacy Modifiers

Discussion in 'CivBE - Code Snippets' started by lilgamefreek, May 4, 2015.

  1. lilgamefreek

    lilgamefreek Chieftain

    Joined:
    Oct 30, 2014
    Messages:
    229

    What is this Resource?



    This mod is intended as a resource and guide for other content creators seeking to add new Diplomacy modifiers to their own mods. Currently, adding diplo modifiers result in some buggy UI and workarounds tend to step on one another's toes. Mods can either utilize this code completely or create simple, compatibility code snippets to avoid compatibility issues with others that do without affecting the behaviour of their own mod. Adding custom diplomacy modifiers involves Lua coding, with an example included in the download. This was made to accompany my upcoming Social Engineering mod.

    What does this Include?



    When downloaded, you'll find the following inside:
    - Critical files to include in your mod.
    - A README with detailed instructions on how to include the files.
    - An example .lua that shows how to use the necessary function calls. The example is fully formed and can be added to your mod for testing purposes.

    Important Notes



    - This mod is designed to ease compatibility between different mods. It is vulnerable to game changes through official patches and DLC. Not to say your mod would NOT be vulnerable to the same kinds of changes if you don't use this compatibility add on (hint it totally will), but look for updates to this whenever a patch hits.

    - The mod does not allow for customized diplomacy decisions. These diplomacy modifiers are passive modifiers, and the mod helps prevent competition for string resources between these modifiers.

    History


    _________________________
    initial upload (v1):
    - Ability to add customized tooltips and diplomacy modifier descriptions through Lua.

    External Links



    CivFanatics download page
    Steam Workshop link
     

    Attached Files:

Share This Page