Linvail / keeperfx

Open source remake and Fan Expansion of Dungeon Keeper.
https://keeperfx.net/
GNU General Public License v2.0
0 stars 0 forks source link

Allow creature instance's code can be executed in multiple game turns #4

Open Linvail opened 2 weeks ago

Linvail commented 2 weeks ago

Currently, the creature instance's life can be categorized in 3 stages.

  1. Prepare
  2. Run
  3. Post idle time

The total game turns needed (1+2+3) is defined by "Time". "ActionTime" defines the game turn for the Run stage gets executed. The instance Id (in CreatureControl) will be cleared after "Time" game turn elapsed.

The problem is that the Run stage only has one game turn. It is only executed once. It greatly limits the capability of a creature. I plan to improve it.