UODiamondCodex

PvP Tourney

A GM-run bracket-style PvP dueling event. A GM uses a control stone to summon paired fighters from waiting rooms into one of two arenas, drops the fences to start the duel, and the loser is teleported out with a participation prize. Unlike FFA/Bomberman, there is no .join command and no automatic scheduler.

Source: server/scripts/UOD/Events/UOD - Event Tourney.scp

How to run it

Control is entirely through the GM-only tournament stone i_stone_tourney (ID=i_gravestone_18), which opens the tourney_stone menu when double-clicked.

Command / Menu button Effect
Dclick i_stone_tourney Opens the tourney_stone GM menu.
SUMMON FROM ROOM 1 IN ARENA 1 Pulls players in waiting room 1 into arena 1 (via doicome_arena1), sets tag.newroom, toggles arena-1 fences (04001a9af, 04001a697).
SUMMON FROM ROOM 2 IN ARENA 1 Same for waiting room 2 into arena 1.
SUMMON FROM ROOM 1 IN ARENA 2 Pulls waiting room 1 players into arena 2 (doicome_arena2), toggles arena-2 fences (04001a698, 04001a696).
SUMMON FROM ROOM 2 IN ARENA 2 Same for waiting room 2 into arena 2.
Start The Fight in Arena 1 Toggles arena-1 fences down to begin the duel.
Start The Fight in Arena 2 Toggles arena-2 fences down to begin the duel.
Step on i_pad_stuff (Stuff Provider pad) Equips the standard tournament loadout and moves the player to waiting room 1.

Note: The menu also contains commented-out ENABLE/DISABLE HEALING and a RESET button that only says "allo" — these are non-functional/placeholder. All buttons are declared on=0 (SphereServer menu syntax), so the label text is what distinguishes them.

How it plays

  • Fighters gear up by stepping on the Stuff Provider pad (i_pad_stuff), which grants a full loadout: melee/ranged weapons, heater shield, 30 great heal + 30 total mana potions, 100 bandages, 100 arrows, 20 flamestrike scrolls, tm_bag_of_magic, full colored platemail, a pet llama, a full spellbook, and mana crystals — then teleports them to waiting room 1. Restocking note in-game: "we do not restock ANYTHING but regs before each combat."
  • The GM summons paired players from the waiting rooms into an arena; doicome_arena1/doicome_arena2 place each of the two fighters at fixed spots (arena stone UIDs 04001a9af/04001a697 for arena 1, 04001a698/04001a696 for arena 2), tag which arena they're in (tag.pvparena), and run checkregs to top up reagents (700 of each consumed, 70 of each restocked).
  • Certain spells are blocked in-arena via e_tourney @spellcast (fields, summons, gate, mark/recall, etc.). Runebooks are allowed.
  • Win condition: the duel ends on a death. e_tourney @death restores both fighters (tourneyrestore: dispel, cure, full stats), sends the winner back to their room (tag.newroom / tag.newroom2), and the loser to jail4 with 100 gold and a dated participation item (dupe of 040016a68 placed in the loser's bank).

Key definitions

Type Name Purpose
ITEMDEF i_stone_tourney (i_gravestone_18) GM-only control stone → tourney_stone menu.
MENU tourney_stone Summon / start-fight controls.
ITEMDEF i_pad_stuff Step pad that equips fighters and sends them to waiting room 1.
EVENTS e_tourney In-arena death handling and spell restrictions.
EVENTS e_wait Waiting-room script: blocks skills/combat for non-GMs, allows runebooks.
FUNCTION doicome_arena1, doicome_arena2 Place summoned fighters into arena 1 / 2.
FUNCTION togglefence Raises/lowers arena fences around an arena stone.
FUNCTION checkregs, tourneyrestore, end Reagent restock, stat restore, and gear-restore teardown.
Object UID 04001a9af, 04001a697 Arena 1 fighter positions / fence anchors.
Object UID 04001a698, 04001a696 Arena 2 fighter positions / fence anchors.
Object UID 040010552 Holds tag.newroom / tag.newroom2 (winner return rooms).
Object UID 040016a68 Participation prize template (duped for losers).
Regions waiting room 1, waiting room 2, tourney area, jail4 Named regions used for staging and exit.