Hello gusdnide am, I'm here to show how this method Returns the value of status, ex: the God Mode DF Trainer 1.5, when off the status would be 0, I will show a method of how to return the value of the old character:
1 - Add 6 public variables:
Code:
Public str As Integer
Public int As Integer
Public dex As Integer
Public ends As Integer
Public luk As Integer
Public cha As Integer
2 - in the event "on" the God Mod, Add this code before it:
Code:
str = Me.AxShockwaveFlash1.GetVariable("_root.character.origStats.intStr")
int = Me.AxShockwaveFlash1.GetVariable("_root.character.origStats.intInt")
dex = Me.AxShockwaveFlash1.GetVariable("_root.character.origStats.intDex")
ends = Me.AxShockwaveFlash1.GetVariable("_root.character.origStats.intEnd")
luk = Me.AxShockwaveFlash1.GetVariable("_root.character.origStats.intLuk")
cha = Me.AxShockwaveFlash1.GetVariable("_root.character.origStats.intCha")
Example:
Code:
Private Sub OnToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OnToolStripMenuItem1.Click
Str = Me.AxShockwaveFlash1.GetVariable("_root.character.origStats.intStr")
Int = Me.AxShockwaveFlash1.GetVariable("_root.character.origStats.intInt")
dex = Me.AxShockwaveFlash1.GetVariable("_root.character.origStats.intDex")
ends = Me.AxShockwaveFlash1.GetVariable("_root.character.origStats.intEnd")
luk = Me.AxShockwaveFlash1.GetVariable("_root.character.origStats.intLuk")
cha = Me.AxShockwaveFlash1.GetVariable("_root.character.origStats.intCha")
OnToolStripMenuItem1.CheckState = CheckState.Checked
OffToolStripMenuItem1.CheckState = CheckState.Unchecked
If OnToolStripMenuItem1.Checked = True Then
Me.AxShockwaveFlash1.SetVariable("_root.character.origStats.intStr", 99999999)
Me.AxShockwaveFlash1.SetVariable("_root.character.origStats.intInt", 99999999)
Me.AxShockwaveFlash1.SetVariable("_root.character.origStats.intDex", 99999999)
Me.AxShockwaveFlash1.SetVariable("_root.character.origStats.intEnd", 99999999)
Me.AxShockwaveFlash1.SetVariable("_root.character.origStats.intLuk", 99999999)
Me.AxShockwaveFlash1.SetVariable("_root.character.origStats.intCha", 99999999)
OffToolStripMenuItem1.CheckState = CheckState.Unchecked
End If
End Sub
3 - In Event OFF God Mode Add In Value , the variable global exemple:
Code:
Me.AxShockwaveFlash1.SetVariable("_root.character.origStats.intStr", str)
Me.AxShockwaveFlash1.SetVariable("_root.character.origStats.intInt", int)
Me.AxShockwaveFlash1.SetVariable("_root.character.origStats.intDex", dex)
Me.AxShockwaveFlash1.SetVariable("_root.character.origStats.intEnd", ends)
Me.AxShockwaveFlash1.SetVariable("_root.character.origStats.intLuk", luk)
Me.AxShockwaveFlash1.SetVariable("_root.character.origStats.intCha", cha)
Credits :
@
DawgiiStylz
@
AqworldThunder