Move Tutor/TMHM Import Export

Added ability to import move tutor moves and tmhm moves using their respective editor windows.
This commit is contained in:
Dreuu
2018-08-05 00:56:36 -04:00
parent fef729191c
commit ae3e360e05
24 changed files with 497 additions and 76 deletions

View File

@@ -444,4 +444,27 @@ Module ExportDataFunctions
End Sub
Public Sub ExportTutorMoves(filename)
Dim moveTable As Integer = Int32.Parse((GetString(GetINIFileLocation(), header, "MoveTutorAttacks", "")), System.Globalization.NumberStyles.HexNumber)
Dim moveString As String = ""
Dim loopything As Integer = 0
While loopything < (Val(GetString(GetINIFileLocation(), header, "NumberOfMoveTutorAttacks", "")))
moveString = moveString & VB.Right("0000" & ReadHEX(LoadedROM, moveTable + (2 * loopything), 2), 4)
loopything = loopything + 1
End While
WriteString(filename, "TUTR", "TutorMoves", moveString)
End Sub
Public Sub ExportTMHMINI(INIFileName As String, ExportString As String)
WriteString(INIFileName, "TMHM", "TMHMData", ExportString)
End Sub
End Module