karatekid552
What happens if I push it?....
- 1,771
- Posts
- 12
- Years
- Do you really want to know? Really?
- Seen Jan 12, 2015
Hiya people~
Just wondering something... What do people mean when they say one var can be used for an entire game? That doesn't make sense to me. How can only one var be used (for example, 0x4011) to track more than one event in a hack? If someone could please elaborate on this, it would be much appreciated :)
Your game would have to be perfectly linear. But, it would be like this:
Let's say we have 5 events.
When event 1 happens, we setvar 0x4011 0x1.
Now, before event 2 happens, we:
compare 0x4011 0x1
if 0x0 goto @event_1_has_not_happened
then we can run event 2 if event 1 has happened.
For event three, we can do close to the same thing:
ompare 0x4011 0x2
if 0x0 goto @event_2_has_not_happened
Do you see? A var can hold up to 0xFFFF which is ~65,000. So, if your game is very linear (no option side quests, no events completes out of order) then yes, you could use just one var.
This makes way more sense. Thanks a ton. I find it really interesting that Var 4000 is temporary. I don't think I would've figured that out by myself.
You would have noticed if you used it for anything else.XD
Also, this will be of great service to you while scripting: https://www.pokecommunity.com/threads/302347
Last edited: