NationStates Optimization Assistant

Provides links from NationStates issue pages to their NationStates Issue Results pages (http://www.mwq.dds.nl/ns/results/) in a new tab, and highlights stats on there in a way that should make it easier for you to determine how good or bad the option is for you (put the stats in one of the two arrays at the top of the code).

Autor
Matt Rethyu
Installationen heute
0
Installationen gesamt
29
Bewertungen
1 0 0
Version
1.6
Erstellt am
12.08.2024
Letzte Aktualisierung
21.08.2024
Größe
5,3 KB
Lizenz
MIT
Wird angewandt auf

This script provides links from NationStates issue pages to their NationStates Issue Results pages, and highlights stats on there in a way that should make it easier for you to determine how good or bad the option is for you. It is only useful if you use BOTH of them, it won't be of any use if you just play NationStates without consulting the results (http://www.mwq.dds.nl/ns/results/).

The first function - when you have any "voting" page opened (nationstates.net/page=show_dilemma/dilemma=Issue #), it will put a link on that page that leads you directly to the results page of that issue (mwq.dds.nl/ns/results/Issue #). This will save you a little time you might otherwise waste searching for it manually. The link will open in a new tab.

The second function - if you put any stats (Like "Economy", "Crime", "Death Rate") into the two arrays at the top of the script (examples provided in the code), the script will highlight their entries on the results page depending on whether choosing that result will bring you closer or further from optimizing that stat.

Dark green = will always bring you closer (or at least never further away)
Light green = can go either way but is more likely to bring you closer
Light red = can go either way but is more likely to take you further away
Dark red = will always take you further away (or at least never closer)

Gray = any stat you ignore (not in either array). The code shows which part you can comment out to keep them white if desired.

By default, both arrays are empty, so everything will be highlighted gray. Choose you own stats to put there.


Disclaimers

I am not affiliated with the person that made the issue results website.

If the script breaks NationStates rules, please notify me (nation - Paradox Corporation) and I'll take it down or correct it. The only thing it does NationStates-wise is put a link on the issue pages to the issue result pages, all client-side. It doesn't perform any prohibited or restricted actions, it doesn't send any requests to the NationStates server. It should be allowed as per the following excerpt from https://forum.nationstates.net/viewtopic.php?p=16394966#p16394966:
"Your tool may add links, buttons, or alternate input methods (e.g. keybinds) pointing to other NationStates pages."