Author Topic: option for definative EP usage.  (Read 1072 times)

Zoythrus

  • Guest
option for definative EP usage.
« on: 23 December 2010, 20:13:10 »
ive noticed that it's really difficult to get the speed of something EP using to sync up well with EP usage. my suggestion? it would be nice to say
<def-ep-value="30"/>. this would mean that the game will tailor the ep so that it uses exactly 30 EP by the time the action is finished. this would be ideal for morphing and other one-time things. the current way would be good for moving and attacking.

see why this is needed?

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: option for definative EP usage.
« Reply #1 on: 24 December 2010, 00:21:58 »
What I'd like to see, is the ability to have one set amount of EP used for morphing/production/etc instead of using the EP cost every unit of time (which I'll just call a "tick") over the entire course of the production/morph. Of course, for legacy support, it would need a new tag, such as yours here.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: option for definative EP usage.
« Reply #2 on: 24 December 2010, 02:26:13 »
This is all very true...

I'll make it so you can set a cost on the command rather than the skill, setting a cost on both should probably be an error ?!?
Glest Advanced Engine - Code Monkey

Timeline | Downloads

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: option for definative EP usage.
« Reply #3 on: 24 December 2010, 02:33:14 »
I'll make it so you can set a cost on the command rather than the skill
Would that work for, say, queuing several units to be produced?  I.e., if producing unit X costs 30ep and you queue up ten of them, the total cost should be 300.

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: option for definative EP usage.
« Reply #4 on: 24 December 2010, 02:38:57 »
Yes, this should be fine. It wont work like resource costs, the ep will be subtracted when the command begins, if there isn't enough the command will be cancelled.

That way, using your example, you could queue more produce X commands than your current ep would allow, and as long as by the time they are started you have sufficient ep, all will be well.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

 

anything