Advanced tags for building plugins

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
c
cesareborgia94
Reactions:

Re: Advanced tags for building plugins

Post by cesareborgia94 »

@Lobby, sorry for bothering you, but can you explain more on recent plugin tags such as "rebuild" and "icon frames" attribute introduced recently? Just needed explainations on how to use them...
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 »

Code: Select all

"rebuild":true,
means the RCI building will rebuild instead of being replaced by another. Useful if your population drops suddenly, but you want the city to remain looking the same.

Code: Select all

"icon frames":[{"bmp":"file.png"}],
is probably 26x26 pixel icon to be used in the display box.
my avatar:
User avatar
BetterBear
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2881
Joined: 18 Apr 2017, 07:03
Location: In a place you don't expect.
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

Post by BetterBear »

CommanderABab wrote: 09 Apr 2018, 18:31

Code: Select all

"rebuild":true,
means the RCI building will rebuild instead of being replaced by another. Useful if your population drops suddenly, but you want the city to remain looking the same.

Code: Select all

"icon frames":[{"bmp":"file.png"}],
is probably 26x26 pixel icon to be used in the display box.
Is there an option to set a building in rebuild mode in the game?
BEaRz ArE AmAZiNG. I Am FeElIng SlEepY..
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 »

No, ...
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 »

Exactly @CommanderABab :bc

Rebuild mode is on my default for all buildings. To prevent rebuilding manually you can make them untouchable.
User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2211
Joined: 07 Jul 2016, 20:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by KINGTUT10101 »

Would it be possible for me to make a road that can only be placed in water @Lobby ?
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 »

Roads can't be placed on water only bridges.
my avatar:
User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 797
Joined: 27 May 2017, 22:07
Location: Freezing in Argentina
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by FranchuFranchu »

You should update the first post to make it a list of all tags
@Lobby
Did you know you can't blink while smiling :) ?
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 is a list :bq
User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 797
Joined: 27 May 2017, 22:07
Location: Freezing in Argentina
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by FranchuFranchu »

I mean, to add the new tags like "population", "droppable" and others.
Did you know you can't blink while smiling :) ?
P
PrathamK
Settler
Reactions:
Posts: 6
Joined: 06 Mar 2018, 12:29
Plugins: Showcase Store

Re: Advanced tags for building plugins

Post by PrathamK »

The Influence key words List is Whole repeated from "influence pollution".
User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 797
Joined: 27 May 2017, 22:07
Location: Freezing in Argentina
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by FranchuFranchu »

Fixed :bc
Did you know you can't blink while smiling :) ?
P
PrathamK
Settler
Reactions:
Posts: 6
Joined: 06 Mar 2018, 12:29
Plugins: Showcase Store

Re: Advanced tags for building plugins

Post by PrathamK »

:json How to add Monthly Income?
:bd Diamonds as price instead of Theos?
:bb Negative Values of monthly Price don't work.
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 »

You cant add income because it could be used as a way to cheat.
:pickle:
c
cesareborgia94
Reactions:

Re: Advanced tags for building plugins

Post by cesareborgia94 »

Then what if you want to add income to a building for instance? Maybe set game mechanics to only recognize plugins with monthly income to less than 100TT so that people would not cheat.
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 »

If you would want to have monthly income, you should contact Lobby.
User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 533
Joined: 31 Dec 2017, 11:35
Location: India Pudukkottai
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

Post by sairam »

Please make a list of categories in theotown
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)
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 »

Here you go:

Code: Select all

$cat_terrain00
  $cat_asphalt00

$cat_transport00
  $cat_road00
  $cat_roaddeco00
  $cat_bus00
  $cat_train00
  $cat_airport00
    
$cat_zone00
  $cat_residential00
  $cat_commercial00
  $cat_industrial00
    
$cat_supply00
  $cat_energy00
  $cat_water00
  $cat_wastedisposal00

$cat_public00
  $cat_park00
  $cat_sport00
  $cat_public00
  $cat_management00
  $cat_award00
  $cat_religion00
  $cat_decoration00
  $category_christmas00
  $category_firework00

$cat_service00
  $cat_firebrigade00
  $cat_education00
  $cat_medic00
  $cat_police00
  $cat_military00

$cat_landmark00

$cat_disaster00
User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 533
Joined: 31 Dec 2017, 11:35
Location: India Pudukkottai
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

Post by sairam »

How can i use

Code: Select all

"ordinal":
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)
User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 533
Joined: 31 Dec 2017, 11:35
Location: India Pudukkottai
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

Post by sairam »

Can i get the list of types of buildings and influence ? Because i'm new to the world of plugins.
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)
Previous topicNext topic