Guide talk:Maintaining low life: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>Jstn2050@legacy41644131
>AnnanFay
Line 3: Line 3:
The following is the script I used to get the permutations. You can save this as a .htm or .html file and just open it in a browser. All you need to give it is the percent of health reserved by gems, and it will output the permutations that give 65% health reserved in the format of Wiki table rows.
The following is the script I used to get the permutations. You can save this as a .htm or .html file and just open it in a browser. All you need to give it is the percent of health reserved by gems, and it will output the permutations that give 65% health reserved in the format of Wiki table rows.


''<nowiki>&lt;html&gt;&lt;head&gt;&lt;script&gt;/* Note the first element of reducedMana and skillTree is 1.0 as this denotes no gem or no nodes. */var reducedMana=[1.0, .9, .89, .88, .87, .86, .85, .84, .83, .82, .81, .80, .79, .78, .77, .76, .75, .74, .73, .72, .71];/* The skill tree nodes are additive */var skillTree=[1.00, .95, 0.9, 0.85, 0.8];var bloodMagic=[2.45, 2.42, 2.39, 2.37, 2.34, 2.32, 2.29, 2.26, 2.24, 2.21, 2.18, 2.16, 2.13, 2.11, 2.08, 2.05, 2.03, 2.00, 1.97, 1.96];/* Our goal is some number N that satisfies goal1 &lt;=N &lt; goal2 */var goal1=0.65, goal2=0.655;function test(){/* Get the percent value and make it a decimal. */var initReserve=document.getElementById('input').value / 100.0;var str='';var r=-1, s, b;var val, reserved;for(i in reducedMana){r++;s=-1;for(j in skillTree){s++;b=0;/* not initialized to -1 because it is required */for(k in bloodMagic){b++;val=reducedMana[i]*skillTree[j]*bloodMagic[k];reserved=val*initReserve;if ( reserved &gt;=goal1 && reserved &lt; goal2 ){/* Outputs normal rows for a Wiki table. */str+='|-&lt;br/&gt;'+'| '+r+'&lt;br/&gt;'+'| '+reducedMana[i].toFixed(2)+'&lt;br/&gt;'+'| '+s+'&lt;br/&gt;'+'| '+skillTree[j].toFixed(2)+'&lt;br/&gt;'+'| '+b+'&lt;br/&gt;'+'| '+bloodMagic[k].toFixed(2)+'&lt;br/&gt;';}}}}document.getElementById('output').innerHTML=str;}&lt;/script&gt;&lt;/head&gt;&lt;body&gt;&lt;label for="input"&gt;Health Reserved by Gems (%):&lt;/label&gt;&lt;input id="input" value=""/&gt;&lt;button onclick="test()"&gt;Calculate Permutations&lt;/button&gt;&lt;div id="output"&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</nowiki>''
  ''<nowiki>&lt;html&gt;&lt;head&gt;&lt;script&gt;/* Note the first element of reducedMana and skillTree is 1.0 as this denotes no gem or no nodes. */var reducedMana=[1.0, .9, .89, .88, .87, .86, .85, .84, .83, .82, .81, .80, .79, .78, .77, .76, .75, .74, .73, .72, .71];/* The skill tree nodes are additive */var skillTree=[1.00, .95, 0.9, 0.85, 0.8];var bloodMagic=[2.45, 2.42, 2.39, 2.37, 2.34, 2.32, 2.29, 2.26, 2.24, 2.21, 2.18, 2.16, 2.13, 2.11, 2.08, 2.05, 2.03, 2.00, 1.97, 1.96];/* Our goal is some number N that satisfies goal1 &lt;=N &lt; goal2 */var goal1=0.65, goal2=0.655;function test(){/* Get the percent value and make it a decimal. */var initReserve=document.getElementById('input').value / 100.0;var str='';var r=-1, s, b;var val, reserved;for(i in reducedMana){r++;s=-1;for(j in skillTree){s++;b=0;/* not initialized to -1 because it is required */for(k in bloodMagic){b++;val=reducedMana[i]*skillTree[j]*bloodMagic[k];reserved=val*initReserve;if ( reserved &gt;=goal1 && reserved &lt; goal2 ){/* Outputs normal rows for a Wiki table. */str+='|-&lt;br/&gt;'+'| '+r+'&lt;br/&gt;'+'| '+reducedMana[i].toFixed(2)+'&lt;br/&gt;'+'| '+s+'&lt;br/&gt;'+'| '+skillTree[j].toFixed(2)+'&lt;br/&gt;'+'| '+b+'&lt;br/&gt;'+'| '+bloodMagic[k].toFixed(2)+'&lt;br/&gt;';}}}}document.getElementById('output').innerHTML=str;}&lt;/script&gt;&lt;/head&gt;&lt;body&gt;&lt;label for="input"&gt;Health Reserved by Gems (%):&lt;/label&gt;&lt;input id="input" value=""/&gt;&lt;button onclick="test()"&gt;Calculate Permutations&lt;/button&gt;&lt;div id="output"&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</nowiki>''


--[[User:Jstn|Jstn]] ([[User talk:Jstn|talk]]) 20:36, 11 March 2013 (UTC)
--[[User:Jstn|Jstn]] ([[User talk:Jstn|talk]]) 20:36, 11 March 2013 (UTC)
:It's a good idea to make code snippets [http://www.mediawiki.org/wiki/Help:Formatting preformatted]. I've done this to your post, hope you don't mind. -[[User:AnnanFay|AnnanFay]] ([[User talk:AnnanFay|talk]]) 21:29, 11 March 2013 (UTC)


==Reserved Health/Gems==
==Reserved Health/Gems==

Revision as of 21:29, 11 March 2013

Script

The following is the script I used to get the permutations. You can save this as a .htm or .html file and just open it in a browser. All you need to give it is the percent of health reserved by gems, and it will output the permutations that give 65% health reserved in the format of Wiki table rows.

 <html><head><script>/* Note the first element of reducedMana and skillTree is 1.0 as this denotes no gem or no nodes. */var reducedMana=[1.0, .9, .89, .88, .87, .86, .85, .84, .83, .82, .81, .80, .79, .78, .77, .76, .75, .74, .73, .72, .71];/* The skill tree nodes are additive */var skillTree=[1.00, .95, 0.9, 0.85, 0.8];var bloodMagic=[2.45, 2.42, 2.39, 2.37, 2.34, 2.32, 2.29, 2.26, 2.24, 2.21, 2.18, 2.16, 2.13, 2.11, 2.08, 2.05, 2.03, 2.00, 1.97, 1.96];/* Our goal is some number N that satisfies goal1 <=N < goal2 */var goal1=0.65, goal2=0.655;function test(){/* Get the percent value and make it a decimal. */var initReserve=document.getElementById('input').value / 100.0;var str='';var r=-1, s, b;var val, reserved;for(i in reducedMana){r++;s=-1;for(j in skillTree){s++;b=0;/* not initialized to -1 because it is required */for(k in bloodMagic){b++;val=reducedMana[i]*skillTree[j]*bloodMagic[k];reserved=val*initReserve;if ( reserved >=goal1 && reserved < goal2 ){/* Outputs normal rows for a Wiki table. */str+='|-<br/>'+'| '+r+'<br/>'+'| '+reducedMana[i].toFixed(2)+'<br/>'+'| '+s+'<br/>'+'| '+skillTree[j].toFixed(2)+'<br/>'+'| '+b+'<br/>'+'| '+bloodMagic[k].toFixed(2)+'<br/>';}}}}document.getElementById('output').innerHTML=str;}</script></head><body><label for="input">Health Reserved by Gems (%):</label><input id="input" value=""/><button onclick="test()">Calculate Permutations</button><div id="output"></div></body></html>

--Jstn (talk) 20:36, 11 March 2013 (UTC)

It's a good idea to make code snippets preformatted. I've done this to your post, hope you don't mind. -AnnanFay (talk) 21:29, 11 March 2013 (UTC)

Reserved Health/Gems

With reserving health, the multiplier is always greater than one, so the initial health reserved cannot be greater than 65%. The only combinations I'm aware of are 25% (no output), 30%, 40%, and 55% (25% + 30%). There is no 60% as there is only one 30% gem, although 60% gives no output.

Are there any other gems that reserve mana in amounts other than 25%, 30%, and 40%?

--Jstn (talk) 20:36, 11 March 2013 (UTC)

Misinformation?

"Note: There are four Reduced Mana Reservation nodes -- each 5%, which is the same as a 95% multiplier. These nodes are not added, but multiplied together." - I'm pretty sure that anything that says "Increased" or "Reduced" is additive and not multiplicative unlike the "More" and "Less" counterparts. You can look this up anywhere on the PoE forums with a simple search. Mark has stated and reiterated this information several time. If, by some chance, it can be proven that these passive nodes are indeed multiplicative then it is a bug and should be reported to GGG.--FaceLicker (talk) 01:00, 7 March 2013 (UTC)

Yeah, I'm pretty sure it works that way also -AnnanFay (talk) 05:36, 7 March 2013 (UTC)
I did verify with math, but I may have been misled as adding the nodes together and multiplying them together give nearly the same results. I was also working with two nodes. (eg. n=[1,4], 0.95^n = 0.95, 0.9025, 0.857375, 0.81450625) I will go ahead and alter the page contents to reflect the fact that they are additive. --Jstn (talk) 20:05, 11 March 2013 (UTC)