Skip to content

Instantly share code, notes, and snippets.

@kawaii
Last active July 24, 2020 16:44
Show Gist options
  • Save kawaii/ed8e3f0a37bdfc51d370db73e77eaafb to your computer and use it in GitHub Desktop.
Save kawaii/ed8e3f0a37bdfc51d370db73e77eaafb to your computer and use it in GitHub Desktop.

general

  • admins can configure 'slots' which users can equip items from their inventory into
  • a default set of slots are provided, with a default UI (head, torso, legs, feet, hands, main hand, off-hand, neck, ring)
  • items are given an equipable flag, and if set allows selection of which slot they fit
  • items can trigger certain conditionals when equipped (i.e. you need X posts to wear this, you need X and Y reputation, usergroup needed)
  • item slot UI inspired by OldSchool RuneScape (https://oldschool.runescape.wiki/images/1/12/Worn_equipment_tab.png?c4bec)
  • items can trigger arbitrary scripts on equip/unequip (i.e. add the user to a group on equip, remove them from it on unequip)
  • in the future, items will/can optionally provide 'stats' to users when worn i.e. my %stat-boosts = attack => 4, speed => -2;
  • some items may prevent another slot from being used (i.e. my really big heavy sword uses both main hand and off-hand slots)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment