Types for plug-ins

Plug-in related stuff can be discussed here.

Moderator: KoalaGuy

Post Reply
User avatar
danekbel
Former danek_danevich
Reactions:
Posts: 2238
Joined: Thu May 05, 2016 9:33
Location: Ukraine
Contact:

Types for plug-ins

Post by danekbel » Tue Jul 11, 2017 10:26

What type (and maybe subsequent code) should I use for:
1) Filter plant
2) Villa (award tab)
3) Bus station
:bq
And what type of influence uses city hall?
some text.

User avatar
Lobby
Developer
Reactions:
Posts: 2316
Joined: Sun Oct 26, 2008 12:34

Re: Types for plug-ins

Post by Lobby » Tue Jul 11, 2017 10:51

  1. Anything with type "water" will be visible in the water tab, so you may use this for the filter plant. In order to give it cleaning functionality, use thise

    Code: Select all

    "water":-1,
    "water waste":-20000
  2. Try it with "award" :lol:
  3. It's type "bus stop", but I have no idea whether it works. Give it some influence and capacity

    Code: Select all

    "influence passenger bus": 12,
    "capacity": 32
...Have a nice stay

User avatar
iborrobi
Metropolitan
Reactions:
Posts: 141
Joined: Tue Jul 04, 2017 14:57
Location: Bandung

Re: Types for plug-ins

Post by iborrobi » Tue Jul 11, 2017 11:39

Is it possible to make plugin that can only be build after receiving a title? For ex: statue =village.... If possible, what code should i use?
HUT RI ke-72. Jaya Bangsaku!!!!!! :) :)

User avatar
Lobby
Developer
Reactions:
Posts: 2316
Joined: Sun Oct 26, 2008 12:34

Re: Types for plug-ins

Post by Lobby » Tue Jul 11, 2017 11:45

See this thread for basic usage of requirements.

A rank requirement may look like

Code: Select all

"requirement":{
  "requirements":[
    {
      "type":"RANK",
      "data":{
        "id":"$rnk_town_medium"
      }
    }
  ]
}
...Have a nice stay

User avatar
iborrobi
Metropolitan
Reactions:
Posts: 141
Joined: Tue Jul 04, 2017 14:57
Location: Bandung

Re: Types for plug-ins

Post by iborrobi » Tue Jul 11, 2017 11:54

Lobby wrote:
Tue Jul 11, 2017 11:45
See this thread for basic usage of requirements.

A rank requirement may look like

Code: Select all

"requirement":{
  "requirements":[
    {
      "type":"RANK",
      "data":{
        "id":"$rnk_town_medium"
      }
    }
  ]
}
Thanks Lobby ;)
HUT RI ke-72. Jaya Bangsaku!!!!!! :) :)

User avatar
danekbel
Former danek_danevich
Reactions:
Posts: 2238
Joined: Thu May 05, 2016 9:33
Location: Ukraine
Contact:

Re: Types for plug-ins

Post by danekbel » Tue Jul 11, 2017 15:30

Lobby wrote:
Tue Jul 11, 2017 10:51
It's type "bus stop", but I have no idea whether it works. Give it some influence and capacity

Code: Select all

"influence passenger bus": 12,
"capacity": 32
Is it for bus stop or for bus depot?
Anyway, thank you for help :bc
some text.

User avatar
iborrobi
Metropolitan
Reactions:
Posts: 141
Joined: Tue Jul 04, 2017 14:57
Location: Bandung

Re: Types for plug-ins

Post by iborrobi » Tue Jul 11, 2017 15:42

danekbel wrote:
Tue Jul 11, 2017 15:30
Lobby wrote:
Tue Jul 11, 2017 10:51
It's type "bus stop", but I have no idea whether it works. Give it some influence and capacity

Code: Select all

"influence passenger bus": 12,
"capacity": 32
Is it for bus stop or for bus depot?
Anyway, thank you for help :bc
i guess it's for bus stop, because the code has "capacity": 32
HUT RI ke-72. Jaya Bangsaku!!!!!! :) :)

User avatar
Lobby
Developer
Reactions:
Posts: 2316
Joined: Sun Oct 26, 2008 12:34

Re: Types for plug-ins

Post by Lobby » Tue Jul 11, 2017 15:59

Yes, this code is for bus stops. You cannot create bus depots by yourself.
...Have a nice stay

Nexus24680
Inhabitant of a Megacity
Reactions:
Posts: 206
Joined: Sat May 06, 2017 19:12

Re: Types for plug-ins

Post by Nexus24680 » Sun Jul 16, 2017 20:33

Lobby wrote:
Tue Jul 11, 2017 11:45
See this thread for basic usage of requirements.

A rank requirement may look like

Code: Select all

"requirement":{
  "requirements":[
    {
      "type":"RANK",
      "data":{
        "id":"$rnk_town_medium"
      }
    }
  ]
}
Can we have all the rank codes?
Like $rnk_town_medium
Please

User avatar
Lobby
Developer
Reactions:
Posts: 2316
Joined: Sun Oct 26, 2008 12:34

Re: Types for plug-ins

Post by Lobby » Sun Jul 16, 2017 20:48

Code: Select all

$rnk_isolateddwelling
$rnk_village_medium
$rnk_town_medium
$rnk_city_small
$rnk_city_medium
$rnk_city_big
$rnk_metropolis
$rnk_conurbation
$rnk_megalopolis
It's planned to address ranks by level instead of id.
...Have a nice stay

Nexus24680
Inhabitant of a Megacity
Reactions:
Posts: 206
Joined: Sat May 06, 2017 19:12

Re: Types for plug-ins

Post by Nexus24680 » Sun Jul 16, 2017 20:51

Lobby wrote:
Sun Jul 16, 2017 20:48

Code: Select all

$rnk_isolateddwelling
$rnk_village_medium
$rnk_town_medium
$rnk_city_small
$rnk_city_medium
$rnk_city_big
$rnk_metropolis
$rnk_conurbation
$rnk_megalopolis
It's planned to address ranks by level instead of id.
Thanks!!!

User avatar
Lobby
Developer
Reactions:
Posts: 2316
Joined: Sun Oct 26, 2008 12:34

Re: Types for plug-ins

Post by Lobby » Sat Sep 23, 2017 19:23

New ranks introduce more rank ids. However, I recommend to express rank requirements this way now:

Code: Select all

"requirement":{"requirements":[{"type":"RANK", "data":{"lvl":0}}]}
With level 0 being the first rank (isolated dwelling).
...Have a nice stay

User avatar
danekbel
Former danek_danevich
Reactions:
Posts: 2238
Joined: Thu May 05, 2016 9:33
Location: Ukraine
Contact:

Re: Types for plug-ins

Post by danekbel » Mon Oct 02, 2017 20:41

@Lovbu@Lobby, is it still impossible to create own bus depot?
If it's possible, can I create depot, that would spawn definite type of buses?
some text.

Online
User avatar
KoalaGuy
TheoTown Veteran
Reactions:
Posts: 5037
Joined: Mon Mar 06, 2017 21:45
Location: Pitcairn Islands
Contact:

Re: Types for plug-ins

Post by KoalaGuy » Mon Oct 02, 2017 22:25

Lobvu seems to be busy lately...
"Meow meow meow meow. Meow. Meow meow, meow meow meow!
TheoTown Translator (Serbian)
Becoming Best Plugin Creator Again
(My plugins)
Contributor
Once top poster
Most reactions
Made some graphics for TheoTown
Made some smilies

Post Reply

Who is online

Users browsing this forum: KoalaGuy and 1 guest