MegaGlest Forum

Modding and game content creation => Maps, tilesets and scenarios => Topic started by: ZMike on 19 April 2018, 23:08:50

Title: need scenario coding help for bot number specification
Post by: ZMike on 19 April 2018, 23:08:50
i would like to know if its possible possible to make an npc in a scenario with at difficulty number like
a cpu mega 1.5,i don't know if this is possible because i haven't seen it done by anyone nor is it in the game files
Title: Re: need scenario coding help for bot number specification
Post by: Mike_Thurian on 21 April 2018, 21:31:44
Good evening ZMike,

when you  open the scenario game files(for example the scenario "egypt mayhem.xml") you will see in the first few code lines:

<scenario>
     
             <difficulty value="4"/>

             ....

I think that has something to do with the difficult settings. Al least it would fit because the npc - players are named "cpu-mega" and the difficult level 4 is called "mega".
I hope I can help you with this.

with best regards

Mike
Title: Re: need scenario coding help for bot number specification
Post by: titi on 24 April 2018, 14:50:22
resource_multiplier, like this:

...
<player control="cpu-ultra" resource_multiplier="2.0" faction="norsemen" team="2"/>
...

see here:
https://docs.megaglest.org/XML/Scenario