View Single Post
  #35  
Old 12-01-2019, 07:34 PM
this user was banned this user was banned is offline
Sarnak

this user was banned's Avatar

Join Date: Feb 2013
Posts: 402
Default

Not sure how much this helps but here's the javascript from the mana calculator at:
https://web.archive.org/web/20000510...calculator.htm

They were not taking into account int > 200 back then. Of course this doesn't mean that the game did the same.

Mana = ((Intelligence/5)+2) * (Level - (MagicLevel - 1))

HTML Code:
function Calculate1 () {
  var Intelligence = parseInt (document.forms.Form1.IQ.value);
  var Wisdom = parseInt (document.forms.Form1.WIS.value);
  var Level = parseInt (document.forms.Form1.LEV.value);
  var Mana;
  var ClassCode;
  for (var i=0; i < document.forms.Form1.Class.length; i++) {
    if (document.forms.Form1.Class[i].checked) {
      break;
      }
    }
  ClassCode = document.forms.Form1.Class[i].value;
  var Attribute = ClassCode.charAt(0);
  var MagicLevel = ClassCode.charAt(1);

  if (MagicLevel == "0") {
    alert("With all the intelligence and wisdom in the world, your total mana is still 0.  Pick a different class.");
    return false;
    }
  else {
    if (Level < MagicLevel) {
      alert("You do not have any mana at this level.  Choose a higher level.")
      return false;
      }
    }
  if (Attribute == "W") {
    Mana = ((Wisdom/5)+2) * (Level - (MagicLevel - 1))
    alert("Your total mana is " + Mana);
    }  
  if (Attribute == "I") {
    Mana = ((Intelligence/5)+2) * (Level - (MagicLevel - 1))
    alert("Your total mana is " + Mana);
    }       
}
Reply With Quote