View Single Post
Old 23rd August 2014, 03:36 AM  
Emerald Hacker
Sky0fBlades's Avatar
Join Date: Sep 2012
Location: Ice Path
Age: 26
Posts: 128

Originally Posted by J9794 View Post
"The script will run, if and only if, the var in the box is equal to the value"

Does that mean I can use the same var for 65536 different scripts? (as long as each script prepares the var for the next one).
Not sure about 65536; but as far as multiple scripts, yes. You'd need to use flags to deactivate those scripts if you don't want them to happen again.

BTW if anyone's hacking Emerald, watch out with those vars. I know this stuff is primarily for FireRed but I recently ran through Battle Frontier's level scripts and several of the ones in the 0x4000+ range are used in there. Can't remember exactly which scripts, but some of the higher ones are also in level scripts in other maps. If you're removing all that stuff from the game it shouldn't matter though unless I'm mistaken. I'm using 0x4059 for all my script tiles right now, making sure it is set at 0 (it's default value) by the end of every script if I ever change it and it's all working so far.

Last edited by Sky0fBlades; 23rd August 2014 at 04:11 AM.
Sky0fBlades is offline  
Likes J9794 liked this post