| View previous topic :: View next topic |
| Author |
Message |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Wed Jul 11, 2007 4:59 am Post subject: Anothor method of coding a flash trainer quickly |
|
|
NOTE To Uzeil,i knew this method before i made my first trainer fyi
GetVariable('lives1'); // Gets the variables lives1 (bubble trouble) player 1 life
SetVariable('lives1','10'); //same as above,adds 5 more lives,so you will have 10
=============
GetVariable('lives1');
SetVariable('lives1',Edit1.Text); //Will add the amount of lives that were written in the Edit1 box
=============
Last edited by DeletedUser14087 on Thu Jul 12, 2007 4:49 am; edited 1 time in total |
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Wed Jul 11, 2007 11:05 am Post subject: |
|
|
It's just setting the parameter to another string, but this time without the choice of choosing the actual value once set.
Could've just posted it on your release.
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Wed Jul 11, 2007 1:26 pm Post subject: |
|
|
3rd thread about making a trainer, why dont use the edit button ?
and yes, its actually the same like you stated in the other threads, here you just dont choose your own value.
|
|
| Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Wed Jul 11, 2007 1:52 pm Post subject: |
|
|
I'm starting to doubt your intellect, Kaspersky....
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Jul 11, 2007 4:11 pm Post subject: |
|
|
I was pretty sure I posted here, unless I'm losing my mind.
Is GetVariable even needed? I don't see why it would be.
|
|
| Back to top |
|
 |
AtheistCrusader Grandmaster Cheater
Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Wed Jul 11, 2007 11:33 pm Post subject: |
|
|
Do you know something like that
SetVariable(Edit2.text,Edit1.Text); ?
it's almost the same as in VB
actually it is the same code without Call command
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Jul 12, 2007 12:01 am Post subject: |
|
|
| The work is being done by the flash component, thats why. It will be the same in any language that uses it.
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jul 12, 2007 5:23 am Post subject: |
|
|
slovach, GetVariable is needed if you dont have a edit box where you can enter the Variable Name.
|Button1| [Edit1]
Button 1 got the GetVariable('Lives1'); then it automaticly gets the variable Lives1 instead of you entering Lives1 in a editbox. In the edit1 you can enter the amount, but if you use
GetVariable('Lives1');
SetVariable(10);
in Button1Click
it automaticly sets the variable: Lives1, to 10 when hitting button1.
hope you understand, also the codes might be wrong, just stood up
|
|
| Back to top |
|
 |
|