Advanced tags for building plugins

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
MONTEMARINO
Inhabitant of a Conurbation
Reactions:
Posts: 504
Joined: 18 Nov 2017, 17:23
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

Post by MONTEMARINO »

I want to make a University: how can I encode the JSON for capacity of students and education influence?

Thanks!
User avatar
MONTEMARINO
Inhabitant of a Conurbation
Reactions:
Posts: 504
Joined: 18 Nov 2017, 17:23
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

Post by MONTEMARINO »

former member wrote: 29 Dec 2017, 20:51 For influences

Code: Select all

"influence education low":50

Code: Select all

"influence education high":50
For students

Code: Select all

"provide aspect education low":100

Code: Select all

"provide aspect education high":100

Thank You!
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Advanced tags for building plugins

Post by Lobby »

It's hardcoded... For the fire frames there's an animation of id $animationfire04, but it won't look good.
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

Post by JustAnyone »

Lobby, build time is no longer only for RCI?
:pickle:
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by Kulche »

Ooh, I have a question about fire; is it possible to add custom fire frames for choosen building?
get yoked!!
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Advanced tags for building plugins

Post by Lobby »

@JustAnyone What exactly do you mean by that? It should be reversed.

@Kulche No, you can just override fire frames in general.
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

Post by JustAnyone »

@Lobby other building types can use build time attribute now?
:pickle:
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by Kulche »

Can a building be unplaceable by a player, but placed when creating a new map? .....................oil industry coming
get yoked!!
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

Post by JustAnyone »

That's not what he asked for.
:pickle:
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by Kulche »

As soon you can't build it, it's OK.
get yoked!!
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

Post by JustAnyone »

But you can pick it with pick tool.
:pickle:
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by Kulche »

get yoked!!
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

Post by JustAnyone »

I already suggested it. Now we shall just wait.
:pickle:
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by CommanderABab »

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:
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by CommanderABab »

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

Code: Select all

"hidden":true,"maxcount":1
Leaves it pickable, but unplaceable.
my avatar:
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Advanced tags for building plugins

Post by Lobby »

@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...
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Advanced tags for building plugins

Post by Lobby »

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
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

Post by JustAnyone »

Yes. That new attribute is for my broccoli stuff.
:pickle:
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Advanced tags for building plugins

Post by Lobby »

@former member I've learnt that removing plugin functionality is a really bad idea :space
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Advanced tags for building plugins

Post by Lobby »

Thank you, both variants will work in the future.
Previous topicNext topic