Hello sir/ma'am, may I ask if is it possible to change the id of the selected item from itemlist... without using gain/lose item trick?
Edit: I am using Tsukihime's item instance.
The idea is the new item sticks to the slot where the original item is and not at the last slot.
I dont understand the Question, can you ask differently?
( I also dont know about any Item Trick and i also dont understand why it should give me a 13 instead of a 1).
As said your question is confusing and would need more details to be sure, but at a guess of what you mean, the answer is no - because items are not stored as objects.
to change an item you would have to reduce the inventory count of the item you want to change by one, and add that +1 to the inventory count of the item you want to change it to.
why is the gain.lose item item a trick and why is this not an option for you?
nnnnnnnnnnnnnnnngh..... 😕
I know where the question goes, and I'm inclined to say "yes".... but I don't know, because I never attempted it.
technically, all "items" are actually stored as their ID, in the party's inventory, and then presented by retrieving the actual item object from the database based on the ID from the inventory.
so, yes, you can alter that by altering the ID from the inventory, but it all depends on how the inventory is arranged.
if you have an inventory plugin, the procedure might be different.
also, the items themselves are not indexed/ordered/stacked in any way in the inventory (they get ordered at the time of displaying them on the item window), so if you want to pick up a specific item, you'll need to order them first.
Do you write that Code for every Item? Than we could try and make it somehow into 1 Block.
For example one theoretical Way could be:
Item Select: You Selected ID5 the Sword which gets stored in Variable108 for example.
Now the new short Transmutate Codeblock could be something like this:
If Variable 108 is between for example 100 and 500 than do the below lines, else this is not a transmutable Item.
gain_item(data_weapons[var108], -1)
...then
gain_item(data_weapons[(var108 + 1)], +1) or you do: gain_item(data_weapons[(var108 + 100)], +1)
You would loose the Item and gain a Item that is 1 ID higher than the Selected one or in the second example if you choosed item id4 you would get Id104.
You would just need to keep an eye on the IDs you use in the Database. No clue if this would even work with the rest of your System.
But goes this towards what you want? How else would the Game know which Item to obtain?
After rereading your comment and realized "plugin," i forgot to mention, I am using Tsukihime's instance item. Sorry for not mentioning early. Really am not intellectualy well verse in scripting. 🙁
The idea is not to put the item at the last position everytime the item transmutates. I want the new item stays on the same spot as as its former item.
But are the Items not sorted Alphabetical in standard settings? Maybe thats the cause.
Or maybe one of your Plugins turned the Alphabetical sorting Off?