Widget:Super MD Pokémon Moves Converter

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search

<script>

 function convert() {
   text = document.getElementById("text").value;
   
   split = text.split("\n");
   
   convertedText = "";
   
   for (const[index, element] of split.entries()) {
     row = index + 1;
     cells = element.split(", ");
     convertedText += " | move_" + row.toString() + "  = " + cells[0] + "
"; convertedText += " | level_" + row.toString() + " = " + cells[3] + "
"; convertedText += " |-
"; } document.getElementById("output").innerHTML = convertedText; }

</script>

<textarea name="text" id="text" cols="100" rows="5" style="width: auto;"></textarea>
<button onclick="convert()">Convert</button>

<converter style="white-space: break-spaces; font-family: monospace;" id="output"></converter>

<noscript>


The tool cannot be used because JavaScript is disabled.</noscript>