Here, here. Yet I'm giving my first real crack at it. I hope I can get a half decent one done. <_<
I know.... I've been around before TK2 and am yet to code a battle system.... Hell, I haven't even released a demo.... Sad
And I don't know how it is here, but if I make that "claim" over on TKZ, everyone starts yelling "No you wasn't!". So I don't really care if you don't believe I was around that long, because the fact of the matter is, I was. My come off over-defensive and whatnot, but I just get pissed that everytime I say that the next post is always something along the lines of, and saying it nicely, "No you wasn't!"
I'm still trying to get the if command to work for me. I am looking at the totorials on TKZ for that. I already learned how to create a custom shop/inn thanks to those tutorials.
You can code a shop/inn but not a simple If? That's kinda messed up, man! Razz
Or it could be me, but I would think Ifs would be easier.
Its not really hard, the basics being:
variable1! = 23 //Sets variable
If(variable1! = 23) //Checks with if IF the variable "variable1" is equel to 23,
//which it is, so....
{
Mwin("w00t! The variable [i]is[/i] 23, like Dr. Pepper!") //Stupid commands
a$ = Wait() //that's just filler I like the old way better.... :(
Mwincls() //here
}
If(variable1! ~= 23) //Checks to see if variable "Variable1!" is [b]not[/b] equal
// to twenty three. It is, so the following will not be run;
//however, if the variable were changed to any other number
//besides 23, then the following would not be run.
{
Mwin("NOOOO! THE WORLD IS AT AN END! THERE IS NOT 23 IN DR. PEEEEPPPPEEER!")
Wait(a$) //The old way to do wait
Mwincls()
}
}
I doubt that's very helpful,
at all, seeing as I've never been good at tutorials. But, there it is, anyway.
Basically, the very first line you see sets the variable equal to something, in this case, 23. It will then check to see if it is equal or not equal to 23. Since it is equal to 23, the first block (the stuff in between { and }) will be run. However, if I were to make 23 something else, say, 69 ( Razz ), then the second block will now be run, since variable1! is not equal to 23.
Basics, basics, basics. Don't just take that as I
am a bad advice giver, tutorial writer, etc. There's just some quick info that I hope makes
some sense to you, and, if it doesn't, continue to read the tutorials, which you should anyway.