MegaGlest Forum

Archives (read only) => Glest Advanced Engine => Feature requests => Topic started by: Zoythrus on 23 December 2010, 20:13:10

Title: option for definative EP usage.
Post by: Zoythrus 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?
Title: Re: option for definative EP usage.
Post by: Omega 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.
Title: Re: option for definative EP usage.
Post by: silnarm 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 ?!?
Title: Re: option for definative EP usage.
Post by: John.d.h 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.
Title: Re: option for definative EP usage.
Post by: silnarm 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.