Jump to content

How to make a a static layout from "layouts.lua"?

Recommended Posts

I want to turn the below layout into a static layout lua. The one below right now is put in "layouts.lua" and can not be chained in mods as a room. So no way to force it to spawn like other set pieces such as devs graveyard.


        ["MushroomRingLarge"] = 
                            type = LAYOUT.CIRCLE_EDGE,
                            defs = 
                                     unknown_plant = { "red_mushroom", "green_mushroom", "blue_mushroom"},
                            count = 
                                    unknown_plant = 15,
                            scale = 1.5


THIS WORKS for graveyard but not for the layouts in layouts.lua:
Layouts["dev_graveyard"] = StaticLayout.Get("map/static_layouts/dev_graveyard")

This does not work:
Layouts["MushroomRingLarge"] = StaticLayout.Get("map/static_layouts/MushroomRingLarge")


Edited by NamelessName
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...