This member has provided no bio about themself...

Comment History
BattleFluffy
BattleFluffy - - 2 comments @ Guide to making Eufloria levels for Absolute Beginners

Hi, there is a way to add Dyson trees and Defense trees, if that's what you mean. You can also change the properties of a defense tree to make it completely different from how they are in the normal game.

To add Dyson trees, you would create an asteroid with a command like:

a = AddAsteroidWithAttribs(0,0,0.5,0.5,0.5)

...and then add a Dyson tree to it with this command:

s = a:AddDysonTree()

That would add one Dyson tree. If you want three dyson trees, you can just do the "s = a:AddDysonTree()" command three times:

a = AddAsteroidWithAttribs(0,0,0.5,0.5,0.5)
s = a:AddDysonTree()
s = a:AddDysonTree()
s = a:AddDysonTree()

You can do this in function LevelSetup(), to have the trees there when the player starts the game, or you can also add the trees at a certain point during the game by scripting it into your function LevelLogic(). If you want to add trees at a certain point, I'd suggest creating the asteroid with a proper name that you won't overwrite later. EG:

asteroidone = AddAsteroidWithAttribs(0,0,0.5,0.5,0.5)
asteroidtwo = AddAsteroidWithAttribs(0,2000,0.5,0.5,0.5)

Then, later on in function LevelLogic() you will be able to do this:

s = asteroidone:AddDysonTree()
s = asteroidone:AddDysonTree()
s = asteroidtwo:AddDysonTree()
s = asteroidtwo:AddDysonTree()

So you can refer to them later :>


Alternatively, if you'd like to change the properties of trees themselves, I suggest reading the LUA reference sticky thread on the Eufloria forums. It has a good list of all the different commands you can use to change the properties of dyson and defense trees:

Dyson-game.com

Good karma+1 vote