Code: Select all
{
"condition":{
"type":"value", "code":"$redbuttoncount+1%10","z"=0
},
"actions":[
{
"type":"remove","y":1
},
{
"type":"build","id":"index_dsp_0k","y":1
}
],
"always":true
},
{
"condition":{
"type":"value", "code":"$redbuttoncount+1%10","z"=1
},
"actions":[
{
"type":"remove","y":1
},
{
"type":"build","id":"index_dsp_1k","y":1
}
],
"always":true
},
//... repeat to 9
Is anyone know how to shorten this code or seperating JSON files on one building?