About
Provides a recruiter NPC that allows players to join or resign from a list of configured jobs. Features dynamic dialog options based on player's current job status, per-faction NPC types, and easy configuration through faction definitions.
Main Features
- Per-Faction NPC Types Each configured faction gets its own unique NPC type (e.g., "recruiternpc_police", "recruiternpc_medic")
- Job Management Players can join or resign from their specific faction through NPC interaction
- Dynamic Dialog Options automatically adjust based on player's current faction
- Configurable Jobs Easy to add or remove jobs from the available list
- Three Options
- Join [JOB NAME] Job - Available when player is not in that job
- Resign from [JOB NAME] - Available when player is in that job
- Goodbye - Always available to close the conversation
Configuration
To make a faction available through the Recruiter NPC system, simply add FACTION.isJob = true to the faction definition file. The recruiternpc module will automatically detect all factions with isJob = true and create a dedicated NPC type for each one. Each faction will get its own NPC type with the ID format recruiternpc_[faction_uniqueid].
Example:
FACTION.name = "Police Department"
FACTION.isJob = true -- This faction will get a recruiter NPC
-- ... other faction properties