Skip to content

Instantly share code, notes, and snippets.

@Entoarox
Last active March 17, 2017 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Entoarox/76398be5eff22d05037172bfb4212c8a to your computer and use it in GitHub Desktop.
Save Entoarox/76398be5eff22d05037172bfb4212c8a to your computer and use it in GitHub Desktop.
Idea for ALL spawner

Spawner mechanics for ALL

Goals:

  • Allow for locations to spawn monsters
  • Allow for configuration of the spawn mechanics

Spawning

The idea is to repurpose the red sphere tile in the Paths tilesheet as a "spawner" tile When this tile is placed on Paths, ALL will try and read attributes on it to handle the actual spawning

Attributes

spawner_type - What type of spawner this is

  • Single, monsters are spawned only on a new game
  • Daily, monsters are spawned once a day
  • Visit, monsters are spawned on each visit
  • Timer, monsters are spawned on a timer while the Farmer is visting

spawner_monster - what monster the spawner spawns

  • Monster names todo

spawner_limit - how much of the monster spawned by this spawner can be on the map at once

  • Only affects Timer typed spawners
  • Once Limit is reached for a certain monster, the spawner will not spawn more

spawner_cooldown - how long before the spawner will spawn again

  • Only affects Timer typed spawners
  • Time in seconds between spawns
  • Can be 2 different numbers with a ~ between them to get semi-random cooldown (example: 2~5 for a cooldown between 2 and 5 seconds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment