Advanced tags for building plugins

Learn here how to create and use plugins.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
MONTEMARINO
Inhabitant of a Conurbation
Posts: 505
Joined: 18 Nov 2017, 19:23
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#61

Post by MONTEMARINO » 29 Dec 2017, 22:46

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
Posts: 505
Joined: 18 Nov 2017, 19:23
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#62

Post by MONTEMARINO » 31 Dec 2017, 10:43

former member wrote: 29 Dec 2017, 22: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
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#63

Post by Lobby » 14 Jan 2018, 12:08

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

Platform

Re: Advanced tags for building plugins

#64

Post by JustAnyone » 14 Jan 2018, 12:22

Lobby, build time is no longer only for RCI?
User avatar
Kulche
Pluche
Posts: 1199
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#65

Post by Kulche » 14 Jan 2018, 13:55

Ooh, I have a question about fire; is it possible to add custom fire frames for choosen building?
User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#66

Post by Lobby » 15 Jan 2018, 17:21

@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
Developer
Posts: 3589
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

#67

Post by JustAnyone » 15 Jan 2018, 17:41

@Lobby other building types can use build time attribute now?
User avatar
Kulche
Pluche
Posts: 1199
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#68

Post by Kulche » 15 Jan 2018, 19:52

Can a building be unplaceable by a player, but placed when creating a new map? .....................oil industry coming
User avatar
JustAnyone
Developer
Posts: 3589
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

#69

Post by JustAnyone » 15 Jan 2018, 20:21

That's not what he asked for.
User avatar
Kulche
Pluche
Posts: 1199
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#70

Post by Kulche » 15 Jan 2018, 20:51

As soon you can't build it, it's OK.
User avatar
JustAnyone
Developer
Posts: 3589
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

#71

Post by JustAnyone » 15 Jan 2018, 20:56

But you can pick it with pick tool.
User avatar
Kulche
Pluche
Posts: 1199
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#72

Post by Kulche » 15 Jan 2018, 21:07

User avatar
JustAnyone
Developer
Posts: 3589
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

#73

Post by JustAnyone » 15 Jan 2018, 21:11

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

Plugin Creator

Platform

Re: Advanced tags for building plugins

#74

Post by CommanderABab » 15 Jan 2018, 23:21

Kulche wrote: 15 Jan 2018, 19: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
User avatar
CommanderABab
AB
Posts: 11262
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#75

Post by CommanderABab » 15 Jan 2018, 23:29

former member wrote: 15 Jan 2018, 21: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.
User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#76

Post by Lobby » 16 Jan 2018, 02: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...
User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#77

Post by Lobby » 16 Jan 2018, 13: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
User avatar
JustAnyone
Developer
Posts: 3589
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

#78

Post by JustAnyone » 16 Jan 2018, 15:17

Yes. That new attribute is for my broccoli stuff.
User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#79

Post by Lobby » 16 Jan 2018, 18:41

@former member I've learnt that removing plugin functionality is a really bad idea :space
User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#80

Post by Lobby » 21 Feb 2018, 23:13

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

Return to “Tutorials and Documentation”