Live
Faction conflict events
Automated PvP events for rival criminal factions: shipments to fight over, targets to hunt and hills to hold, run from admin menus and scaled to who is online.
- Role
- Design and implementation
- Stack
- Lua (GLua), MySQL
- Context
- Organised crime roleplay on Diverge Networks
- Status
- Live, with King of the Hill in progress
The problem
Criminal factions need reasons to clash that don’t depend on staff running every event by hand. These systems run on a schedule, keep score and stay fair as player numbers change.
Shipment PvP
- Packages spawn on a schedule, and factions fight to take and deliver them.
- An admin menu starts and stops the event and sets its parameters, teams and scoring.
- Scores persist in MySQL across restarts.
Screenshot coming soon
The Shipment PvP admin menu: teams, scores and settings.
assets/projects/faction-events/shipment-admin.png (tight crop to the panel)
Target PvP
A murder-party style event. Every few minutes, members of competing factions are assigned targets on the other side. How often that happens depends on how many members of the selected factions are online, not on the whole server population.
- Target assignment stays random even when teams are tied.
- Points come from a single table at the top of the file, so balancing is a one-line change.
- Target descriptions favour clothing you can actually see, like hats, shirts and coats.
- When players found a way to cheat by reading networked event data, I shipped a fix that could go out on the live server immediately.
Screenshot coming soon
The Target PvP admin menu.
assets/projects/faction-events/targetpvp-admin.png (tight crop to the panel)
Video (optional) coming soon
An event running with bots, the score updating as it goes.
assets/projects/faction-events/event-running.mp4 (about 15 seconds)
King of the Hill
In progress. An in-game tool for drawing capture zones, with inner zones worth more points, and an admin menu for teams and event settings.
Video coming soon
Drawing a zone with the zone tool, then adding an inner bonus zone.
assets/projects/faction-events/koth-zone-editor.mp4 (15 to 20 seconds)