Re: Fun condition and action index
Posted: 22 Oct 2017, 00:24
What exactly should this action do?
A feature rich city builder game for Android, iOS and PC
https://forum.theotown.com/
Code: Select all
[ { "id": "$popreqid","type":"decoration","frames":[{"bmp":"Umayupgrade.png"}],"draw ground":true,
"hidden":true,"width":4,"height":4,
"requirement":{ "requirements":[ {
"type":"HABITANT_COUNT",
"data":{
"count":100000
}}]},
"upgrades":[{
"id":"$popreqid.up1",
"title":" ","frames":[],
"price":100000,
"text":"press upgrade for some great \nbuilding here when available",
"requirement":{ "requirements":[ {
"type":"HABITANT_COUNT",
"data":{
"count":100000
}}]}}]
,
"fun":[
{
"condition":{
"type":"upgrade","id":"$popreqid.up1"
},
"actions":[
{"type":"remove"},
{"type":"build","id":"$somegreatbuilding"}
]
}
]
},
{ "id":"$buildmanager","type":"decoration",
"draw ground":true,"width":4,"height":4,
"frames":[{"bmp":"testtheory.png"}],
"fun":[
{
"condition":
{
"type":"and","inner":[
{"type": "date","frame":3590, "min": 3588,"max":3589 },
{"type":"buildable","id":"$popreqid"}
]
},
"actions":[
{"type":"remove"},
{"type":"build","id":"$popreqid"}
],
"p":1
}
]
},
{ "id":"$somegreatbuilding","type":"decoration",
"draw ground":true,"width":4,"height":4,
"frames":[],
"hidden":true,
"text":"replace with somegreatbuilding :)",
"fun":[{"actions":[{"type":"remove"},{"type":"build","id":"$bigschool00"}]}]
}
]
Code: Select all
"condition":{"type":"value","id":"res","min":1000,"max":10000},