Types for plug-ins

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
danekbel
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2788
Joined: Thu May 05, 2016 9:33
Location: in your dreams
Plugins: Show
Version: Beta

Platform

Plugin Creator

Types for plug-ins

#1

Post by danekbel »

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: 3648
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Types for plug-ins

#2

Post by Lobby »

  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
=^._.^= ∫

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

Platform

Re: Types for plug-ins

#3

Post by iborrobi »

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?
bda

User avatar
Lobby
Developer
Reactions:
Posts: 3648
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Types for plug-ins

#4

Post by Lobby »

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"
      }
    }
  ]
}
=^._.^= ∫

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

Platform

Re: Types for plug-ins

#5

Post by iborrobi »

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 ;)
bda

User avatar
danekbel
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2788
Joined: Thu May 05, 2016 9:33
Location: in your dreams
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Types for plug-ins

#6

Post by danekbel »

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
Plugins: Show

Platform

Re: Types for plug-ins

#7

Post by iborrobi »

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
bda

User avatar
Lobby
Developer
Reactions:
Posts: 3648
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Types for plug-ins

#8

Post by Lobby »

Yes, this code is for bus stops. You cannot create bus depots by yourself.
=^._.^= ∫

User avatar
Lobby
Developer
Reactions:
Posts: 3648
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Types for plug-ins

#9

Post by Lobby »

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.
=^._.^= ∫

User avatar
Lobby
Developer
Reactions:
Posts: 3648
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Types for plug-ins

#10

Post by Lobby »

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).
=^._.^= ∫

User avatar
danekbel
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2788
Joined: Thu May 05, 2016 9:33
Location: in your dreams
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Types for plug-ins

#11

Post by danekbel »

@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.

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”