Looking to Swap Items For Other Items' Spots In A List

Hello! Thank you for taking the time to read this. So, I have made a list of items (Friendships and Bond Points) that the player will get after the tutorial fight. This is meant to represent how many Friendships there are in the game. So, I have them in alphabetical order representative of the Friendships you unlock.

What I am struggling with is replacing an item with a Friendship (as shown with Cali in "Help 06") and not having it be at the top of the Items list. What my plan is is to have the particular Friendship replace the specific "???" item so Cali, for example, would be #3 on the list and not #1. Cali (Item #0072) would be replacing Item #0176 ("Help 03"). If it is possible to swap items and still have them in that item's previous spot on the list, that would be great. However, I'm at an impasse and am now looking for help. Any advice would be great.
Any particular reason why you are using items for friendships?
I don't know of a way to keep the sorting consistent... The newest item you receive will always be on top afaik.
By default the inventory is sorted in order of ascending ID.

You could group items together in the database, e.g.
  • ???
  • aaa (Level 1)
  • aaa (Level 2)

  • ???
  • bbb (Level 1)
  • bbb (Level 2)
Otherwise you'd probably need a plugin.
as far as i know, without any plugins help, item, armor, skill and whatever other list in the editor must be planed ahead before being inserted there. if placement is important to you, you should plan every item before creating them.

so, it would be like this:

??? item #1
friendship item #1
BP item #1
??? item #2
friendship item #2
BP item #2
??? item #3
friendship item #3
BP item #3

so when you remove ???#1 and add friendship#1, they will look like swaped.
I definitely appreciate the advice so far. It seems like I may have bit off more than I can chew with this. I'll try and look for plugins to help the process.
By default the inventory is sorted in order of ascending ID.

You could group items together in the database, e.g.
  • ???
  • aaa (Level 1)
  • aaa (Level 2)

  • ???
  • bbb (Level 1)
  • bbb (Level 2)
Otherwise you'd probably need a plugin.
beat me to it.

one plugin that aint made for this but could help is yanflys item core. it allows you to rename items using javascrip and events, so you could rename the ??? to friendship. but i think reordering the list is your fastest and best option.
I'm definitely going to try and order things. See if I can do that. 🙂

So, the reason I went with items is so I can try and trigger certain events. Like, you spend the Bond Points to level up the Friendship. Levelling up a Friendship sees an event/cutscene take place. Essentially, you level up the Friendship whenever you want so you aren't just interrupted by cutscenes. Maybe you need an item as well to level it up. 🙂 That is my thought process on things.
Hello! An update from much later in the day! It works! Thank you so much for all the help!
Screenshot 2022-07-08 00.14.38.png
If you don't want to manually go through and resort everything in your database, there is a plugin that lets you specify where to sort items - https://forums.rpgmakerweb.com/index.php?threads/item-and-skill-sort-priority.90931/
If you don't want to manually go through and resort everything in your database, there is a plugin that lets you specify where to sort items - https://forums.rpgmakerweb.com/index.php?threads/item-and-skill-sort-priority.90931/
Oh, wow! This is incredible! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/looking-to-swap-items-for-other-items-spots-in-a-list.149272/