Advanced tags for building plugins

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Reactions:
Posts: 10784
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#201

Post by CommanderABab »

Hidden Content
This board requires you to be registered and logged-in to view hidden content.
So the main thing is it uses "random fun" with checks for if it can be built at the random spot.

In the notification, note that it uses a very low probability of actually sending the notification.
Last edited by CommanderABab on 26 Apr 2022, 18:40, edited 1 time in total.

Ryk_Mak_2050
Settler
Reactions:
Posts: 4
Joined: 25 Dec 2021, 18:57

Re: Advanced tags for building plugins

#202

Post by Ryk_Mak_2050 »

Can you provide the emergency vehicle code? I have the code to increase number of emergency vehicles but do not respond when I call an emergency.

Thiên Ân
Villager
Reactions:
Posts: 16
Joined: 07 Jul 2022, 21:23

Re: Advanced tags for building plugins

#203

Post by Thiên Ân »

How does the animated tag work?

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

Platform

Re: Advanced tags for building plugins

#204

Post by Lobby »

It's a legacy attribute to animate your buildings. For that, simply provide multiple frames to the "frames" attribute and then use "animated":true to let the game know that it should use these frames to animate the building. Nowadays I recommend to use separate animation objects instead that you can then reference to in the "animation" attribute.
=^._.^= ∫

User avatar
Mako1137
Inhabitant of a Megacity
Reactions:
Posts: 164
Joined: 05 Dec 2021, 22:31
Location: Sacramento, CA
Plugins: Showcase Store
Contact:

Platform

Re: Advanced tags for building plugins

#205

Post by Mako1137 »

What about waste disposal?
The Shark who eats Sea Pickles (:

User avatar
Mako1137
Inhabitant of a Megacity
Reactions:
Posts: 164
Joined: 05 Dec 2021, 22:31
Location: Sacramento, CA
Plugins: Showcase Store
Contact:

Platform

Re: Advanced tags for building plugins

#206

Post by Mako1137 »

Hey @Example of @Lobby, what is the tag for waste disposal?
The Shark who eats Sea Pickles (:

User avatar
Mako1137
Inhabitant of a Megacity
Reactions:
Posts: 164
Joined: 05 Dec 2021, 22:31
Location: Sacramento, CA
Plugins: Showcase Store
Contact:

Platform

Re: Advanced tags for building plugins

#207

Post by Mako1137 »

Question:

Does the "ordinal" tag have to start from 0?
The Shark who eats Sea Pickles (:

User avatar
CommanderABab
AB
Reactions:
Posts: 10784
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#208

Post by CommanderABab »

No, you can use negative(-1) to always be first. High number to always be last.

User avatar
aster dude
Metropolitan
Reactions:
Posts: 101
Joined: 15 Apr 2022, 10:32
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

#209

Post by aster dude »

are there no tags for rails?

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5660
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Platform

Plugin Creator

Re: Advanced tags for building plugins

#210

Post by Bearbear76 »

aster dude wrote:
24 Nov 2022, 08:38
are there no tags for rails?
Do you mean?

Code: Select all

"flag train": true
EDIT: You can always look at how the game implements railways here.
Just my opinion
I moderate on my free time.

User avatar
aster dude
Metropolitan
Reactions:
Posts: 101
Joined: 15 Apr 2022, 10:32
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

#211

Post by aster dude »

Bearbear76 wrote:
24 Nov 2022, 15:45
aster dude wrote:
24 Nov 2022, 08:38
are there no tags for rails?
Do you mean?

Code: Select all

"flag train": true
EDIT: You can always look at how the game implements railways here.
yeah, thx man

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”