Random Spawn
  • led5
    Posts: 1
    Joined: Thu Nov 30, 2017 7:00 pm

    Random Spawn

    by led5 » Thu Nov 30, 2017 7:01 pm

    Is there any way to get a factory to spawn a random item?
  • User avatar
    chrish
    Posts: 233
    Joined: Mon Oct 10, 2016 5:45 pm
    Location: Albuquerque, NM
    Contact:

    Re: Random Spawn

    by chrish » Wed Jan 03, 2018 12:16 pm

    No there's not. One idea would be to set up three factories and set them each at a low percentage likelihood for spawning at each interval. This would not guarantee only getting one at a time, but might work in your scenario.

    Here's another fancier idea: have a single factory that spawns a plaque, and in that plaque, use a bit of javascript (I think this is one of the documented examples) to give out a random item.