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: 2847
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.
Making Ice cubes intead of pee since... yesterday :'v

User avatar
Bearbear65
Inhabitant of a Universe
Reactions:
Posts: 4544
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
Theotown forum authoritarian

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2847
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 649 times
TornadoSiren2.png
TornadoSiren2.png (774 Bytes) Viewed 649 times
The Main objective it's program the reaction feature and add a sound... I already have it.
Making Ice cubes intead of pee since... yesterday :'v

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 6598
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.
546546Currently using alpha? 546. 546 What's new? :)
Bushman!
:)

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

User avatar
Oshawotta737
Inhabitant of a Megacity
Reactions:
Posts: 272
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: 2847
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>?
Making Ice cubes intead of pee since... yesterday :'v

User avatar
JustAnyone
Feature manager
Reactions:
Posts: 2380
Joined: Sun Jul 23, 2017 12:45
Location: Pickle command center
Plugins: Show
Version: Beta
Phone model: Picklephone S5

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: 2847
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
Making Ice cubes intead of pee since... yesterday :'v

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2847
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
Making Ice cubes intead of pee since... yesterday :'v

User avatar
ElephantEthan
Inhabitant of a Megacity
Reactions:
Posts: 299
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?

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2847
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
Making Ice cubes intead of pee since... yesterday :'v

User avatar
ElephantEthan
Inhabitant of a Megacity
Reactions:
Posts: 299
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

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2847
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'''
Making Ice cubes intead of pee since... yesterday :'v

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2847
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 "
	}
}]
Making Ice cubes intead of pee since... yesterday :'v

User avatar
Oshawotta737
Inhabitant of a Megacity
Reactions:
Posts: 272
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: 2847
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
Making Ice cubes intead of pee since... yesterday :'v

User avatar
Oshawotta737
Inhabitant of a Megacity
Reactions:
Posts: 272
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: 2847
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? โ†‘
Making Ice cubes intead of pee since... yesterday :'v

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 6598
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
546546Currently using alpha? 546. 546 What's new? :)
Bushman!
:)

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

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 6598
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.
546546Currently using alpha? 546. 546 What's new? :)
Bushman!
:)

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

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2847
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 " 	} }]
Making Ice cubes intead of pee since... yesterday :'v

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2847
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
Making Ice cubes intead of pee since... yesterday :'v

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 6598
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
546546Currently using alpha? 546. 546 What's new? :)
Bushman!
:)

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

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 6598
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
546546Currently using alpha? 546. 546 What's new? :)
Bushman!
:)

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

User avatar
Mg3094066
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2847
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"
			}]
Making Ice cubes intead of pee since... yesterday :'v

Post Reply Previous topicNext topic

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

Who is online

Users browsing this forum: No registered users and 1 guest

๏ปฟ