Author Topic: consuming ressources in lua scenarios  (Read 845 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
consuming ressources in lua scenarios
« on: 19 March 2010, 19:25:59 »
I often found it very annoying that factions where i switched off the Ai still consume food.

For example when I say disableAi(2) the faction 2 still dies by hunger after a while if there is no food ....
I think about adding a switch which can be set in lua so the units of a given faction stop consuming consumable ressources.

I'm thinking of combining this functionality directly with the disableAi() call, because I think you always want this behaviour.
What do you think about this? Is this already somehow solved in GAE?
« Last Edit: 23 March 2010, 09:50:46 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: consuming ressources in lua scenarios
« Reply #1 on: 19 March 2010, 21:47:08 »
Yes I think this is a good idea, I always half to give them a farm. :archer:
« Last Edit: 20 March 2010, 06:16:02 by ElimiNator »
Get the Vbros': Packs 1, 2, 3, 4, and 5!

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: consuming ressources in lua scenarios
« Reply #2 on: 20 March 2010, 04:52:11 »
I often found it very annoying that factions where i switched off the Ai still consume food.
...
I'm thinking of combining this functionality directly with the disableAi() call, because I think you always want this behaviour.
What do you think about this? I this already somehow solved in GAE?

You're right, that is annoying! I think having it automatic with disableAi() should be fine, I can't think of any situation you would want them still consuming resources.

And no, that little problem has not been addressed in GAE yet.
Glest Advanced Engine - Code Monkey

Timeline | Downloads