Skip to content
Daniel Tischner edited this page Mar 19, 2017 · 6 revisions

Getting started

Get the script from our release candidates. Import BattleCalculator-Freewar.user.js and BattleCalculatorStatCrawler-Freewar.user.js as User-Script in Greasemonkey and start Freewar.

victory unknown defeat

Preparations

The player data like lifepoints, attacking power and defense strength will automatically be extracted from your stats. However, in case there is a problem or your browser doesn't support HTML5 Webstorage or does not accept cookies, static data is used. You may adjust those values of the variables playerExpectedLife, playerStrength, playerDefense and critLifeThreshold to fit your needs. They can be found near the beginning of the script.

Update NPC Data

The NPC data is also static and does not update by itself. However, you can adjust it with the objects npcData, critSpecialNpc, nonCritSpecialNpc.

You can export the NPC data from 'http://www.fwwiki.de/index.php/Kampfrechner/Daten'. Save the data as npcData.csv and start BattleCalculatorTool.java. It will process the file and generate a javascript map object, which then can be imported in BattleCalculator-Freewar.user.js.

Clone this wiki locally