hello everyone, I'm making a thread about Variables and VB6.
My goal is for you guys to understand coding better and make your own codes
Now let's study a common vb6 code:
Call ShockwaveFlash1.SetVariable("character.origStats.intStr", 9999)
This code sets your STR to 9999, but how?
I know that most of you making trainers just copy this part of the code:
Call ShockwaveFlash1.SetVariable and just fill in the vars correct?
Well, you will NOT get far in TMing(Trainer making) like this.
You must understand what the OPcodes(Operation codes) mean.
First of all the Call command
what the call command does is basically getting the attention of comething.
In this code it's Shockwave flash.
Now the ShockwaveFlash1
This is the name of your flash window
The one you load DF in. BUT be cautious however because the name could change.
If it's the first shockwave flash window you have then it's ShockwaveFlash1
If it's the second it should be:
ShockwaveFlash2 and so on
Now it's time for the SetVariable
Now you've called on your project, you need to command it.
So SetVariable is the command you chose.
SetVariable means to set a value of something.
There are also other commands like show or hide
The last part ("character.origStats.intStr", 9999)
Now you've command your project to set a variable, you need to define it.
Meaning telling your project what variable to change, and what it should change to.
So in this example the variable is:
character.origStats.intStr
and the value is:9999
And thats about it, my guide to vb6 coding. HAVE FUN MAKING TRAINERS!











