Find tutorials, documentation, and resources for creating and using TheoTown plugins.
MONTEMARINO
Inhabitant of a Conurbation Reactions:
Posts: 504 Joined: 18 Nov 2017, 17:23
Plugins: Showcase Store
Version: Beta
Platform
Post
by MONTEMARINO » 29 Dec 2017, 20:46
I want to make a University: how can I encode the JSON for capacity of students and education influence?
Thanks!
MONTEMARINO
Inhabitant of a Conurbation Reactions:
Posts: 504 Joined: 18 Nov 2017, 17:23
Plugins: Showcase Store
Version: Beta
Platform
Post
by MONTEMARINO » 31 Dec 2017, 08:43
former member wrote: 29 Dec 2017, 20:51
For influences
For students
Code: Select all
"provide aspect education low":100
Code: Select all
"provide aspect education high":100
Thank You!
Lobby
Inhabitant of a Supercluster Reactions:
Posts: 3759 Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store
Post
by Lobby » 14 Jan 2018, 10:08
It's hardcoded... For the fire frames there's an animation of id $animationfire04, but it won't look good.
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 14 Jan 2018, 10:22
Lobby, build time is no longer only for RCI?
Kulche
Inhabitant of a Continent Reactions:
Posts: 1194 Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by Kulche » 14 Jan 2018, 11:55
Ooh, I have a question about fire; is it possible to add custom fire frames for choosen building?
get yoked!!
Lobby
Inhabitant of a Supercluster Reactions:
Posts: 3759 Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store
Post
by Lobby » 15 Jan 2018, 15:21
@JustAnyone What exactly do you mean by that? It should be reversed.
@Kulche No, you can just override fire frames in general.
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 15 Jan 2018, 15:41
@Lobby other building types can use build time attribute now?
Kulche
Inhabitant of a Continent Reactions:
Posts: 1194 Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by Kulche » 15 Jan 2018, 17:52
Can a building be unplaceable by a player, but placed when creating a new map? ... ... ... ... ... ... ... oil industry coming
get yoked!!
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 15 Jan 2018, 18:21
That's not what he asked for.
Kulche
Inhabitant of a Continent Reactions:
Posts: 1194 Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by Kulche » 15 Jan 2018, 18:51
As soon you can't build it, it's OK.
get yoked!!
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 15 Jan 2018, 18:56
But you can pick it with pick tool.
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 15 Jan 2018, 19:11
I already suggested it. Now we shall just wait.
CommanderABab
AB Reactions:
Posts: 11269 Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by CommanderABab » 15 Jan 2018, 21:21
Kulche wrote: 15 Jan 2018, 17:52
Can a building be unplaceable by a player, but placed when creating a new map?
... ... ... ... ... ... ... oil industry coming
Yes
Code: Select all
"hidden":true,
...Code to spawn... oil industry coming...
spawn code
my avatar:
CommanderABab
AB Reactions:
Posts: 11269 Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta
Plugin Creator
Platform
Post
by CommanderABab » 15 Jan 2018, 21:29
former member wrote: 15 Jan 2018, 19:05
We need a new code to make a plugin impossible to pick.
Code: Select all
"hidden":true,
"on built fun":[ { "actions":[{"type":"remove"}] } ]
Leaves it pickable, but useless.
Or
Leaves it pickable, but unplaceable.
my avatar:
Lobby
Inhabitant of a Supercluster Reactions:
Posts: 3759 Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store
Post
by Lobby » 16 Jan 2018, 00:00
@JustAnyone any building can have a build time
@former member regarding power and water, isn't it the needed amount?
Sorry for the long delay in my answer, there are so many things to do...
Lobby
Inhabitant of a Supercluster Reactions:
Posts: 3759 Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store
Post
by Lobby » 16 Jan 2018, 11:46
Next version of the game will contain two new building attributes:
Code: Select all
"people":1234, // Replaces habitants and workers-attributes; interpretation depends on building type
"pickable":false // Cannot be picked by the eye dropper tool
JustAnyone
Honorary Contributor Reactions:
Posts: 3666 Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store
Platform
Post
by JustAnyone » 16 Jan 2018, 13:17
Yes. That new attribute is for my broccoli stuff.
Lobby
Inhabitant of a Supercluster Reactions:
Posts: 3759 Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store
Post
by Lobby » 16 Jan 2018, 16:41
@former member I've learnt that removing plugin functionality is a really bad idea
Lobby
Inhabitant of a Supercluster Reactions:
Posts: 3759 Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store
Post
by Lobby » 21 Feb 2018, 21:13
Thank you, both variants will work in the future.