Page 8 of 11
Re: Advanced tags for building plugins
Posted: 11 Oct 2019, 22:24
by CommanderABab
Kulche wrote: ↑11 Oct 2019, 19:55
I think it may need a privileged code.
Yes, it would!
Re: Advanced tags for building plugins
Posted: 09 Dec 2019, 15:33
by MsgmSgmsG
Can i use "frame alignment" in RIC?? I try this tag in my 1×1 house plugin but I have to place residential zone before i place this house...
Re: Advanced tags for building plugins
Posted: 02 Feb 2020, 12:10
by Kamikazi
How do you get access to the privilege code for waste and corpse disposal thing for plugins?
Re: Advanced tags for building plugins
Posted: 02 Feb 2020, 14:46
by CommanderABab
You ask Lobby to join the trusted plugin creators group
Re: Advanced tags for building plugins
Posted: 02 Feb 2020, 14:51
by CommanderABab
MsgmSgmsG wrote: ↑09 Dec 2019, 15:33
Can i use "frame alignment" in RIC?? I try this tag in my 1×1 house plugin but I have to place residential zone before i place this house...
You could also use a frame aligned 1x1 park type that when built removes itself, builds the residential zone, then the frame aligned 1x1 house.
Re: Advanced tags for building plugins
Posted: 06 Feb 2020, 02:50
by CommanderABab
I've seen some people use
in their plugins maybe not knowing what it does. This allows a plugin to only show any notifications once per the lifetime of a building.
If you only want a plugin to be built once, use
Re: Advanced tags for building plugins
Posted: 28 Mar 2020, 09:46
by Bevise
What is privileged code in Theotown ???
Re: Advanced tags for building plugins
Posted: 30 Mar 2020, 14:15
by Bevise
Lobby wrote: ↑28 Jan 2019, 13:06
See
here and
here.
There's a simplified syntax that looks like:
Code: Select all
"requirements":[
{
"type":"RANK", // Requires a specific city rank
"lvl":2
},
{
"type":"BUILDING", // Requires a specific building
"id":"$theidofarequiredbuilding"
},
{
"type":"HABITANT_COUNT", // Requires a population of at least 1000
"count":1000
}
]
I want to build Building A, it requires Building B to be upgraded. How to write codes? Please help me.
Re: Advanced tags for building plugins
Posted: 02 Apr 2020, 12:52
by Bearbear76
Bevise wrote: ↑28 Mar 2020, 09:46
What is privileged code in Theotown ???
If you are a trusted plugin creator you get a privileged code, basically allows you to do stuff normal creators cannot.
Re: Advanced tags for building plugins
Posted: 02 Apr 2020, 13:02
by Bearbear76
Bevise wrote: ↑30 Mar 2020, 14:15
I want to build Building A, it requires Building B to be upgraded. How to write codes? Please help me.
I think this should work
Code: Select all
//building B
[{
"id":"buildingB",
other stuff...
"upgrades":[
{
"id":"buildingB_upgrade", //upgraded building B id
other stuff...
}]
},
//building A
{
"id":"buildingA",
other stuff...
"requirements":[
{
"type":"BUILDING",
"id":"buildingB_upgrade" //can only upgrade when B is upgraded
}]
}]
Re: Advanced tags for building plugins
Posted: 02 Apr 2020, 15:10
by Bevise
Ølsken wrote: ↑02 Apr 2020, 13:02
Bevise wrote: ↑30 Mar 2020, 14:15
I want to build Building A, it requires Building B to be upgraded. How to write codes? Please help me.
I think this should work
Code: Select all
//building B
[{
"id":"buildingB",
other stuff...
"upgrades":[
{
"id":"buildingB_upgrade", //upgraded building B id
other stuff...
}]
},
//building A
{
"id":"buildingA",
other stuff...
"requirements":[
{
"type":"BUILDING",
"id":"buildingB_upgrade" //can only upgrade when B is upgraded
}]
}]
It doesnt work...
Re: Advanced tags for building plugins
Posted: 02 Apr 2020, 20:13
by CommanderABab
Bevise wrote: ↑02 Apr 2020, 15:10
Ølsken wrote: ↑02 Apr 2020, 13:02
Bevise wrote: ↑30 Mar 2020, 14:15
I want to build Building A, it requires Building B to be upgraded. How to write codes? Please help me.
I think this should work
Code: Select all
//building B
[{
"id":"buildingB",
other stuff...
"upgrades":[
{
"id":"buildingB_upgrade", //upgraded building B id
other stuff...
}]
},//*** add this code to buildingB:
"fun":[
{
"condition": {
"type": "upgrade",
"id": "buildingB_upgrade"
},
"actions": [{
"type": "remove"
},
//*** builds what you are checking for in place. :)
{"type": "build","id": "upgradedbuildingB","x":0,"y":0}
],"p":100
}
]
//building A
{
"id":"buildingA",
other stuff...
"requirements":[
{
"type":"BUILDING",
//*** change "buildingB_upgrade" below to "upgradedbuildingB"
"id":"buildingB_upgrade" //can only upgrade when B is upgraded
}]
}]
It doesnt work...
Code: Select all
{ "id":"upgradedbuildingB",
"hidden":true,
//everything else same as buildingB except no upgrade statement
}
Re: Advanced tags for building plugins
Posted: 03 Apr 2020, 03:03
by Bevise
So, building A and B must be in the same file??
Re: Advanced tags for building plugins
Posted: 03 Apr 2020, 03:13
by CommanderABab
buildingB and upgradebuildingB would need to be in the same file.
buildingA could be in a separate file as long as it was loaded after buildingB
Re: Advanced tags for building plugins
Posted: 03 Apr 2020, 03:43
by Bevise
CommanderABab wrote: ↑03 Apr 2020, 03:13
buildingB and upgradebuildingB would need to be in the same file.
buildingA could be in a separate file as long as it was loaded after buildingB
Why did my B building disappear after I upgrade it? Building A said that id was not found. Can you make an example file? I will download it and refer.
Re: Advanced tags for building plugins
Posted: 04 Sep 2020, 01:15
by MarioBitMap
CommanderABab wrote: ↑02 Feb 2020, 14:46
You ask Lobby to join the trusted plugin creators group
And, are there any requirements for it? Where is the group managed? Maybe discord, or forum?
Thanks in advance!
Re: Advanced tags for building plugins
Posted: 04 Sep 2020, 02:41
by CommanderABab
Hidden Content
This board requires you to be registered and logged-in to view hidden content.
Re: Advanced tags for building plugins
Posted: 17 Sep 2020, 01:41
by TheoKier[YT]
Hi i know it might sound off topic but is there a sample json for waste disposal i would love to create one
Re: Advanced tags for building plugins
Posted: 04 Oct 2020, 16:41
by 1Code
Add "budget item", "privileged", and some missing attributes to...
<..>
Re: Advanced tags for building plugins
Posted: 31 Dec 2020, 01:35
by KINGTUT10101
Are there any tags that remove this price indicator?