Arena Master Brain

Type: Assembly brain
Level: not in gallery
Pages: 1
Description: This is a game mechanic brain that controls the Arena encounter. After the player enters the arena, the doors close and two goblins are created. Once the player kills the goblins the exit door of the arena opens and he can leave.

Kode

  1. WHEN [once][in trigger zone][player] DO [IWP:entrance][power off] // this closes the entry door
  2. …WHEN DO [power on]
  3. …WHEN [for each of][objset:Enemy create points] DO [objset:enemies][increment by][create][goblin bruiser][at position][it][toward][me] // this creates a goblin at every position that has been added to the enemy create points set (a logic cube: see brain below)
  4. …/…WHEN DO [play fx][fx:poof][on][it]
  5. WHEN [has power]
  6. …WHEN [objset:enemies][count][equal to][0] // when there are no more goblins
  7. …/…WHEN DO [IWP:Exit][power on] // open the door
  8. …/….WHEN [duration timer][2] DO [look at target][IWP:exit]

Logic cube brains (spawning points)

WHEN [page entered] DO [IWP:Arena Master][objset:enemy create points][increment by][me]

Alterations

Adding more goblins

Simply copy and paste one of the spawn position logic cubes.

Changing to another enemy

Change line 3 to another enemy. You can use the once in the character gallery, assembly gallery, or templated character using IWP.

Having a boss appear instead of the door opening

Place a spawning point for your boss in the form of a logic cube

7. …/…WHEN [started to] DO[objvar:boss][equals] [create][yeti][at position][IWP:boss spawn][position]

8. …/…WHEN [not][objvar:boss]

9…/…/…WHEN DO [IWP:Exit][power on] // open the door

10…./…/…WHEN [duration timer][2] DO [look at target][IWP:exit]

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: