Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Madbro
Small-town resident Reactions:
Posts: 37 Joined: 23 Jan 2019, 08:33
Plugins: Showcase Store
Platform
Post
by Madbro » 07 Feb 2019, 05:58
CommanderABab wrote: 07 Feb 2019, 01:52
Code: Select all
...,
"requirements":[
{
"type":"BUILDING",
"id":"$exbuildingid"
}
],...
Where $exbuildingid is the id of the building you require.
Sorry sir, I mean, requiring upgraded version of buildings.
Madbro the Madman
From ideas
To artworks
Then JSON
And Plugin
And finally.. bugs.
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 07 Feb 2019, 14:37
The building which should be required, should check for upgrade with lua/fun and set some variable to 1 which then can be put in conditional requirement on other building.
y
yusuf8a684
Reactions:
Post
by yusuf8a684 » 10 Jun 2019, 13:39
How can I make requirement for city levels?
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 10 Jun 2019, 16:46
It won't. That's fake news
s
soniroy
Settler Reactions:
Posts: 1 Joined: 22 Jun 2019, 06:19
Plugins: Showcase Store
Post
by soniroy » 22 Jun 2019, 06:27
Great post.Helpful
h
hihihihi
Metropolitan Reactions:
Posts: 111 Joined: 30 Jul 2019, 04:05
Location: south korea
Plugins: Showcase Store
Platform
Post
by hihihihi » 29 Nov 2019, 09:40
umm is there way to make requirement for zone?
Actually, I'm alive.
Lobby
Inhabitant of a Supercluster Reactions:
Posts: 3759 Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store
Post
by Lobby » 29 Nov 2019, 10:14
The requirements shown in this topic also work for zones. The in-game high density zones make use of that
Imran M
Inhabitant of a Country Reactions:
Posts: 834 Joined: 24 Oct 2018, 11:41
Plugins: Showcase Store
Plugin Creator
Platform
Post
by Imran M » 29 Nov 2019, 19:36
Lobby wrote: 29 Nov 2019, 10:14
The requirements shown in this topic also work for zones. The in-game high density zones make use of that
Nani!?
Was it time for a new profile picture?
I just love the DOPE-amine you get after completing a plugin!
Wekabu city
Inhabitant of a Megalopolis Reactions:
Posts: 586 Joined: 29 Aug 2017, 19:07
Location: Germany, Hessia
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by Wekabu city » 29 Nov 2019, 21:13
I know it is offtopic, BUT
Imran M wrote: 29 Nov 2019, 19:36
Lobby wrote: 29 Nov 2019, 10:14
The requirements shown in this topic also work for zones. The in-game high density zones make use of that
Nani!?
Was it time for a new profile picture?
Lobby wrote: 28 Nov 2019, 12:58
Pickle forced me to replace it
From
viewtopic.php?f=45&t=1106&start=9480
Last edited by CommanderABab on 30 Nov 2019, 01:20, edited 1 time in total.
Reason: Added a pointer to quote at correct place in forum
Galimulator, Minecraft and Theotown modder.
Kamikazi
Inhabitant of a Conurbation Reactions:
Posts: 465 Joined: 26 Jan 2018, 22:58
Location: ESPAÑA
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by Kamikazi » 31 Jan 2020, 23:25
How do you make so you can only build a building in a specific game mode, for example, i can only build a building in sandbox. ... I know CommanderAB, you already told me one way, but i prefer to be locked in other gamemodes that to pop out of existence
Some random Spaniard sporadically playing TheoTown
Known in the Discord server for streaming the weirdest games
Also, I have a Discord server
https://discord.gg/AwcyJnyeYZ
CommanderABab
AB Reactions:
Posts: 11269 Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by CommanderABab » 01 Feb 2020, 02:06
Code: Select all
"requirements":[
{
"type":"CONDITION",
"sandbox":true
}
]
Might work.
I'll test it on something.
Nope. Not as is.
my avatar:
Bevise
Inhabitant of a Conurbation Reactions:
Posts: 495 Joined: 27 Feb 2020, 13:39
Location: Phu Quoc Island, Vietnam
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by Bevise » 28 Mar 2020, 12:32
How many types in the building requirements?
... OOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOO OOOOOOOOOOOOO
OOOOOOOOOOOOOOO OOOOOOOOOOOO
A_Vietnamese_plugin _creator
OOOOOOOOOOOOOOOO OOOOOOOOOOO
OOOOOOOOOO OOOOO OOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOO
Lobby
Inhabitant of a Supercluster Reactions:
Posts: 3759 Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store
Post
by Lobby » 28 Mar 2020, 14:18
This is the answer to your question
CommanderABab wrote: 07 Feb 2019, 01:52
Code: Select all
...,
"requirements":[
{
"type":"BUILDING",
"id":"$exbuildingid"
}
],...
Where $exbuildingid is the id of the building you require.
Bevise
Inhabitant of a Conurbation Reactions:
Posts: 495 Joined: 27 Feb 2020, 13:39
Location: Phu Quoc Island, Vietnam
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by Bevise » 29 Mar 2020, 04:18
So, I want to show notification A. It requires building B to be built first. Because I'm making a news plugin, but I want news to show only when the headquarters is built.
... OOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOO OOOOOOOOOOOOO
OOOOOOOOOOOOOOO OOOOOOOOOOOO
A_Vietnamese_plugin _creator
OOOOOOOOOOOOOOOO OOOOOOOOOOO
OOOOOOOOOO OOOOO OOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOO
CommanderABab
AB Reactions:
Posts: 11269 Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by CommanderABab » 04 Apr 2020, 11:30
KINGTUT10101 wrote: 04 Apr 2020, 00:34
How could I make a requirement for two items? I want to make a building require both a rank and the presence of another building.
Thinking out loud...
Code: Select all
"requirements":[
{
"type":"CONDITION",
"sandbox":true
},
{
"type":"BUILDING",
"id":"$exbuildingid"
}
],...
Where $exbuildingid is the id of the building you require.
my avatar: