Wandering Animals

For Decorations and areal map layout tools.

Moderator: Plugin Moderators

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

Platform

Wandering Animals

#1

Post by Lobby »

Hi, here's another sample for fun functionality:
2017-09-10 15.40.14.png
Some animals wandering around and eating trees, wires and decorations :bb Here's a video🎞 showing them. They reproduce when you tap on them. Some of them will automatically be spawned on new maps.

Need some confusion? Here you have it :json

Code: Select all

// This is a plugin for TheoTown
// Visit www.theotown.com to learn more about TheoTown plugins
//
// Written by Lobby Divinus to demonstrate new fun functionality

[
  {
    "id":"$anim_terrain_animal00_animals00",
    "type":"animation",
    "frames":[{"bmp":"animals.png","w":32,"count":2,"handle y":8}],
    "speed":0.1
  },
  
  {
    "id":"$terrain_animal00",
    "type":"terrain",
    "ordinal":201,
    "width":1,
    "height":1,
    "title":"Wandering animals",
    "text":"Just some animals wandering around. Try to tap on them.",
    "frames":[null],
    "animation":[{"id":"$anim_terrain_animal00_animals00"}],
    "frame alignment area":true,
    "draw ground":true,
    "price":1000,
    "destroyable":false,
    "spawn":
    {
      "p":0.01,
      "height":600,
      "radius":600
    },
    "fun":[
      {
        "condition":{"type":"and","x":1,"inner":[
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","x":1},
          {"type":"remove"}
        ],
        "p":0.1
      },
      {
        "condition":{"type":"and","y":1,"inner":[
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","y":1},
          {"type":"remove"}
        ],
        "p":0.1
      },
      {
        "condition":{"type":"and","x":-1,"inner":[
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","x":-1},
          {"type":"remove"}
        ],
        "p":0.1
      },
      {
        "condition":{"type":"and","inner":[
          {"type":"building","y":-1,"invert":true},
          {"type":"wire","y":-1,"invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","y":-1},
          {"type":"remove"}
        ],
        "p":0.1
      }
    ],
    "on click fun":[
      {
        "condition":{"type":"and","x":1,"inner":[
          {"type":"buildable","id":"$terrain_animal00"},
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","x":1}
        ]
      },
      {
        "condition":{"type":"and","y":1,"inner":[
          {"type":"buildable","id":"$terrain_animal00"},
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","y":1}
        ]
      },
      {
        "condition":{"type":"and","x":-1,"inner":[
          {"type":"buildable","id":"$terrain_animal00"},
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","x":-1}
        ]
      },
      {
        "condition":{"type":"and","y":-1,"inner":[
          {"type":"buildable","id":"$terrain_animal00"},
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","y":-1}
        ]
      }
    ]
  }
]
Uses only one image:
animals.png
animals.png (1.47 KiB) Viewed 11572 times


Here the whole plugin as archive:
Attachments
animals.json
(3.34 KiB) Downloaded 624 times
wandering animals.zip
(2.56 KiB) Downloaded 1025 times

User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Wandering Animals

#2

Post by JustAnyone »

That's very good thing. Totally using in my forests.
And another thing: What device and what screen recorder did you use?

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

Platform

Re: Wandering Animals

#3

Post by Lobby »

Thank you! I used a Galaxy S7 edge with a feature called Game Tools which is preinstalled from Samsung :teach

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Wandering Animals

#4

Post by Josh »

They stole my f*cking trees :lol:
Amazing job Lobby!

User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Wandering Animals

#5

Post by Kulche »

I see new Runways in Your video. :D I think its coming! Btw nice!

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Wandering Animals

#6

Post by Josh »

Lobby, can you make randomly spawning trees in the world so the animals can eat them and the amount of trees stays in balance

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

Platform

Re: Wandering Animals

#7

Post by Lobby »

Seems possible, especially if you would model trees as buildings (which makes a lot of sense as trees use just a subset of building features).

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Wandering Animals

#8

Post by Josh »

Cool!

User avatar
Barky
TheoTown Cartographer
Reactions:
Posts: 2056
Joined: 17 Apr 2017, 22:13
Location: Ireland
Plugins: Showcase Store

Platform

Re: Wandering Animals

#9

Post by Barky »

:bc

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

Platform

Re: Wandering Animals

#10

Post by Lobby »

I just updated this plugin to use new fun functionality from version 341. The animals will no longer eat power lines nor buildings :lol:

This plugin and variants of it will probably be included into the game.

User avatar
Brody Craft
Inhabitant of a Infinity
Reactions:
Posts: 8034
Joined: 24 Jan 2017, 11:15
Location: SE Asia
Plugins: Showcase Store
Version: Beta

Platform

Re: Wandering Animals

#11

Post by Brody Craft »

Lobby wrote:
12 Sep 2017, 12:54
I just updated this plugin to use new fun functionality from version 341. The animals will no longer eat power lines nor buildings :lol:

This plugin and variants of it will probably be included into the game.
My god, animals eating power lines and buildings :lol: :shock:

User avatar
malsa
Inhabitant of a Multiverse
Reactions:
Posts: 5085
Joined: 10 Feb 2017, 17:40
Location: Malaysia
Plugins: Showcase Store
Version: Beta

Platform

Re: Wandering Animals

#12

Post by malsa »

I must to kill that animal

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

Plugin Creator

Platform

Re: Wandering Animals

#13

Post by CommanderABab »

Broken in 342

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Wandering Animals

#14

Post by Josh »

CommanderABab wrote:
13 Sep 2017, 03:10
Broken in 342
You have to download the latest version of the plugin

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

Plugin Creator

Platform

Re: Wandering Animals

#15

Post by CommanderABab »

Yep still broke

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

Platform

Re: Wandering Animals

#16

Post by Lobby »

Thank you, it's a bug in action execution. Will be fixed in 343 :bf

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

Plugin Creator

Platform

Re: Wandering Animals

#17

Post by CommanderABab »

Wandering animals still broke. I think it's because you no longer build new ones, just change the frames.

Fixed in 345. :)

User avatar
Hitez
Villager
Reactions:
Posts: 19
Joined: 30 Jul 2017, 06:55

Platform

Re: Wandering Animals

#18

Post by Hitez »

You gotta get you that S8+ or a N8. Theotown looks gorgeous on it!

User avatar
KrejvenRoud
Villager
Reactions:
Posts: 17
Joined: 08 Apr 2020, 10:18
Plugins: Showcase Store

Re: Wandering Animals

#19

Post by KrejvenRoud »

First of all, why animals eat wires?... electricity would kill them anyway, its great plugin, i just dont like when animals eating electrical wires, its seems so unlogical and feel more like disaster option. Animals a.k.a. terminators
Last edited by KrejvenRoud on 09 Jun 2020, 23:16, edited 1 time in total.

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

Plugin Creator

Platform

Re: Wandering Animals

#20

Post by CommanderABab »

Except anomals do chew wires in real life. Or at least the insulation. :)

Post Reply Previous topicNext topic

Return to “Decorations and Tools”