Page 1 of 1

question on feature attribute for a map

Posted: 16 Oct 2007, 01:19
by Otherside
hey im taking my first whack at map making

was wondering if i could have a feature which u cud nano for energy i know u can do this normally but wat if i want this feature to have infinite energy (means u can nano it for the whole game and it wont deplete) was thinking of having one of these in the center of the map as a objective to fight for :] (dunoo if it would work balance wise but i wanna try it)

just want to know if its possible (sorri if its been talked about already)

nope

Posted: 16 Oct 2007, 01:20
by rcdraco
I don't think you can make an unlimited one, maybe one with a ton of stuff, but not infinite.

Posted: 16 Oct 2007, 02:08
by Otherside
also another question this is probably for mod specific maps is it possible to place a units corpse as a feature on the map and have res kbots be able to res it ? :P


if so i have an idea of a graveyard level were u can only use res kbots :P and ur com can only build energy :p so u need to res and reclaim as much as possible and pick out wat units u need ;P

nope

Posted: 16 Oct 2007, 02:12
by rcdraco
I don't that that's possible eihter.

Make a map that pwns.

Posted: 16 Oct 2007, 02:41
by lurker
You can set a feature to massive amounts energy, which is good enough, but you might need the next version to have it reclaim at the right speed, I don't remember.
As far as the graveyard, as far as I know you can't build them in as features, but you can pack a lua script that will spawn them all at the start of the game.
What was that non-cavedog campaign where you started as a lone necro with the war long since lost... I have an urge to play it now...

Edit: actually, if you set a feature to have enough energy, all of what was lost from reclaiming would be forgotten by the rounding of the floating point numbers, so it would be infinite...
Edit 2: and you could even set it so that only one con could leech energy from it at a time

rcdraco is too pessamistic

Posted: 16 Oct 2007, 02:57
by trepan
LuaGaia can be used for active in-game scripts for maps.

It can place unit wrecks as features with specific resurrection targets:
- CreateFeature()
- SetFeatureResurrect()

It can keep features at max health and resources:
- SetFeatureReclaim()
- SetFeatureHealth()

Posted: 16 Oct 2007, 03:11
by lurker
trepan wrote:LuaGaia can be used for active in-game scripts for maps.

It can place unit wrecks as features with specific resurrection targets:
- CreateFeature()
- SetFeatureResurrect()
yay
trepan wrote:It can keep features at max health and resources:
- SetFeatureReclaim()
- SetFeatureHealth()
Or you do it the simple way, and instead of a script where it potentially be destroyed between updates just set the health and energy to 1,000,000,000,000,000,000,000,000,000,000. You and your lua, trepan. You and your lua. :roll:
:P

Posted: 16 Oct 2007, 03:28
by Otherside
expect a graveyard map and a energy point map soon thx for the help :D