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)
question on feature attribute for a map
Moderator: Moderators
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 ? 
if so i have an idea of a graveyard level were u can only use res kbots
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
if so i have an idea of a graveyard level were u can only use res kbots
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
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
yaytrepan 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()
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.trepan wrote:It can keep features at max health and resources:
- SetFeatureReclaim()
- SetFeatureHealth()
