Gingerbeard5773 / Zombies_Reborn

A Zombie Fortress mod for the game King Arthurs Gold
4 stars 7 forks source link

Migrant behavior change #122

Open SonantDread opened 2 weeks ago

SonantDread commented 2 weeks ago

Player's should be able to give professions to migrants in a menu that is similar to the taunt wheel or class changing. The areas in which they are able to complete tasks should be specified by the player or a station so they don't commit suicide.

Logger

Primary Task: Establish a tree farm by collecting nearby seeds.

Secondary Task: Gather wood.

Behavior: The player or a workstation can specify where the tree farm should be, so they won't plant trees in hostile locations.

Miner

Primary Task: Collect specified materials (all by default).

Secondary Task: Gather resources using a pickaxe or drill.

Behavior: Focus on player-specified regions or stations to avoid digging into dangerous areas. If no areas are set they will operate based on proximity.

Repair/Structure Upkeep

Primary Task: Maintain and repair player-built structures.

Behavior: Focus on player-specified regions to avoid placing themselves in harm's way. They can patrol specific buildings or infrastructure to ensure that zombies won't be able to enter.

Builder

Primary Task: Build and expand player-defined structures.

Behavior: Builders will prioritize safe construction zones and avoid working in hostile environments (?). If the player does not assign specific blueprints, the Builder will assist other migrants.

Patroller

Primary Task: Protect the settlement by patrolling or engaging in combat.

Secondary Task: Retreat to safety when low on health.

Behavior: The patrol routes and safe zones can be specified by the player. In the absence of threats, Patrollers will help other migrants or stand guard.

Idle Behavior

All migrants will automatically deposit collected materials into nearby storage containers or crates when applicable. If no storage space is available they should make a crate or request that the builder make a storage.

RobotDerevo commented 1 week ago

Happy aprill fools? Better check this guide to coding https://www.youtube.com/shorts/LwXZ4ulm1BU?feature=share