Advanced tags for building plugins

Learn here how to create and use plugins.

Moderator: Plugin Moderators

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

Platform

Re: Advanced tags for building plugins

#41

Post by Lobby » Tue Sep 26, 2017 14:12

I would create it as commercial building as casinos are commercials in real world, too. About income, that's currently not supported for plugin buildings.
...Have a nice stay

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

Plugin Creator

Platform

Re: Advanced tags for building plugins

#42

Post by JustAnyone » Wed Oct 25, 2017 21:15

So how does
p, height and radius works?

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

Plugin Creator

Platform

Re: Advanced tags for building plugins

#43

Post by JustAnyone » Wed Oct 25, 2017 21:33

former member wrote:
Wed Oct 25, 2017 21:31
P is probability
The lower, the rarer the building will spawn.
Height is how far from the coastline. You can see exactly on Lobby's picture.
Radius just is the max difference from height where building can spawn.
So if I want my building to always spawn on ground, what should I have written as radius and height.

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

Platform

Plugin Creator

Re: Advanced tags for building plugins

#44

Post by CommanderABab » Wed Oct 25, 2017 21:38

Height 600, radius 500 ?
754!754Currently using beta 754. 754 What's new? :)
harder hard mode!!
:)

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

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

Plugin Creator

Platform

Re: Advanced tags for building plugins

#45

Post by JustAnyone » Wed Oct 25, 2017 21:38

CommanderABab wrote:
Wed Oct 25, 2017 21:38
Height 600, radius 500 ?
Gonna try this on 5 new maps.

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

Plugin Creator

Platform

Re: Advanced tags for building plugins

#46

Post by JustAnyone » Wed Oct 25, 2017 21:45

OK. It spawns, but every time on the edge of the map.

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

Platform

Plugin Creator

Re: Advanced tags for building plugins

#47

Post by CommanderABab » Wed Oct 25, 2017 21:47

If you use the same map every time, they will probably always occur in the same area. If you have a max count on the buildings, they will probably only occur at the southern end of the map unless the probability is extremely small.
754!754Currently using beta 754. 754 What's new? :)
harder hard mode!!
:)

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

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

Plugin Creator

Platform

Re: Advanced tags for building plugins

#48

Post by JustAnyone » Wed Oct 25, 2017 21:48

CommanderABab wrote:
Wed Oct 25, 2017 21:47
If you use the same map every time, they will probably always occur in the same area. If you have a max count on the buildings, they will probably only occur at the southern end of the map unless the probability is extremely small.
To fix it if I have max count, decrease probability by a lot, right?

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

Platform

Plugin Creator

Re: Advanced tags for building plugins

#49

Post by CommanderABab » Wed Oct 25, 2017 21:56

Yes, or use a higher height and a small radius.
754!754Currently using beta 754. 754 What's new? :)
harder hard mode!!
:)

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

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

Platform

Re: Advanced tags for building plugins

#50

Post by Lobby » Wed Oct 25, 2017 22:27

As your buildings won't be built on water (unless you explicitly allow them to be built there) you may use something like radius:1000, height:100.
...Have a nice stay

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2608
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: 2608
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"

cesareborgia94
Inhabitant of a Continent
Reactions:
Posts: 1246
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: 2608
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: 7655
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
754!754Currently using beta 754. 754 What's new? :)
harder hard mode!!
:)

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

User avatar
CommanderABab
AB
Reactions:
Posts: 7655
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!
754!754Currently using beta 754. 754 What's new? :)
harder hard mode!!
:)

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

User avatar
Lobby
Developer
Reactions:
Posts: 3342
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"

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest