My idea is coal mines spawns in the map and I have to change it to a ingame coal mine.I tried with "on click fun"
But it removes the coal ore and places a industrial zone only not building the coal mine. Please help.
Here is my code.
Code: Select all
[
{
"draw ground":true,
"frames":[
{
"bmp":"coal4.png"
}
],
"on click fun":[
{
"actions":[
{
"type":"remove"
},
{
"type":"build",
"id":"$zoneindustrial"
},
{
"id":"$coalmine00",
"type":"build"
}
],
"condition":{
"id":"update",
"type":"upgrade"
}
}
],
"height":1,
"hidden":false,
"id":"$coalore00",
"text ":"An unmined coal ore, maybe you can turn it into a coal mine?",
"title":"Coal Ore",
"type":"decoration",
"upgrades":[
{
"frames" [
],
"id":"update",
"price":0,
"text":"Upgrades to coal mine",
"title":"Mine coal"
}
],
"width":1
},
{
"id": "$coalmine00",
"type": "industrial",
"width": 4,
"height": 4,
"frames": [{"steal":"$coalmine00"}],
"level": 2,
"override":true
}
]