Author Topic: need scenario coding help for bot number specification  (Read 6026 times)

ZMike

  • Daemon
  • Posts: 7
    • View Profile
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

Mike_Thurian

  • Worker
  • Posts: 2
    • View Profile
Re: need scenario coding help for bot number specification
« Reply #1 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
« Last Edit: 21 April 2018, 22:03:58 by Mike_Thurian »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
Re: need scenario coding help for bot number specification
« Reply #2 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
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios