Introduction
Introduction to lifecycles

What is a life-cycle

A life-cycle is an event based timeline of actions that might or will occur during the lifetime of your mob. Life-cycles can be created and added to one more multiple custom mobs.
Think about a boss related game. At first, your boss is doing regular attacks, as of certain percentage left of his health, the boss will become stronger or do different attacks. That is exactly how life-cycles work in bloodmoon.

Progress life cycle conditions

When the config property "mob-progress" under the "lifecylces" section of the config is enabled, it will also trigger the life cycle actions when a mob is hitting you.
This will result in more difficult fights. This also works for any mob attacking another mob.

How is a life-cycle defined

A life cycle has the following arguments:
[action-name] [start-percentage] [end-percentage] [chance to occur] [max occurences]
In the config a simple life-cycle would look like this:
magician:
actions:
- teleport-spell 100 0 40 20
- reinforcement-spell 30 0 60 1
- swap-spell 100 0 50 10
- blast-spell 50 0 60 10
- lightning-spell 20 0 50 1
death:
- lightning-spell 100
We have a life-cycle named "magician". Our life-cycle has several actions. In order to understand how does works, we take just one line and split it piece by piece.
- teleport-spell 100 0 40 20
We assume that you created an action "teleport-spell". Our teleport spell will occur between 100 and 0 percentage of the mob health. Every hit has a 40% chance of triggering the action. And the action will execute maximum 20 times during the life cycle.
If you take a look back to all the lines, you can see that certain event might or might not occur during the life cycle.

Actions on death

Introduced as of bloodmoon version 4.0, the death actions have been introduced. This is an additional list of actions that will be executed when the mob dies.
For each of the actions you can configure a percentage of possible occurrence. For example:
magician:
actions:
- lightning-spell 20 0 50 1
death:
- lightning-spell 100
You can use multiple actions on the same percentage levels. This will result in possibly 2 actions running
Copy link
On this page
What is a life-cycle
Progress life cycle conditions
How is a life-cycle defined
Actions on death