Page 1 of 1

Modifying the United Nations Rule Set

Posted: Thu Sep 09, 2021 3:04 am
by Steve R.
I would like to modify the United Nations ruleset, assuming that is possible. I now nothing about making modifications to a ruleset. The following webpage, Rulesets appears to be a good starting point, but there is no reference to "Wonders". There is this subcategory: Buildings.ruleset, which states: "Improvements, Wonders, Small Wonders, and Special buildings like Coinage are defined here. See Editing Buildings for more information. " (emphasis added). Going to Editing Buildings did not display any useful information/examples.

I would like to have the following features added to the United Nations wonder:
  • You get an embassy in every nation.
  • You can force a cease-fire for a specific number of turns.

Re: Modifying the United Nations Rule Set

Posted: Thu Sep 09, 2021 8:08 am
by Ignatus
Steve R. wrote:You get an embassy in every nation.
That is an effect. Effects are defined in effects.ruleset file. Look at standard civ2 ruleset and add to your one lines for UN like it has for "Marco Polo's Embassy" (you need one or two sections depending on game version).
You can force a cease-fire for a specific number of turns.
Sorry, not yet possible. One has been developing a patch for it but I have not heared of any results.

Re: Modifying the United Nations Rule Set

Posted: Thu Sep 09, 2021 12:02 pm
by Steve R.
Editing effects is located here.
----------------------------------------------------------------------------------------------------------------
United Nations effect, unaltered from the effects.ruleset file.

Code: Select all

[effect_united_nations]
type    = "Unit_Recover"
value	= 2
reqs	=
    { "type", "name", "range"
      "Building", "United Nations", "Player"
    }
---------------------------------------------------------------------------------------------------------------
To have multiple effects, would the approach below be the correct method to establish embassies?

Code: Select all

[effect_united_nations]
type    = "Unit_Recover"
value	= 2
reqs	=
    { "type", "name", "range"
      "Building", "United Nations", "Player"
    }

[effect_united_nations]
type    = "Have_Embassies"
value	= 1
reqs	=
    { "type", "name", "range"
      "Building", "United Nations", "Player"
    }