Advanced tags for building plugins
Moderator: Plugin Moderators
- FranchuFranchu
- Inhabitant of a Country
- Reactions:
- Posts: 799
- Joined: 28 May 2017, 00:07
- Location: Freezing in Argentina
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Advanced tags for building plugins
use
Code: Select all
"ordinal":0,
- Baby Racoon
- Settler
- Reactions:
- Posts: 1
- Joined: 24 Apr 2018, 15:29
- Plugins: Showcase Store
Re: Advanced tags for building plugins
I am Sorry But... I don't understand what does "h","w","x"or"y" mean.
I know it's Height,Width,etc
But it is needed to count pixels in width or height?
Example:
34 pixels in Height
And 30 pixels in width so the values are
"h":34,
"w":30
Is this right??
Please help me
Also in handle x and y
Give me some illustration.. Please for the sake of my Future:/
*I DO NOT FORCE YOU TO THIS*
Thanks!
I know it's Height,Width,etc
But it is needed to count pixels in width or height?
Example:
34 pixels in Height
And 30 pixels in width so the values are
"h":34,
"w":30
Is this right??
Please help me
Also in handle x and y
Give me some illustration.. Please for the sake of my Future:/
*I DO NOT FORCE YOU TO THIS*
Thanks!
- CommanderABab
- AB
- Reactions:
- Posts: 11135
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Advanced tags for building plugins
Baby Racoon wrote: ↑29 Dec 2018, 16:04 I am Sorry But... I don't understand what does "h","w","x"or"y" mean.
I know it's Height,Width,etc
But it is needed to count pixels in width or height?
No
Example:
34 pixels in Height
And 30 pixels in width so the values are
"h":34,
"w":30
Is this right?? Yes, but the "w" should be a multiple of 32 for most simple frame statements.
Please help me
Also in handle x and y x tracks to w, y tracks to h.
Using 4, a positive handle y would move where the image is drawn down 4 pixels, positive x would move it right 4 pixels.
Give me some illustration.. Please for the sake of my Future:/
*I DO NOT FORCE YOU TO THIS*
Thanks!
- FranchuFranchu
- Inhabitant of a Country
- Reactions:
- Posts: 799
- Joined: 28 May 2017, 00:07
- Location: Freezing in Argentina
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Advanced tags for building plugins
If you want to use the part of the image inside the black square:
Code: Select all
"bmp":"example.png",
"w":130,
"h":86,
"x":114,
"y":164
- Attachments
-
- example.png (1.55 KiB) Viewed 13162 times
- CommanderABab
- AB
- Reactions:
- Posts: 11135
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- CommanderABab
- AB
- Reactions:
- Posts: 11135
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- Lobby
- Developer
- Reactions:
- Posts: 3705
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Advanced tags for building plugins
For income you can just use
Right now you can't produce more income than that to prevent cheating. You may ask for it after you have a plugin that could make use of it.
Please elaborate what you mean by "unlock requirements” feature.
Code: Select all
"monthly price":-1
Please elaborate what you mean by "unlock requirements” feature.
- Madbro
- Small-town resident
- Reactions:
- Posts: 38
- Joined: 23 Jan 2019, 10:33
- Plugins: Showcase Store
-
Platform
Re: Advanced tags for building plugins
There’s buildings that requires level, population or a specific building to unlock, here I want to ask how to do this in pluginLobby wrote: ↑27 Jan 2019, 18:36 For income you can just useRight now you can't produce more income than that to prevent cheating. You may ask for it after you have a plugin that could make use of it.Code: Select all
"monthly price":-1
Please elaborate what you mean by "unlock requirements” feature.
- Lobby
- Developer
- Reactions:
- Posts: 3705
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Advanced tags for building plugins
See here and here.
There's a simplified syntax that looks like:
There's a simplified syntax that looks like:
Code: Select all
"requirements":[
{
"type":"RANK", // Requires a specific city rank
"lvl":2
},
{
"type":"BUILDING", // Requires a specific building
"id":"$theidofarequiredbuilding"
},
{
"type":"HABITANT_COUNT", // Requires a population of at least 1000
"count":1000
}
]
- THEMAX
- Inhabitant of a Universe
- Reactions:
- Posts: 4314
- Joined: 14 Sep 2017, 17:30
- Location: Astrellia, UHAE
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Advanced tags for building plugins
How can I make a building need to be placed on both water and land as the small pump building ? It’s for my nuclear plugin package for the pump .
- CommanderABab
- AB
- Reactions:
- Posts: 11135
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Advanced tags for building plugins
From the small pump code:
Code: Select all
...,
"needs water":true,
"needs land":true,
...
- THEMAX
- Inhabitant of a Universe
- Reactions:
- Posts: 4314
- Joined: 14 Sep 2017, 17:30
- Location: Astrellia, UHAE
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Advanced tags for building plugins
Can the random frame be used for a vehicle and if it can , how can I make it work ?
I would be interested for that so vehicles color variations spawn randomly .
I would be interested for that so vehicles color variations spawn randomly .
- JustAnyone
- Developer
- Reactions:
- Posts: 3491
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: Advanced tags for building plugins
You could try spawning random cars with lua.
- Brody Craft
- Inhabitant of a Infinity
- Reactions:
- Posts: 8034
- Joined: 24 Jan 2017, 11:15
- Location: SE Asia
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Advanced tags for building plugins
TheoTown feels like coding on roblox now.
- Imran M
- Inhabitant of a Country
- Reactions:
- Posts: 844
- Joined: 24 Oct 2018, 13:41
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Advanced tags for building plugins
Yep, especially the lua. I dipped a toe into lua because of a cousin. We didn't even get past print since it took too long!