View Single Post
Old 07-30-2022, 06:34 AM   #7375
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 131
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by ownedbycats View Post
Theoretically, it may be possible to do it with an exclude_metadate and a conditional, similar to this (mostly used for customizable video game player characters):

You'd need to be careful with the regexes though - an overly generic regex could go wrong and remove 'A & B' when 'C/D' is present.
Quote:
Originally Posted by JimmXinu View Post
Pretty sure you mean ships after the && not characters.

A conditional using the same key as the line is ignored.
Thanks for your suggestions, I managed to figure it out. It was a pretty simple solution.

Here's what I did:
Code:
add_to_extra_valid_entries:,redundant_ships
include_in_redundant_ships:ships


exclude_metadata_pre:
## Removes the character in Characters metadata if they are already included in Relationships metadata
 characters=~Character A&&ships=~Character A
 characters=~Character B&&ships=~Character B
 characters=~Character C&&ships=~Character C


## excluding redundant ships in post due to some replace_metadata stuff
exclude_metadata_post:
## Removes the platonic ship tag if ship is already mentioned in a romantic context
 ships=~Character A & Character B&&redundant_ships=~Character A/Character B
This does mean you'd have to add each character/ship that's redundant. My regex expressions might not be entirely correct, but it's working for me so far. I'll just fix them when I need to.
culytera is offline   Reply With Quote