- SpawnStrategy: When and where it spawns mobs
- TargetStrategy: How it decides which monsters attack which players
- RoamingStrategy: Behavior of monsters without an attack target
- AttackStrategy: Behavior of monsters which have an attack target
Here are some example strategies for each category:
Spawn | ReplaceSingle | Respawns dead mobs until the population reached a certain value |
ReplaceTeam | When all mobs have died, respawn them all. | |
Ambush | Like ReplaceTeam, but only spawn them when a player is in a specific area. | |
Target | null | never choose an attack target |
Closest | Chooses the target closest to the monster | |
ClosestTeam | Chooses the target closest to any controlled monster | |
LastAttacker | Chooses the last combatant who attacked the monster | |
LastAttackerTeam | Chooses the last combatant who attacked any monster of the team | |
BestAttacker | Chooses the combatant who did most damage to monster | |
BestAttackerTeam | Chooses the combatant who did most damage to all monsters of the team | |
Roaming | null | do not move when not in combat |
Guard | Return to spawn position when not in combat | |
Map | Move randomly around the whole map | |
Area | Move randomly around the spawn area | |
Team | Move randomly to positions around the center of the team | |
Patrol | Move along a predefined set of waypoints | |
PatrolTeam | Move along a predefined set of waypoints, wait until everyone has reached the waypoint | |
Attack | null | never attack, never move when in combat |
Stationary | Use a random attack which is in range | |
Pursuit | Choose random attack. When in range, use it. When not in range, move into range. | |
Stalk | Choose random attack, move close to maximum range, use it. | |
Flee | Don't attack. Try to hold a minimum distance to target. |
Every monster type has a default strategy for each category. But spawn areas can manually override them. So you can have, for example, a demon castle where some demons patrol the surrounding, two demons guard the front gate, a group which ambushs any players who gets past the guards and some which roam the interior.
No comments:
Post a Comment