Mini Water Treatment

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
CloakedGamer
Small-town resident
Reactions:
Posts: 29
Joined: 07 Oct 2017, 01:01

Platform

Mini Water Treatment

#1

Post by CloakedGamer »

I'm working on a plug-in that basically adds a mini water treatment center, however I don't know what codes are used in the original center. More specifically, what codes are used to lower water waste.

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

Platform

Re: Mini Water Treatment

#2

Post by Lobby »

Code: Select all

[
  {
    "id":"$filterplant00",
    "type":"water",
    "width":4,
    "height":4,
    "frames":[{"x":1536,"y":1777,"w":128,"h":63}],
    "price":40000,
    "monthly price":200,
    "water":-1,
    "water waste":-20000
  }
]
So a negative "water waste" value will do the trick (positive values will add waste).

User avatar
CloakedGamer
Small-town resident
Reactions:
Posts: 29
Joined: 07 Oct 2017, 01:01

Platform

Re: Mini Water Treatment

#3

Post by CloakedGamer »

Alrighty, thanks!

User avatar
CloakedGamer
Small-town resident
Reactions:
Posts: 29
Joined: 07 Oct 2017, 01:01

Platform

Re: Mini Water Treatment

#4

Post by CloakedGamer »

Lobby wrote:
08 Oct 2017, 22:46

Code: Select all

[
  {
    "id":"$filterplant00",
    "type":"water",
    "width":4,
    "height":4,
    "frames":[{"x":1536,"y":1777,"w":128,"h":63}],
    "price":40000,
    "monthly price":200,
    "water":-1,
    "water waste":-20000
  }
]
So a negative "water waste" value will do the trick (positive values will add waste).
Is there a code for anti-pollution? I already tried to make the normal "influence pollution" code negative, and it didn't amount to anything.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Mini Water Treatment

#5

Post by KINGTUT10101 »

Using a negative variable for "influence pollution" will reduce pollution. My depolluter is proof of that.
Last edited by KINGTUT10101 on 09 Oct 2017, 07:43, edited 1 time in total.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Mini Water Treatment

#6

Post by KINGTUT10101 »

Mixed them up.

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”