Advanced tags for building plugins

Learn here how to create and use plugins.

Moderator: Plugin Moderators

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

Platform

Re: Advanced tags for building plugins

#51

Post by JustAnyone »

Lobby wrote:
23 Jun 2017, 23:59
Added attribute sound click to provide a sound file (from within your plugin's directory) which will be played when user taps on your building.

Example:

Code: Select all

"sound click":{"file":"sound.ogg"}
A variety of audio formats is supported, see this listing for more information.
On what does sound play time depend?

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

Platform

Re: Advanced tags for building plugins

#52

Post by JustAnyone »

Also a suggestion:

Code: Select all

"require IAP":true,
"IAP":"lobianajones"

User avatar
cesareborgia94
Reactions:

Re: Advanced tags for building plugins

#53

Post by cesareborgia94 »

What are the tags for building farmfields?
I tried making a new farmfield plugin but it always builds at roads despite setting the "needs roads: false".

User avatar
TheCrazyRobloxian
Villager
Reactions:
Posts: 19
Joined: 13 Nov 2017, 22:21

Plugin Creator

Platform

Re: Advanced tags for building plugins

#54

Post by TheCrazyRobloxian »

hey, can someone give an example of how to use the rotation aware option?

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

Platform

Re: Advanced tags for building plugins

#55

Post by JustAnyone »

Crazy question #1:
Is there a possibility for one building created via plugin to have swat, police, fireman and healthcare emergency response?
Also I would like the ids for swat, police, fire truck and ambulance car.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#56

Post by CommanderABab »

No

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#57

Post by CommanderABab »

JustAnyone wrote:
30 Nov 2017, 23:56
Crazy question #1:
Is there a possibility for one building created via plugin to have swat, police, fireman and healthcare emergency response? No.
Also I would like the ids for swat, police, fire truck and ambulance car.
Interesting statement!

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#58

Post by Lobby »

It's not possible as the responsibility of a building is determined by it's type and a building cannot have multiple types at the same time.

For car ids, have a look at the listing in 3 in the Cars documentation.

User avatar
BruceWillis24
Villager
Reactions:
Posts: 21
Joined: 09 Aug 2015, 00:42
Location: USA
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#59

Post by BruceWillis24 »

This might just be a dumb question, but can you create a building with say level 1 AND 2 so it keeps spawning throughout both levels?

User avatar
BruceWillis24
Villager
Reactions:
Posts: 21
Joined: 09 Aug 2015, 00:42
Location: USA
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#60

Post by BruceWillis24 »

Thanks Koala

My next question for you guys:

What does the "Usage" attribute inside of a json do?

Say: "Usage:100"

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

Platform

Re: Advanced tags for building plugins

#61

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

Platform

Re: Advanced tags for building plugins

#62

Post by MONTEMARINO »

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
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#63

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

Platform

Re: Advanced tags for building plugins

#64

Post by JustAnyone »

Lobby, build time is no longer only for RCI?

User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#65

Post by Kulche »

Ooh, I have a question about fire; is it possible to add custom fire frames for choosen building?

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#66

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

Platform

Re: Advanced tags for building plugins

#67

Post by JustAnyone »

@Lobby other building types can use build time attribute now?

User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#68

Post by Kulche »

Can a building be unplaceable by a player, but placed when creating a new map? .....................oil industry coming

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

Platform

Re: Advanced tags for building plugins

#69

Post by JustAnyone »

That's not what he asked for.

User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#70

Post by Kulche »

As soon you can't build it, it's OK.

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”