Author Topic: Definable EP minimum in xml  (Read 1748 times)

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Definable EP minimum in xml
« on: 1 December 2013, 05:07:42 »
Found 2 interesting behaviors while creating an attack boost with negative ep regen:

1 - Ep will fall into negative values and continue to drop. I think that values should not drop past zero.

2 - Units will get stuck when ep is in negative values. Probably due to every skill having a minimum ep cost of zero. And since ep is now less than zero basic skills (move, hold, produce, harvest) are no longer able to be performed.

There are potential uses for these behaviors, so I would not like to change the behaviors themselves.

Instead I propose to add a definable minimum value of ep, so attackboosts cannot lower ep below a certain point.  If the values drop toward extreme negatives (-50 for example) then units will be paralyzed for incredible periods of time, so long that forgetting about that unit and just building another feels like the more time effective solution. What I think needs to happen is to have an optional minimum parameter added to the Max-Ep line, which sets the minimum limit the amount ep can drop to (via negative EP regeneration) in the unit xml:

Code: [Select]
<max-ep value="6" regeneration="1" minimum="-10" />
If the minimum tag is not found then a minimum of 0 should be the default.
« Last Edit: 6 December 2013, 12:55:31 by Ishmaru »
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Bugs with negitive EP Regen
« Reply #1 on: 1 December 2013, 16:59:56 »
Actually I'm going to request not to fix this bug as of yet. I'm going to continue to play around with this bug, as I found a very good use for the effects of this bug.

Edit: Updated see first post:
« Last Edit: 6 December 2013, 12:56:56 by Ishmaru »
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Bugs with negitive EP Regen
« Reply #2 on: 1 December 2013, 18:39:09 »
Perhaps we could add an option somewhere in the XML (which would make this a feature request) for that behavior. I'm not sure having negative EP should prevent the usage of zero-EP skills.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Bugs with negitive EP Regen
« Reply #3 on: 1 December 2013, 22:35:15 »
Perhaps we could add an option somewhere in the XML (which would make this a feature request) for that behavior. I'm not sure having negative EP should prevent the usage of zero-EP skills.

Yes maybe a dev can move this to Feature request board it will be great.

After playing a bit with this, I see potential to make paralysis/EMP based attacks by draining enemy ep to negative (thus preventing them to move), using attack boosts. So I think that negative ep values should still prevent usage of zero ep skills. However, what I think needs to happen is to have an optional minimum parameter added to the Max-Ep line, which sets the minimum limit the amount ep can drop to (via negative EP regeneration) (default =0) in the unit xml:

Code: [Select]
<max-ep value="6" regeneration="1" minimum="-10" />
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Bugs with negitive EP Regen
« Reply #4 on: 5 December 2013, 00:12:31 »
I move this to the feature requests now. Please update the first post and add a summary of the state/request and change title.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Definable EP minimum in xml
« Reply #5 on: 6 December 2013, 12:57:42 »
I move this to the feature requests now. Please update the first post and add a summary of the state/request and change title.

Done and Thanks!
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

 

anything