Sign Up
Romhack.me connects you to ROM Hackers around the world.

Two questions about variables


0 Votes
Ness
Posted May 14, 2013 by Ness
Category: Scripting
Total Views: 1541

Are there any clean, unused variables in the original Ruby rom? I also heard I can use only variables 4050-4100, is that true?

All Answers



0 Votes
Hoenn Starlight
Posted May 14, 2013 by Hoenn Starlight

I think we can use more. As long as you set the value to zero prior to your script. I have not hacked Ruby much so I can't be sure. I'm guessing we can, tho.


0 Votes
Hoenn Starlight
Posted May 15, 2013 by Hoenn Starlight

Guess what? I found out some stuff. At the script that prevents the player from going into the sandstorm without Go-Goggles, the Var used there is 0. Really. 0. And I think the 6000+ aren't used yet. Of course, it wouldn't be recommended to use more than 7500, but 1500 vars (in hex, nonetheless) would be enough, I suppose.


0 Votes
Ness
Posted May 17, 2013 by Ness

6000+ have something written to it. My friend tested 6001 and 6050, and they had to be set to 0 before doing anything.
Are these variables really unused? Maybe they're just unimportant to the game.


0 Votes
The Glitch
Posted May 17, 2013 by The Glitch

Some vars may seem to be used, but most likely aren't probably from thing not fully implemented into the game.

You'll just have to test them, and see.


0 Votes
Jambo51
Posted May 17, 2013 by Jambo51

Really, aren't 0x50 vars enough anyway? Just be careful with your usage of variables, and reuse as many as you can and you'll have no such problems.

It's possible to extend the number of safe vars/flags on FireRed and Emerald, but NOT on Ruby, as far as I know, although that's a completely different question altogether.