Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Lobby
Inhabitant of a Supercluster Reactions:
Posts: 3759 Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store
Post
by Lobby » 13 Mar 2017, 19:37
Never tested it, but in order to expect 1,000 poor inhabitants it should look like
Code: Select all
"requirements":[
{
"type":"HABITANT_COUNT",
"count":1000,
"factor0":1,
"factor1":0,
"factor2":0
}
]
Henderion The Mayor
Inhabitant of a Galaxy Reactions:
Posts: 2117 Joined: 18 Aug 2016, 09:04
Location: Beihai City ,New Era Dynasty
Plugins: Showcase Store
Version: Beta
Platform
Post
by Henderion The Mayor » 14 Mar 2017, 02:15
Thanks.
Ahmad Nur Aizat
Inhabitant of a Infinity Reactions:
Posts: 8260 Joined: 25 Oct 2016, 13:20
Location: Johor Bahru
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by Ahmad Nur Aizat » 14 Mar 2017, 10:15
Nope, still don't understand
Ahmad Nur Aizat
Inhabitant of a Infinity Reactions:
Posts: 8260 Joined: 25 Oct 2016, 13:20
Location: Johor Bahru
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by Ahmad Nur Aizat » 14 Mar 2017, 10:58
former member wrote: Ahmad Nur Aizat wrote: Nope, still don't understand
What do you not understand? I can explain it
Everything
Ahmad Nur Aizat
Inhabitant of a Infinity Reactions:
Posts: 8260 Joined: 25 Oct 2016, 13:20
Location: Johor Bahru
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by Ahmad Nur Aizat » 14 Mar 2017, 12:35
Sooooo, somekind of the requirements featured in usual gamemodes? (No, not sandbox)
Ahmad Nur Aizat
Inhabitant of a Infinity Reactions:
Posts: 8260 Joined: 25 Oct 2016, 13:20
Location: Johor Bahru
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by Ahmad Nur Aizat » 14 Mar 2017, 18:28
I see...
MXD77
Inhabitant of a Megacity Reactions:
Posts: 255 Joined: 14 May 2017, 22:05
Location: Gdańsk
Plugins: Showcase Store
Platform
Post
by MXD77 » 08 Aug 2017, 18:58
Helpful thanks
22Alpha
Inhabitant of a Conurbation Reactions:
Posts: 448 Joined: 23 Sep 2017, 12:29
Platform
Post
by 22Alpha » 08 Oct 2017, 12:06
May I ask here, what is the building code for coal power plant?
and does the requirement code allow "or" condition? ie.
"In order to obtain the building, you are required to get plaza "OR" statue"
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 18 Nov 2017, 10:02
@Lobby is there any way for a building to require an upgrade to be built?
Last edited by JustAnyone on 24 Nov 2017, 20:13, edited 1 time in total.
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 19 Nov 2017, 10:34
Here is what I mean:
Screenshot_2017-11-19-12-32-13-974_info.flowersoft.theotown.theotown.png
Code: Select all
"requirement": {
"requirements": [{
"type": "UPGRADE",
"data": {
"id": "dsahqup3"
}
}]
},
You do not have the required permissions to view the files attached to this post.
CommanderABab
AB Reactions:
Posts: 11269 Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by CommanderABab » 19 Nov 2017, 11:29
Code: Select all
"requirement":{ "requirements":
[
{
"type":"CONDITION",
"data":
{
"condition":
{"type":"and","inner":
[
{"type":"upgrade","id":"dsahqup3","min":1,"max":10},
{"type":"value","id":"res","min":10000,"max":1000000000}
]
},
"text":"Needs a dsahqup3!, and 10000 inhabitants"
}
}
]
},
my avatar:
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 19 Nov 2017, 13:55
CommanderABab wrote: 19 Nov 2017, 11:29
Code: Select all
"requirement":{ "requirements":
[
{
"type":"CONDITION",
"data":
{
"condition":
{"type":"and","inner":
[
{"type":"upgrade","id":"dsahqup3","min":1,"max":10},
{"type":"value","id":"res","min":10000,"max":1000000000}
]
},
"text":"Needs a dsahqup3!, and 10000 inhabitants"
}
}
]
},
Doesn't work.
Last edited by JustAnyone on 24 Nov 2017, 20:13, edited 3 times in total.
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 24 Nov 2017, 19:57
JustAnyone wrote: 19 Nov 2017, 10:34
Here is what I mean:
Screenshot_2017-11-19-12-32-13-974_info.flowersoft.theotown.theotown.png
Code: Select all
"requirement": {
"requirements": [{
"type": "UPGRADE",
"data": {
"id": "dsahqup3"
}
}]
},
@Lobby this is what I meant.
Lobby
Inhabitant of a Supercluster Reactions:
Posts: 3759 Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store
Post
by Lobby » 25 Nov 2017, 16:19
So what is it supposed to do? That an upgrade needs another upgrade first to be applied? That's not supported (yet).
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 26 Nov 2017, 17:29
I have building A with upgrade named 3.
To build building B, I require upgrade named 3.
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 28 Nov 2017, 16:54
@Lobby new upgrade thing is broken for me (1.3.81)