Name:0m3GA ARS3NAL
E-Mail:
[email protected]
MSN/AIM/YIM/ICQ:Same as E-Mail, I use MSN
Time Zone: Pacific Time (UTC -8)
Job: Reporter, Interviewer, Tips/Tricks reviewer, Beginners Corner reviewer, Backup / Co-CSS (If Ever Needed)
Proof of Work:My signature is good CSS proof... as for an article...
In Today's Beginners corner, we look at how to use variables in useful ways!
Did you know, that a variable can be used as a flag?
Instead of using a bunch of flags to define an event, why not just use one variable?
Code:
#dynamic 0x800000
#org @start
compare 0x5000 0x4
if b_true goto @script1
compare 0x5000 0x3
if b_true goto @script2
compare 0x5000 0x2
if b_true goto @script3
compare 0x5000 0x1
if b_true goto @script4
.....
end
You see, that is much more efficient than using a whole bunch of flags to do what you want.
It saves you flags, and all you have to use it, is the variable commands.
[assistance=Variables]
[/assistance]
Keep in mind, that when you are using variables for flags, variables will not make Overworlds dissapear, like flags do, AND when a variable reashes a value of 0xFFFF, if you add to it, it will revert back to 0x0. Same goes for if your variable is 0x0, if you subtract 1 from it, it will revert to 0xFFFF!
That is all for now, check back next week for something new!
Hacking Experience:I am the lead scripter of Pokemon Colosseum: Advance, and I have enough knowledge of a ROM to decipher the daycare script, that and I have been working on a hack in semi-secret, and am planning on releasing a beta some time this February... if not, then March.