<< Back to General Forum   Search

Posts 1 - 4 of 4   
UJS Luck Graphs Script: 9/27/2019 14:47:13

Level 58
Hey everyone!

Recently I have been working on a couple scripts, and thought I would share my latest. It is still a slight work in progress, although with getting clogged with work from school, I feel like it'd be smarter to avoid procrastinating for the next bit :)

This script will recreate the Flash luck graphs (with % chance of taking a territory + armies lost) in UJS. The "analyze attack" window allows the customization of kill rates, luck modifier, rounding mode, and defending armies.


You will need TamperMonkey (or an equivalent for whatever browser you use) to install/run the userscript. I won't go into too many details on this, as Muli's userscript thread explains it concisely: https://www.warzone.com/Forum/106092-mulis-userscript-tidy-up-dashboard?Offset=0

Once you have added TamperMonkey, you can install my userscript (Link below) and you will be all good to go. Please wait until the game has loaded before clicking the "Flash Analyze Attack" button (as the element I append the window to is not always loaded by the time the button appears).

TamperMonkey: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en
Script: https://greasyfork.org/en/scripts/390496

At the moment I have implemented support for WR and SR. In terms of the options to set, you will need to input the kill rates/defending armies/luck modifier and WR vs. SR manually (although I have defaulted values for each). The script should work across all browsers (with only the UI being slightly varied) and will add a button to the menu bar upon getting into a game in which will open up the 'Analyze Attack' window.

If you have any additional suggestions or find bugs, feel free to send me a message. If you would like to suggest a different tool/script for me to make, also feel free to send me a message.

Edited 9/28/2019 03:30:31
UJS Luck Graphs Script: 9/27/2019 16:42:49

Level 59
one day he will script warzone 2
UJS Luck Graphs Script: 9/28/2019 08:14:13

Level 57
Just curious why you'd write a TamperMonkey script and not a Chrome extension? I've not used the former, and only played with the latter. I did write a few GreaseMonkey scripts for FireFox, when I used it years ago.

Is it possible for a script to interact with the map and orders?
UJS Luck Graphs Script: 9/28/2019 15:03:07

Level 58
There wasn't really any specific reason for a TamperMonkey userscript vs a Chrome extension. It really only came down to being more used to TamperMonkey and wanting to create a small script for fun (where TamperMonkey would more than suffice. I may look into making extensions later on, but I am too busy at the moment.

As far as your second question, interacting with the map is past what I am able to do. Warzone treats the entire map as one canvas HTML element, and so there isn't a direct way of 'looking' at the contents of a map. I should be able to interact with orders, though. Is there some tool you'd like?
Posts 1 - 4 of 4