Functional Tornado Siren [WIP]

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

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

Plugin Creator

Platform

Functional Tornado Siren [WIP]

#1

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.
I want my diamonds you get the plugins free or not :bd

User avatar
Bearbear65
Inhabitant of a Universe
Reactions:
Posts: 4594
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: Xperia™ XZ1 SO-01K

Platform

Re: Disaster reaction?

#2

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! pszo48ly

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

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#3

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 992 times
TornadoSiren2.png
TornadoSiren2.png (774 Bytes) Viewed 992 times
The Main objective it's program the reaction feature and add a sound... I already have it.
I want my diamonds you get the plugins free or not :bd

User avatar
CommanderABab
AB
Reactions:
Posts: 7562
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Functional Tornado Siren [WIP]

#4

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

Be sure to spell management right if you really want to influence it.
746!746Currently using beta 746. 746 What's new? :)
lit trfc lights!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

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

Platform

Plugin Creator

Re: Functional Tornado Siren [WIP]

#5

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 Supercluster
Reactions:
Posts: 3102
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#6

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>?
I want my diamonds you get the plugins free or not :bd

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2595
Joined: Sun Jul 23, 2017 12:45
Location: No idea either
Plugins: Show

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#7

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 Supercluster
Reactions:
Posts: 3102
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#8

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
I want my diamonds you get the plugins free or not :bd

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

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#9

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
I want my diamonds you get the plugins free or not :bd

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

Platform

Re: Functional Tornado Siren [WIP]

#10

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 Supercluster
Reactions:
Posts: 3102
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#11

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
I want my diamonds you get the plugins free or not :bd

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

Platform

Re: Functional Tornado Siren [WIP]

#12

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
}
[mention]Mg3094066[/mention]

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

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#13

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

Hmmmm.. I have to put the Fun condition in the same object?
:0'''
I want my diamonds you get the plugins free or not :bd

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

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#14

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 "
	}
}]
I want my diamonds you get the plugins free or not :bd

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

Platform

Plugin Creator

Re: Functional Tornado Siren [WIP]

#15

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

Iwhen will this be ready?

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

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#16

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
I want my diamonds you get the plugins free or not :bd

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

Platform

Plugin Creator

Re: Functional Tornado Siren [WIP]

#17

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

Oh.

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

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#18

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

Welp... The question will be...
My code is fine? ↑
I want my diamonds you get the plugins free or not :bd

User avatar
CommanderABab
AB
Reactions:
Posts: 7562
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Functional Tornado Siren [WIP]

#19

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
746!746Currently using beta 746. 746 What's new? :)
lit trfc lights!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
CommanderABab
AB
Reactions:
Posts: 7562
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Functional Tornado Siren [WIP]

#20

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

Remember management is spelled m a n a g e m e n t.
746!746Currently using beta 746. 746 What's new? :)
lit trfc lights!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest