.. wrote: ↑16 Jun 2018, 17:22Upgrades
In this topic, I'll show you how to add upgrades to your plugin. (Example: Waterslide upgrade for pool)
This is how an upgrade may look in a plugin:This will add "$sample.plugin.unique.id.park01" to our park. Upgrades can use same functions like normal buildings. Upgrade frame should have same resolution as their building, but height can be different.Code: Select all
[{ "id": "$sample.plugin.unique.id.park00", "type": "park", "author": "Lobby & theotheoderich", "width": 1, "height": 1, "frames": [{ "bmp": "sample_bmp.png" }], "influence park": 40, "upgrades": [{ "id": "$sample.plugin.unique.id.park01", "frames": [{ "bmp": "someupgrade_bmp" }], "price": 2000, "monthly price": 20, "influence park": 20 }] }]
Functions
"upgrades" - defines upgrades for the building
I hope this helped you, have fun with your upgrading!
Tutorial is by .former member.
Thank you

Some additional notes:
- price, monthly price, water, power and influences will be added to corresponding values of the building when the upgrade is applied
- You can also provide animations as for regular buildings, but no smoke
- You can set "only one":true in an upgrade to state that no other upgrade may be active at the same time. We use this for example for the radio station were you can have selected only one program at the same time.