Functional Tornado Siren [WIP]

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Functional Tornado Siren [WIP]

Post by Mg3094066 » Sun Sep 02, 2018 23:03

It's currently possible make a building react to a disaster? (A specific disaster)
IDK play a sound?
This could be useful in case of make a Disaster response Unit
Last edited by Mg3094066 on Mon Sep 03, 2018 3:51, edited 2 times in total.

User avatar
Bearbear65
Inhabitant of a Universe
Reactions:
Posts: 4469
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: ASUS ZenPad 10 z300c

Re: Disaster reaction?

Post by Bearbear65 » Mon Sep 03, 2018 0:18

I think that's possible
viewtopic.php?f=81&t=5959
Use variables but it's non specific if I'm correct
ImageJust my opinion
Caladrius is officially my favourite bird

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Re: Functional Tornado Siren [WIP]

Post by Mg3094066 » Mon Sep 03, 2018 3:56

Ok.. Lets see if really is possible. ยฉ

Code: Select all

[{"draw ground":true,"frames":[{"bmp":"TornadoSiren2.png"}],"height":1,"id":"$TornadoSiren00","influence magnament":100,"type":"public","width":1}]
Here is the basic structure of the Json file
TornadoSiren.png
TornadoSiren.png (569 Bytes) Viewed 422 times
TornadoSiren2.png
TornadoSiren2.png (774 Bytes) Viewed 422 times
The Main objective it's program the reaction feature and add a sound... I already have it.

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 6243
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Functional Tornado Siren [WIP]

Post by CommanderABab » Mon Sep 03, 2018 4:07

Be sure to spell management right if you really want to influence it.
512512Currently using 512. 512 What's new? :)
Nice homes!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

Oshawotta737
Inhabitant of a Megacity
Reactions:
Posts: 204
Joined: Wed Mar 28, 2018 22:53
Location: Murica
Plugins: Show
Version: Beta
Phone model: Galexy tab A

Re: Functional Tornado Siren [WIP]

Post by Oshawotta737 » Mon Sep 03, 2018 4:07

Yes. I live in tornado alley so i hear these frequently. I am so happuy these are being made. We shpould make it so you can trigger them by hitting one and trigger them all for fun instead of just for tornadoes. And when that happens all cars except police fire and ambulance should temporaaraly despawn.

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Re: Functional Tornado Siren [WIP]

Post by Mg3094066 » Mon Sep 03, 2018 4:32

ok ok ok...
I'll need some help...
I have to add a disaster condition frame 1 and then
Action: play sound:<sound>?

User avatar
JustAnyone
Feature manager
Reactions:
Posts: 2251
Joined: Sun Jul 23, 2017 12:45
Location: Phone repair service
Plugins: Show
Version: Beta
Phone model: Xiaomi Redmi 3s

Re: Functional Tornado Siren [WIP]

Post by JustAnyone » Mon Sep 03, 2018 6:50

disaster=1. Yes.
However it will shout at you if any disaster happens.

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Re: Functional Tornado Siren [WIP]

Post by Mg3094066 » Mon Sep 03, 2018 7:54

JustAnyone wrote: โ†‘
Mon Sep 03, 2018 6:50
disaster=1. Yes.
However it will shout at you if any disaster happens.
Dats the purpose of the plug-in XD

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Re: Functional Tornado Siren [WIP]

Post by Mg3094066 » Mon Sep 03, 2018 19:40

The disaster Condition isn't available at the moment...
I'll try to write the entire Json code for avoid dealing with problems at the update time and release it as fast as possible

User avatar
ElephantEthan
Inhabitant of a Megacity
Reactions:
Posts: 183
Joined: Sun Aug 26, 2018 14:07
Plugins: Show

Re: Functional Tornado Siren [WIP]

Post by ElephantEthan » Mon Sep 03, 2018 20:12

Mg3094066 wrote: โ†‘
Mon Sep 03, 2018 19:40
The disaster Condition isn't available at the moment...
I'll try to write the entire Json code for avoid dealing with problems at the update time and release it as fast as possible
There's a disaster variable, doesn't it work?
Perhaps the smartest elephant here. :calc
I ain't playing TheoTown a lot, but when I do, I am in my city
Euife

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Re: Functional Tornado Siren [WIP]

Post by Mg3094066 » Mon Sep 03, 2018 20:16

But only will play the sound with a disaster Condition... The action will be play sound

User avatar
ElephantEthan
Inhabitant of a Megacity
Reactions:
Posts: 183
Joined: Sun Aug 26, 2018 14:07
Plugins: Show

Re: Functional Tornado Siren [WIP]

Post by ElephantEthan » Mon Sep 03, 2018 20:51

Then make the condition check for the disaster variable.

Code: Select all

"condition":{  // This condition is only true if there's a disaster going on in the city.
  "type":"value",
  "code":"disaster",
  "z":1
}
@Mg3094066
Perhaps the smartest elephant here. :calc
I ain't playing TheoTown a lot, but when I do, I am in my city
Euife

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Re: Functional Tornado Siren [WIP]

Post by Mg3094066 » Mon Sep 03, 2018 21:16

Hmmmm.. I have to put the Fun condition in the same object?
:0'''

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Re: Functional Tornado Siren [WIP]

Post by Mg3094066 » Mon Sep 03, 2018 21:43

Hmmmm...

Code: Select all

[{
	"draw ground": true,
	"frames": [{
		"bmp": "TornadoSiren2.png"
	}],
	"height": 1,
	"id": "$TornadoSiren00",
	"influence maganament": 100,
	"type": "public",
	"width": 1,
	"fun": [{
		"condition": [{
			"type": "value",
			"code": "disaster",
			"z": 1
		}],
		"actions": [{
			"type": "play",
			"Id": "."
		}]
	}],
	{
		"id": "$Thunderbolt_1003",
		"type": "sound",
		"file": "Thunderbolt1003.mp3"
		"volume": 5 "
	}
}]

Oshawotta737
Inhabitant of a Megacity
Reactions:
Posts: 204
Joined: Wed Mar 28, 2018 22:53
Location: Murica
Plugins: Show
Version: Beta
Phone model: Galexy tab A

Re: Functional Tornado Siren [WIP]

Post by Oshawotta737 » Tue Sep 04, 2018 0:05

Iwhen will this be ready?

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Re: Functional Tornado Siren [WIP]

Post by Mg3094066 » Tue Sep 04, 2018 3:04

Really... Idk...
There may be spelling mistakes in the code (commas and brackets)
and the update it's still missing

Oshawotta737
Inhabitant of a Megacity
Reactions:
Posts: 204
Joined: Wed Mar 28, 2018 22:53
Location: Murica
Plugins: Show
Version: Beta
Phone model: Galexy tab A

Re: Functional Tornado Siren [WIP]

Post by Oshawotta737 » Tue Sep 04, 2018 3:15

Oh.

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Re: Functional Tornado Siren [WIP]

Post by Mg3094066 » Tue Sep 04, 2018 3:33

Welp... The question will be...
My code is fine? โ†‘

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 6243
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Functional Tornado Siren [WIP]

Post by CommanderABab » Tue Sep 04, 2018 4:27

Mg3094066 wrote: โ†‘
Tue Sep 04, 2018 3:33
Welp... The question will be...
My code is fine? โ†‘
Probably not.
Screenshot_20180903-220230.jpg
512512Currently using 512. 512 What's new? :)
Nice homes!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 6243
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Functional Tornado Siren [WIP]

Post by CommanderABab » Tue Sep 04, 2018 4:29

Remember management is spelled m a n a g e m e n t.
512512Currently using 512. 512 What's new? :)
Nice homes!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Re: Functional Tornado Siren [WIP]

Post by Mg3094066 » Tue Sep 04, 2018 4:40

Code: Select all

[{
		"draw ground": true,
		"frames": [{
			"bmp": "TornadoSiren2.png"
		}],
		"height": 1,
		"id": "$TornadoSiren00",
		"influence management": 100,
		"type": "public",
		"width": 1,
		"fun": [{
			"condition": [{
				"type": "value",
				"code": "disaster",
				"z": 1
			}],
			"actions": [{
				"type": "play",
				"Id": "$Thunderbolt_1003"
			}]
		}],
		{
			"id": "$Thunderbolt_1003",
			"type": "sound",
			"file": "Thunderbolt1003.mp3"
			"volume": 5 " 	} }]

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Re: Functional Tornado Siren [WIP]

Post by Mg3094066 » Tue Sep 04, 2018 4:49

I have to move it out of the array like this?
Attachments
1536029227289.png

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 6243
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Functional Tornado Siren [WIP]

Post by CommanderABab » Tue Sep 04, 2018 6:35

Closer!
Screenshot_20180904-001032.jpg
512512Currently using 512. 512 What's new? :)
Nice homes!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 6243
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Functional Tornado Siren [WIP]

Post by CommanderABab » Tue Sep 04, 2018 6:38

Screenshot_20180904-001417.jpg
512512Currently using 512. 512 What's new? :)
Nice homes!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2716
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Re: Functional Tornado Siren [WIP]

Post by Mg3094066 » Tue Sep 04, 2018 6:54

:mine :bt :mine

Code: Select all

[{
		"draw ground": true,
		"frames": [{
			"bmp": "TornadoSiren2.png"
		}],
		"height": 1,
		"id": "$TornadoSiren00",
		"influence management": 100,
		"type": "public",
		"width": 1,
		"fun": [{
			"condition": [{
				"type": "value",
				"code": "disaster",
				"z": 1
			}],
			"actions": [{
				"type": "play",
				"id": "$Thunderbolt_1003"
			}]
		}]
	}],
		 [{
			"id": "$Thunderbolt_1003",
			"type": "sound",
			"file": "Thunderbolt1003.mp3"
			"volume":5"
			}]

Post Reply Previous topicNext topic

Return to โ€œPlug-In Discussionโ€

Who is online

Users browsing this forum: No registered users and 2 guests

๏ปฟ