Eufloria > Eufloria Classic Support
Problem with GetFlower()
(1/1)
annikk.exe:
I'm having problems with the "GetFlower()" command.
--- Code: --- -- do we have a flower?
flower = checkedroid:GetFlower(checkedroid.owner)
if checkedroid.owner > 1 then
flower:Pluck()
flower:PlantOnRandomDysonTree()
end
--- End code ---
It does not seem to return a flower if the flower is still attached to the tree. :<
So it seems like there is still no way to return a flower that has grown on a tree through probability rather than scripting, and pluck it.
Once the flower is plucked, "checkedroid:GetFlower()" works fine, and correctly returns the flower.
But how to refer to a flower that is still on the tree, in order to pluck it?
Anyone know?
Is this a bug?
Alex:
Try calling GetSuperSeedling() on a tree - if there's one growing it should give you a reference to it, whether it is a mine or a flower. Confusingly, internally the mines and flowers are called "SuperSeedlings" even though the in-game super seedlings are just powered up regular seedlings.
annikk.exe:
Thanks! Will give this a try. :>
annikk.exe:
Alex, you're a genius. :> It works!
Navigation
[0] Message Index
Go to full version