Modularising the PRC

maybe this can help you: https://neverwintervault.org/project/nwn1/script/scripting-library-pseudo-list-v4

this is a pseudo list that:

  • knows how many members it has
  • knows what is previous and next member
  • doesn’t need renumbering after removing a member
  • can add member anywhere into the list, head, tail, middle
  • can store classic pseudo array inside the member

disadvantages:

  • not unlimited number of members/elements not suitable for caching 2da
  • TMI (this is shared limitation of all pseudo-arrays solutions)
3 Likes