Advanced tags for building plugins

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2572
Joined: Sun Jul 23, 2017 12:45
Location: No idea either
Plugins: Show

Plugin Creator

Platform

Re: Advanced tags for building plugins

#51

Post by JustAnyone » Sun Nov 12, 2017 12:03

Lobby wrote:
Fri Jun 23, 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
Junior Developer
Reactions:
Posts: 2572
Joined: Sun Jul 23, 2017 12:45
Location: No idea either
Plugins: Show

Plugin Creator

Platform

Re: Advanced tags for building plugins

#52

Post by JustAnyone » Sun Nov 12, 2017 13:53

Also a suggestion:

Code: Select all

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

User avatar
cesareborgia94
Inhabitant of a Continent
Reactions:
Posts: 1200
Joined: Sun Nov 12, 2017 9:23
Location: The Kingdom of Babilandia
Plugins: Show
Version: Beta
Phone model: Samsung Galaxy 360H

Platform

Plugin Creator

Re: Advanced tags for building plugins

#53

Post by cesareborgia94 » Sat Nov 18, 2017 16:47

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".
I rarely make plugins now, but I still make them in spare time.
Disclaimer Please no request, I'm busy with real life stuff, I hope you understand ;)
You can find me here only. Discord is sh**, sorry JA :(

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

Platform

Re: Advanced tags for building plugins

#54

Post by TheCrazyRobloxian » Mon Nov 20, 2017 23:00

hey, can someone give an example of how to use the rotation aware option?
Hi, wait, did anyone else wrote the same thing here?, meh, i dont care.
Plugin maker! - Plugins once every 10 years" :json B)
You can use my plugins and modify them as long as you provide credit to me ;)

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2572
Joined: Sun Jul 23, 2017 12:45
Location: No idea either
Plugins: Show

Plugin Creator

Platform

Re: Advanced tags for building plugins

#55

Post by JustAnyone » Thu Nov 30, 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?
Also I would like the ids for swat, police, fire truck and ambulance car.

User avatar
CommanderABab
AB
Reactions:
Posts: 7433
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#56

Post by CommanderABab » Fri Dec 01, 2017 0:01

No
719719Currently using alpha 719. 719 What's new? :)
hills & night!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
CommanderABab
AB
Reactions:
Posts: 7433
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#57

Post by CommanderABab » Fri Dec 01, 2017 0:04

JustAnyone wrote:
Thu Nov 30, 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!
719719Currently using alpha 719. 719 What's new? :)
hills & night!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Lobby
Developer
Reactions:
Posts: 3314
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: Advanced tags for building plugins

#58

Post by Lobby » Fri Dec 01, 2017 0:37

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.
...Have a nice stay

BruceWillis24
Villager
Reactions:
Posts: 21
Joined: Sun Aug 09, 2015 0:42
Location: Grand Rapids Michigan
Plugins: Show
Version: Beta

Re: Advanced tags for building plugins

#59

Post by BruceWillis24 » Thu Dec 14, 2017 4:13

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?

BruceWillis24
Villager
Reactions:
Posts: 21
Joined: Sun Aug 09, 2015 0:42
Location: Grand Rapids Michigan
Plugins: Show
Version: Beta

Re: Advanced tags for building plugins

#60

Post by BruceWillis24 » Tue Dec 19, 2017 4:26

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: 473
Joined: Sat Nov 18, 2017 19:23
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

#61

Post by MONTEMARINO » Fri Dec 29, 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
Reactions:
Posts: 473
Joined: Sat Nov 18, 2017 19:23
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

#62

Post by MONTEMARINO » Sun Dec 31, 2017 10:43

former member wrote:
Fri Dec 29, 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: 3314
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: Advanced tags for building plugins

#63

Post by Lobby » Sun Jan 14, 2018 12:08

It's hardcoded... For the fire frames there's an animation of id $animationfire04, but it won't look good.
...Have a nice stay

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2572
Joined: Sun Jul 23, 2017 12:45
Location: No idea either
Plugins: Show

Plugin Creator

Platform

Re: Advanced tags for building plugins

#64

Post by JustAnyone » Sun Jan 14, 2018 12:22

Lobby, build time is no longer only for RCI?

User avatar
Kulche
Inhabitant of a Country
Reactions:
Posts: 911
Joined: Wed Jun 07, 2017 20:28
Location: In da house
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#65

Post by Kulche » Sun Jan 14, 2018 13:55

Ooh, I have a question about fire; is it possible to add custom fire frames for choosen building?
I'm not lazy, I'm on battery saving mode!

User avatar
Lobby
Developer
Reactions:
Posts: 3314
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: Advanced tags for building plugins

#66

Post by Lobby » Mon Jan 15, 2018 17:21

[mention]JustAnyone[/mention] What exactly do you mean by that? It should be reversed.

[mention]Kulche[/mention] No, you can just override fire frames in general.
...Have a nice stay

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2572
Joined: Sun Jul 23, 2017 12:45
Location: No idea either
Plugins: Show

Plugin Creator

Platform

Re: Advanced tags for building plugins

#67

Post by JustAnyone » Mon Jan 15, 2018 17:41

[mention]Lobby[/mention] other building types can use build time attribute now?

User avatar
Kulche
Inhabitant of a Country
Reactions:
Posts: 911
Joined: Wed Jun 07, 2017 20:28
Location: In da house
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#68

Post by Kulche » Mon Jan 15, 2018 19:52

Can a building be unplaceable by a player, but placed when creating a new map? .....................oil industry coming
I'm not lazy, I'm on battery saving mode!

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2572
Joined: Sun Jul 23, 2017 12:45
Location: No idea either
Plugins: Show

Plugin Creator

Platform

Re: Advanced tags for building plugins

#69

Post by JustAnyone » Mon Jan 15, 2018 20:21

That's not what he asked for.

User avatar
Kulche
Inhabitant of a Country
Reactions:
Posts: 911
Joined: Wed Jun 07, 2017 20:28
Location: In da house
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#70

Post by Kulche » Mon Jan 15, 2018 20:51

As soon you can't build it, it's OK.
I'm not lazy, I'm on battery saving mode!

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest