Not logged inOpenClonk Forum
Up Topic General / Help and Questions / Vegetation
- - By J. J. [py] Date 2012-11-01 00:06
How do you script vegetation into the map like wheat. Do you put [vegetation]? I don't know the "right phrasing" for the scripting of plants. 
                                                                                                         vegetation=wheat
Parent - By Pyrit Date 2012-11-01 02:20
I dunno, maybe this is what you are looking for?
http://docs.openclonk.org/en/sdk/script/fn/PlaceVegetation.html
Parent - By Zapper [de] Date 2012-11-01 08:21
I am not 100% sure, but wheat should have a Place() function. So if you want ten wheat in your scenario, you can just do Wheat->Place(10)
Parent - - By Clonkonaut [de] Date 2012-11-01 16:08
Don't use the [Vegetation] section of the scenario.txt, it's outdated.
All plants can be inserted via script (so Initialize in your scenario preferably) by using Plant->Place(x); where Plant is the id and x the amount (there are more parameters, just look it up in the plants library - maybe some of the plants even add something to the function in their own script).
Reply
Parent - By J. J. [py] Date 2012-11-01 21:50
OK. Thanks. :D
Up Topic General / Help and Questions / Vegetation

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill