Page 1 of 1

New tags for resource system?

Posted: 01 Dec 2006, 12:17
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?

Posted: 01 Dec 2006, 12:31
by KDR_11k
Remember you can use negative values.

Posted: 01 Dec 2006, 12:33
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...

Posted: 01 Dec 2006, 12:40
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 :)

Posted: 01 Dec 2006, 14:41
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...

Posted: 01 Dec 2006, 16:54
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.

Posted: 01 Dec 2006, 16:56
by TradeMark
And what if i want to turn it off? :-)