Several design problems #6

Open
opened 2025-09-06 14:28:06 +02:00 by tour · 0 comments

chests

Chest are a great help visually, that's true. However there are several problems:

  1. Once a player right-clicks a chest by accident, there is no way to retrieve the items, unless someone is around who can stop a non-existing fight
  2. Storing stuff in chests holds the risk of loosing items:
    • #1
    • The chest might get destroyed during the fight (There are certain precautions one can take, but nothing can prevent other mods from messing around with the map)
    • chest can be unloaded when arena_end is called...

In general, I'm not such a big fan of using chests to sign up... It requires quite some logic to prevent interactions at wrong times...

missing callbacks

What happens once a player

  • leaves the game? How is his inv restored? What happens when the leader times out?
  • dies? There should be no bones and the inv should be restored. Otherwise we might run into probles with dupes of the leader inv...

My suggestion:

The leader has some sort of formspec to create the "fighting inv"
fights get started via /start_fight playername1 playername2 ... We have a counter for the amount of living players. Everytime someone dies/times out, the counter gets decreased. Once only one player is left, the fight ends. (command to end fights might still be useful)
fighting players shouldn't be able to leave the arena. There are tons of mods that can change the inv, there is basically no way to catch them all...

#### chests Chest are a great help visually, that's true. However there are several problems: 1) Once a player right-clicks a chest by accident, there is no way to retrieve the items, unless someone is around who can stop a non-existing fight 2) Storing stuff in chests holds the risk of loosing items: - #1 - The chest might get destroyed during the fight (There are certain precautions one can take, but nothing can prevent other mods from messing around with the map) - chest can be unloaded when arena_end is called... In general, I'm not such a big fan of using chests to sign up... It requires quite some logic to prevent interactions at wrong times... #### missing callbacks What happens once a player - leaves the game? How is his inv restored? What happens when the leader times out? - dies? There should be no bones and the inv should be restored. Otherwise we might run into probles with dupes of the leader inv... ### My suggestion: The leader has some sort of formspec to create the "fighting inv" fights get started via `/start_fight playername1 playername2 ...` We have a counter for the amount of living players. Everytime someone dies/times out, the counter gets decreased. Once only one player is left, the fight ends. (command to end fights might still be useful) fighting players shouldn't be able to leave the arena. There are tons of mods that can change the inv, there is basically no way to catch them all...
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Boot/Boots_Arena-PvP_Mod#6
No description provided.