Re: Upgrades (for buildings)
Posted: 27 Jan 2018, 13:53
Thanks Lobby
A feature rich city builder game for Android, iOS and PC
https://forum.theotown.com/
Nice idea! Sort of like mining an ore deposit discovered in Civilization!cesareborgia94 wrote: ↑27 Jan 2018, 13:29Hello,
I have a question.
Can you upgrade for a building which is type:decoration to any RCI building, in this case the building will be upgraded into an industrial type.
Here is the json code:
IF you are wondering... Yes, on the plans to do a small ore based mining for rural villages. Just curiousCode: Select all
[{"build time":0,"draw ground":true,"frames":[{"bmp":"goldorespawn.png"}],"height":1,"id":"$goldore.cesare","influence noise":0,"influence park":0,"influence pollution":0,"needs road":false,"power":0,"spawn":{"height":200,"p":0.003,"radius":800},"text":"A gold ore that is left unmined","title":"Gold ore","type":"decoration","upgrades":[{"frames":[{"bmp":"goldminei.png"}],"height":1,"id":"goldmineind01","influence noise":1,"influence pollution":0,"price":500,"text":"Convert your gold ore into gold mines","title":"Gold Mine","type":"industry","width":1}],"water":0,"width":1}]
Code: Select all
[{"build time":0,
"draw ground":true,
"frames":[{"bmp":"goldorespawn.png"}],
"height":1,"id":"$goldore.cesare",
"influence noise":0,
"influence park":0,
"influence pollution":0,
"needs road":false,
"power":0,
"spawn":{"height":200,"p":0.003,"radius":800},
"text":"A gold ore that is left unmined",
"fun":[
{
"actions":[{"type":"remove"},{"type":"build","id":"$goldmineind01"}],
Code: Select all
"on click fun"
Code: Select all
[
{
"draw ground":true,
"frames":[
{
"bmp":"goldorespawn.png"
}
],
"fun":[
{
"actions":[
{
"type":"remove"
},
{
"type":"build",
"id":"$zoneindustrial"
},
{
"id":"goldmine",
"type":"build"
}
],
"condition":{
"id":"upgrade",
"type":"upgrade"
}
}
],
"height":1,
"hidden":false,
"id":"goldore",
"text ":"An unmined gold ore, maybe you can turn it into a gold mine?",
"title":"gold ore",
"type":"decoration",
"upgrades":[
{
"frames":[
],
"id":"upgrade",
"price":0,
"text":"Upgrades to goldmine",
"title":"Mine gold"
}
],
"width":1
},
{
"needs road":false,
"draw ground":true,
"frames":[
{
"bmp":"goldminei.png"
}
],
"height":1,
"hidden":false,
"id":"goldmine",
"influence noise":0,
"influence pollution":0,
"people":3,
"power":0,
"text":"Goldmine",
"type":"industrial",
"water":0,
"width":1
}
]
You can provide "text" and "title" for each upgrade. They will be shown when that particular upgrade is selected to be chosen. They do not affect the text and title of the building however.Between3Characters wrote: ↑19 Jan 2019, 02:50What about the namea of the upgrade? Can we add descriptions...?
Code: Select all
[{
"id": "PiazzaMoroSpoglia",
"type": "park",
"title": "Piazza Aldo Moro Coccaglio (Bs)",
"text": "Piazza",
"width": 4,
"height": 4,
"rotation aware": true,
"frames": [{
"bmp": "PiazzaMoroL4.png"},
{"bmp": "PiazzaMoroL3.png"},
{"bmp": "PiazzaMoroL2.png"},
{"bmp": "PiazzaMoroL1.png"
}],
"upgrades": [{
"id": "PiazzaMoroPiante",
"title": "Piazza Aldo Moro Coccaglio (Bs)",
"text": "L'aggiunta delle piante è l'ideale per tenere al fresco i tuoi cittadini durante la calura estiva",
"width": 4,
"height": 4,
"rotation aware": true,
"frames": [{
"bmp": "PiazzaMoroL5.png"},
{"bmp": "PiazzaMoroL6.png"},
{"bmp": "PiazzaMoroL7.png"},
{"bmp": "PiazzaMoroL8.png"}],
Code: Select all
[
{
"id":"PiazzaMoroSpoglia_upgrade00",
"type":"animation",
"frames":[{
"bmp": "PiazzaMoroL5.png"},
{"bmp": "PiazzaMoroL6.png"},
{"bmp": "PiazzaMoroL7.png"},
{"bmp": "PiazzaMoroL8.png"}],
"rotation aware":true
},
{
"id": "PiazzaMoroSpoglia",
"type": "park",
"title": "Piazza Aldo Moro Coccaglio (Bs)",
"text": "Piazza",
"width": 4,
"height": 4,
"rotation aware": true,
"frames": [{
"bmp": "PiazzaMoroL4.png"},
{"bmp": "PiazzaMoroL3.png"},
{"bmp": "PiazzaMoroL2.png"},
{"bmp": "PiazzaMoroL1.png"
}],
"upgrades": [{
"id": "PiazzaMoroPiante",
"title": "Piazza Aldo Moro Coccaglio (Bs)",
"text": "L'aggiunta delle piante è l'ideale per tenere al fresco i tuoi cittadini durante la calura estiva",
"frames": [null],
"animation":[{"id":"PiazzaMoroSpoglia_upgrade00","x":0,"y":0}]
}]
}]