Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

Logic Chain for Unique Encounters

Recommended Posts

So I want to run a logic chain to produce randomized demon spawns at randomized locations.

What I've done currently is assign each demon spawn an integer (e.g. Possessed worker = 1). Then, on trigger a random integer is given X number of times (X is the encounter size). Depending on other triggers or variables, I can assign how many times this sequence runs.

For the demon placements, I have a random relay after the demon spawn that is based on a different randomized integer, and based on this second integer the demon spawns at a different location (if 1, then spawn here, if 2, then over here, etc.).

Right now, I have this logic setup in an observation module outside the map, so the spawning and teleportation takes places off-map and can be directed anywhere on the map.

Since I don't have a programming background, my question is whether there is a a more simplified way to to provide random enemy encounters at random locations.

A side benefit of this logic is I can also buff the spawns to increase or decrease the difficulty. I can also sort of customize rooms to produce only certain monsters by limiting the Rinteger output (e.g. 1-4 are only human mobs, 5-9 are demons).

I can't upload the map yet for you to check out, so it's just theorycrafting here.

Share this post

Link to post

So in practice, I got it to work with

Trigger -> start repeater -> repeats integer -> compares integer -> on equal spawns X

on spawn add integer y, compare to encounter limit variable, on equal -> stop repeater

in retrospect, random spawners would conserve more resources but would make changing the difficulty levels more complex.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this