Page 1 of 1

Choosing regime

Posted: Wed Aug 02, 2023 11:41 pm
by Bombur
Where is the routine/event allowing to choose people in random games?
I want to include it in the Bombur mod.

Re: Choosing regime

Posted: Thu Aug 03, 2023 12:05 am
by Ormand
If you use the mod to create random games, you can. The selection of peoples is connected to the random game generator, as well as climate options. So, if you create a masterfile to generate random games, it will pop automatically, as well as picking a climate. You will have to set up the people and their officers, towns, etc. You could do this via the rulevars as set up in ANewDawn or PhoenixGame, or you could use a stringlist to set up the peoples instead, as is done in Four Seasons. This way you can have as many peoples as you want.

As for a regular mod, i.e., scenario, I am not sure what you would like to do. I suppose placing regimes, and then letting players pick peoples at the startup. That is not so easy to do. You could try something with a variant, and then write events that would change the peoples and names of cities, etc.

Re: Choosing regime

Posted: Thu Aug 03, 2023 10:45 pm
by Bombur
True, but I´m talking about the feature that allow you to select what peoples will appear in a random game. Up to know it happens only in Phoenix masterfile. I would like to implement it in the Bombur mod. It seems a new rulevar or event was added in Phoenix to allow for this

Re: Choosing regime

Posted: Thu Aug 03, 2023 10:52 pm
by Bombur
The regime settings screen, I mean

Re: Choosing regime

Posted: Fri Aug 04, 2023 5:05 pm
by Ormand
There are several new rulevars in the "Enable/Disable Features" section that can apply to random games.

914 -- allow selection regime settings (people, names and flags)
919 -- Extend climate system to full North-South world (some 20 different worlds that can be selected)
920 -- Stringlist to define random peoples and regimes

Rulevar(920) > 0 bypasses the standard rulevar settings for regimes with a stringlist (it is the ID of the stringlist). The people have to be defined in the people screen of the editor. And it looks like this. With this, the sky is the limit, but you will also need to have leader portraits, etc. Also, if you add people, you need to add their city and capital names to the appropriate stringlists as defined in rulevars(440-443) and (500).

Re: Choosing regime

Posted: Fri Aug 04, 2023 9:14 pm
by Bombur
Thank you a lot again. I used the regime selection and it worked very well.