User Tools

Site Tools


cerea2:build:encounter_system

encounter system sepecification

basics/why

the current encounter system does not allow suitable hooks to other things and timings with cleanup cause problems.

needed tools

Build script to convert encounters to generic trigges with waypoints as spawn points. taking following info from the encounter:

  • Name
  • Tag
  • Min total creatures
  • Max total creatures
  • reset time
  • difficulty
  • spawn to: spread out, spread out in order, grouped at randm, grouped furthest.

for each creature:

  • resref
  • min
  • max
  • CR

Things that should NOT be transfered

  • Unique flag
  • Only once flag
  • Any other reset info(numeber times max. etc.)
  • faction
  • player only

needed functionality

All these should be in first verion

Get the CR of the players nearby in suitable radius(50 meters?)

the points are: Sum of all “CRPoints” of PCs.

to get the points: Each CR in level difference is about *1.5-*2, we have to experiment to find the right number.

So with a multiplier 2:

CRPointa
11
22
34
48
516
632

..

Thus a level 5+level3+level 1 chars moving together would have: 21 points, thus below the 32 points for CR6, but two level 5s would be total of CR 6.

effect of difficulty: very easy: player level -4 easy: player level -2 normal: level hard: level +2 very hard: level +4

likely would be good to be just a “level modifier” number, but use values above in the conersion from exsting.

create encouter: Try to find creatures of suitable CR, create.

For wrong levels: creatures all of higher levels: create min ammounts creatures all of lower levels: create max ammounts of the high creatures. else: Create the creaturesusing thr same CR weightings as for Characters above.

Integrate with cleanup so cleanupped things get their encounter reprimed

extra functionality

These can wait until basics work

Make a “on triggred” hook.

Make a “entered but not triggered” hook.

DM (easy) ability to turn off all encounters in area/given encounter.

Make resting reprime encounters in the area as 8 ingame hours had passed.

Finetuning of the CR multiplier

Resting disturbed by nearby encounters that trigger again in less than the 8 hours from resting start.

suggsed naming

ce_g_e_oneneter The enter encounter trigger entry script

trigger name: curent encounter name

waypoint name: current encountername+ “ spawn”

waypoint tag: triggertag

cerea2/build/encounter_system.txt · Last modified: 2015/05/03 12:32 by 127.0.0.1