View Single Post
Old 09-16-2025, 03:33 AM   #132
elzzzz
Junior Member
elzzzz began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2025
Device: iPad/Kindle
Quote:
Originally Posted by culytera View Post
Under replace_metadata, add this:
Code:
 ships_LIST,prefix_ships_LIST=>^(.*), (.*(Hermione Granger\/Draco Malfoy\/Theodore Nott))=>\2, \1
Result
Hey, thanks so much! this works great, however if I want to prioritize other ships as well i seem to run into issues. Dose the code run sequentially and then like repeat its single line until the end then move to the next line? I was trying to understand how the line above works. Because to me it seems like it appears to look at the first ship in the list and then all the other ships together, and then if it has the searched for ship, it will move the first ship to the end and then and then run it again until the specified ship is the first? but then if I wanted to check for a different pair, it would run through them all again, possibly messing up the previous priority.

So I don't know if its possible, but I was hoping to kind of prioritize multiple ships to pick through. I may be reaching with what I'm trying to do but I feel like even if i cant do it all I could do some of it. But I'm at least hoping to better understand how the coding works.

So potentially like this: From Highest Priority to lowest
Multi ship with Draco and Hermione 1st
1/2/3/x/x sometimes there is more than 3 and basically Id want to prioritize the long ship if that has Draco Malfoy and Hermione Granger
- If I could do something like this I wouldnt have to prioritize the specific ships of:
Draco Malfoy/Hermione Granger/Theodore Nott
Draco Malfoy/Harry Potter/Hermione Granger
Blaise Zabini/Draco Malfoy/Hermione Granger
Then if not a multi ship, check to prioritize the different ship. With the current solution, it seems like i might pick Draco Malfoy/Hermione Granger/Theodore Nott, but then when i check for Draco Malfoy/Hermione Granger that would overwrite it, i trie
Draco Malfoy/Hermione Granger
Harry Potter/Hermione Granger
Hermione Granger/Sirius Black
etc

Then maybe last if theres none of those ships, pick which everyone has Hermione Granger in it if possible.

I thought I could possibly do something where instead of doing the list, i actually just delete the other ships, but that wouldn't be ideal, and Id probably have to write out a lot of specifics (which i might have to do anyways, but still just trying to think of the best way)

I have a feeling ill have to change the regex to better get this done and I've started trying to learn, but it doesn't seem to always do what I'm expecting, especially if i do multiple expressions, so I am hoping to get clarity to better understand my limitations.

P.S. I spent the last few weeks religiously reading your posts and using the inis youve posted and they have been such a great help.
elzzzz is offline   Reply With Quote