Yes, it would!
Advanced tags for building plugins
Moderator: Plugin Moderators
- CommanderABab
- AB
- Reactions:
- Posts: 9256
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
-
- Small-town resident
- Reactions:
- Posts: 41
- Joined: Sun Aug 05, 2018 6:06
- Location: Planet Earth
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
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...
I'm comeback!!
(Never forget my password anymore..)
Sorry for bad Englishㅠㅠ
(Never forget my password anymore..)
Sorry for bad Englishㅠㅠ

- Kamikazi
- Inhabitant of a Conurbation
- Reactions:
- Posts: 393
- Joined: Sat Jan 27, 2018 0:58
- Location: Zaragoza, ESPAÑA
- Plugins: Show
- Version: Beta
- Contact:
Re: Advanced tags for building plugins
How do you get access to the privilege code for waste and corpse disposal thing for plugins?
...




- CommanderABab
- AB
- Reactions:
- Posts: 9256
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
- CommanderABab
- AB
- Reactions:
- Posts: 9256
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
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.

- CommanderABab
- AB
- Reactions:
- Posts: 9256
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
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
Code: Select all
"once":true,
If you only want a plugin to be built once, use
Code: Select all
"max count":1,

- Bevise
- Micy's Assistant
- Reactions:
- Posts: 214
- Joined: Thu Feb 27, 2020 15:39
- Location: Pearl Island, Vietnam
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
What is privileged code in Theotown ???
You know, Bevise is not my real name, but .. who cares about that?
- Bevise
- Micy's Assistant
- Reactions:
- Posts: 214
- Joined: Thu Feb 27, 2020 15:39
- Location: Pearl Island, Vietnam
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
I want to build Building A, it requires Building B to be upgraded. How to write codes? Please help me.Lobby wrote: ↑Mon Jan 28, 2019 13:06See 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 } ]

You know, Bevise is not my real name, but .. who cares about that?
- Bearbear76
- Former Bearbear65
- Reactions:
- Posts: 5347
- Joined: Fri Feb 10, 2017 14:53
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
If you are a trusted plugin creator you get a privileged code, basically allows you to do stuff normal creators cannot.

Just my opinion
- Bearbear76
- Former Bearbear65
- Reactions:
- Posts: 5347
- Joined: Fri Feb 10, 2017 14:53
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
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
}]
}]
Just my opinion
- Bevise
- Micy's Assistant
- Reactions:
- Posts: 214
- Joined: Thu Feb 27, 2020 15:39
- Location: Pearl Island, Vietnam
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
It doesnt work...Ølsken wrote: ↑Thu Apr 02, 2020 13:02I think this should workCode: 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 }] }]

You know, Bevise is not my real name, but .. who cares about that?
- CommanderABab
- AB
- Reactions:
- Posts: 9256
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
Bevise wrote: ↑Thu Apr 02, 2020 15:10It doesnt work...Ølsken wrote: ↑Thu Apr 02, 2020 13:02I think this should workCode: 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 }] }]
![]()
Code: Select all
{ "id":"upgradedbuildingB",
"hidden":true,
//everything else same as buildingB except no upgrade statement
}

- Bevise
- Micy's Assistant
- Reactions:
- Posts: 214
- Joined: Thu Feb 27, 2020 15:39
- Location: Pearl Island, Vietnam
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
So, building A and B must be in the same file??
You know, Bevise is not my real name, but .. who cares about that?
- CommanderABab
- AB
- Reactions:
- Posts: 9256
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
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
buildingA could be in a separate file as long as it was loaded after buildingB

- Bevise
- Micy's Assistant
- Reactions:
- Posts: 214
- Joined: Thu Feb 27, 2020 15:39
- Location: Pearl Island, Vietnam
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
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.CommanderABab wrote: ↑Fri Apr 03, 2020 3:13buildingB 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
You know, Bevise is not my real name, but .. who cares about that?
-
- Villager
- Reactions:
- Posts: 16
- Joined: Fri Jul 31, 2020 22:54
- Location: Spain
- Plugins: Show
- Version: Beta
Re: Advanced tags for building plugins
And, are there any requirements for it? Where is the group managed? Maybe discord, or forum?CommanderABab wrote: ↑Sun Feb 02, 2020 14:46You ask Lobby to join the trusted plugin creators group

Thanks in advance!
Code: Select all Reset
[ { "id":"MarioBitMap", "category":"Plugin_Creator", "skills":[{"skill":"Pixel_Artist"},{"skill":"Learning_C++_&_TTJson/Lua"}] } ]
JSON checker
- CommanderABab
- AB
- Reactions:
- Posts: 9256
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
- TheoKier[YT]
- Villager
- Reactions:
- Posts: 11
- Joined: Fri Sep 11, 2020 4:58
Re: Advanced tags for building plugins
Hi i know it might sound off topic but is there a sample json for waste disposal i would love to create one 

-
- Inhabitant of a Megacity
- Reactions:
- Posts: 154
- Joined: Thu Jan 30, 2020 16:56
- Plugins: Show
Re: Advanced tags for building plugins
Add "budget item", "privileged", and some missing attributes to...
<..>
<..>
- KINGTUT10101
- 1,000,000 inhabitants
- Reactions:
- Posts: 2110
- Joined: Thu Jul 07, 2016 22:50
- Location: 'Merica
- Plugins: Show
- Version: Beta
- Contact:
Re: Advanced tags for building plugins
Are there any tags that remove this price indicator?
All of my plug-ins, maps and more:
https://sites.google.com/view/retrocity ... authuser=0
YouTube channel:
https://youtube.com/c/kingtut-101
https://sites.google.com/view/retrocity ... authuser=0
YouTube channel:
https://youtube.com/c/kingtut-101