Upgrades
Moderator: Plugin Moderators
Re: Upgrades
Can an upgrade have a preview frame? For example, I don't want to change the look of the building itself, but the upgrade should have a pic.
I'm not lazy, I'm motivated to do nothing!
...
...
Re: Upgrades
Another complicated question, can upgrades use separators? I'll go straight to explanation.
So, we have upgrades A, B, C and D. Only one is true, a separator is between C and D. Would we able to choose A/B and/or C/D?
Hope you understand what I meant.
So, we have upgrades A, B, C and D. Only one is true, a separator is between C and D. Would we able to choose A/B and/or C/D?
Hope you understand what I meant.
I'm not lazy, I'm motivated to do nothing!
...
...
Online
- JustAnyone
- Rip-off engineer
- Reactions:
- Posts: 3028
- Joined: Sun Jul 23, 2017 12:45
- Location: Easter Island
- Plugins: Show
- A dutch Guy
- Inhabitant of a Megacity
- Reactions:
- Posts: 162
- Joined: Tue Dec 26, 2017 14:41
- Location: Enschede, The Netherlands
- Plugins: Show
Re: Upgrades
@Lobby Is it possible for an upgraded building to work as a car spawner?
I've tried it but it doesn't appear to be working (cars won't spawn when upgraded)
I've tried it but it doesn't appear to be working (cars won't spawn when upgraded)
Code: Select all
[
{
"id":"$Bus_LA_by_A_Dutch_Guy",
"type":"car",
"frames":[
{"bmp":"Bus_LA.png","w":20,"h":15,"count":4}
],
"v2":true
}
,
{
"id":"$Bus_NY_by_A_Dutch_Guy",
"type":"car",
"frames":[
{"bmp":"Bus_NY.png","w":20,"h":16,"count":4}
],
"v2":true
}
,
{
"id":"$Bus_PA_by_A_Dutch_Guy",
"type":"car",
"frames":[
{"bmp":"Bus_PA.png","w":20,"h":15,"count":4}
],
"v2":true
}
,
{
"id":"$Bus_BE_by_A_Dutch_Guy",
"type":"car",
"frames":[
{"bmp":"Bus_BE.png","w":20,"h":15,"count":4}
],
"v2":true
}
,
{
"id":"$dealership1TEST",
"type":"award",
"author":"A Dutch Guy",
"width":3,
"height":3,
"frames":[{"bmp":"dealership.png"}],
"upgrades": [{
"id": "$dealership1TEST_LA",
"frames":[{"bmp":"dealership.png"}],
"price": 2000,
"title": "Los Angeles",
"text": "Busses from Los Angeles",
"monthly price": 20,
"only one":true,
"car spawner":[
{
"cars":["$Bus_LA_by_A_Dutch_Guy"],
"radius":100,
"count":40
}
]
}
,
{
"id": "$dealership1TEST_PA",
"frames":[{"bmp":"dealership.png"}],
"price": 2000,
"title": "Paris",
"text": "Busses from Paris",
"monthly price": 20,
"only one":true,
"car spawner":[
{
"cars":["$Bus_PA_by_A_Dutch_Guy"],
"radius":100,
"count":40
}
]
}
,
{
"id": "$dealership1TEST_AM",
"frames":[{"bmp":"dealership.png"}],
"price": 2000,
"title": "Amsterdam",
"text": "Busses from Amsterdam",
"monthly price": 20,
"only one":true,
"car spawner":[
{
"cars":["$Bus_AM_by_A_Dutch_Guy"],
"radius":100,
"count":40
}
]
}
,
{
"id": "$dealership1TEST_BE",
"frames":[{"bmp":"dealership.png"}],
"price": 2000,
"title": "Berlin",
"text": "Busses from Berlin",
"monthly price": 20,
"only one":true,
"car spawner":[
{
"cars":["$Bus_BE_by_A_Dutch_Guy"],
"radius":100,
"count":40
}
]
}
]
}
]
Online
- JustAnyone
- Rip-off engineer
- Reactions:
- Posts: 3028
- Joined: Sun Jul 23, 2017 12:45
- Location: Easter Island
- Plugins: Show
Re: Upgrades
What I would do is to replace the whole building with one that spawns cars once the upgrade was applied using Lua or Fun.
=^._.^= ∫
Online
- JustAnyone
- Rip-off engineer
- Reactions:
- Posts: 3028
- Joined: Sun Jul 23, 2017 12:45
- Location: Easter Island
- Plugins: Show
Re: Upgrades
Lua > Fun
Change my mind
But anyways, that's how DSA rocket upgrades and other functions work.
Change my mind
But anyways, that's how DSA rocket upgrades and other functions work.
-
- Metropolitan
- Reactions:
- Posts: 120
- Joined: Tue Jul 30, 2019 6:05
- Location: south korea
- Plugins: Show
Re: Upgrades
I have a question--
I made a plugin that have two upgrades, and when I upgrade both of upgrades, It says "2/2 upgrade(s)".(both of the upgrade code is same.)
But I want upgrades would not be overlapped, like middle park and radio station.
Help me...
I made a plugin that have two upgrades, and when I upgrade both of upgrades, It says "2/2 upgrade(s)".(both of the upgrade code is same.)
But I want upgrades would not be overlapped, like middle park and radio station.
Help me...
Actually, I'm alive. 

- CommanderABab
- AB
- Reactions:
- Posts: 9105
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
-
- Metropolitan
- Reactions:
- Posts: 120
- Joined: Tue Jul 30, 2019 6:05
- Location: south korea
- Plugins: Show
Re: Upgrades




Actually, I'm alive. 
