Lincoln-LM / sv-live-map

GUI Map for displaying information on Tera Raid Dens in Pokémon Scarlet and Violet
GNU General Public License v3.0
25 stars 6 forks source link

Complex filters provided by user-written scripts #58

Open Lincoln-LM opened 1 year ago

Lincoln-LM commented 1 year ago

The option to write stop conditions in python script-form would open up a lot of possibilities for more complex filter. As an example, a user could type in a box raid_data.species == Species.DUNSPARCE and raid_data.encryption_constant % 100 == 0 and have it properly filter for triple segment dunsparce evos. A potential sandboxed eval that has been suggested: https://github.com/danthedeckie/simpleeval