New tags for resource system?

New tags for resource system?

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

New tags for resource system?

Post by TradeMark »

I think we need new tags, because there is not all possibilities yet?

Currently we have these:
makesmetal (needs on/off)
metalmake (always)
metaluse (needs on/off)
energymake (always)
energyuse (needs on/off)

And what we need:
usemetal (always)
makesenergy (needs on/off)
useenergy (always)

Or can we already do those 3 needed things?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Remember you can use negative values.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

usemetal = -metalmake, useenergy = -energymake?

So only makesenergy is missing (e.g. for energy makers that convert metal to energy) I think. Possibly that can be done using negative energyuse. Then we'd even have a redundant makesmetal tag...
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

Damn, i didnt remember that trick! :)

About those negative values, could it be possible to make some tag which negates all metalmake and energymake values, so you could make metal maker which also could make energy.

example, unit has these settings:
MakesMetal=1
EnergyUse=60

When we press some button, those would change to:
MakesMetal=-1
EnergyUse=-60

So now it would use metal and make energy, would be very handy feature, no need to build separate buildings when you need energy instead of metal :)
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

I found out that only aircrafts supports energyuse while moving.

OR if i am wrong, how to make ground units use energy when they move, but not when they are still?

I think we need new tag for that...
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Generally Make is always on while Use is only drained when the unit is turned on. To make a unit that generates 60 energy by default but can be set to make 1 metal instead set Energy Make and EnergyUse to 60 and MetalUse to -1.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

And what if i want to turn it off? :-)
Post Reply

Return to “Feature Requests”