- 21
- Posts
- 10
- Years
- Seen Jan 18, 2015
Can someone tell me how to script for a trainer that if we want to battle him again, we talk to him (after 1st battle) he asks whether you want to battle again or not?
Can someone tell me how to script for a trainer that if we want to battle him again, we talk to him (after 1st battle) he asks whether you want to battle again or not?
Have a look at Spherical's post here for a brief overview - as your thread will be similar.
In the second part of your script ('snippet 1') you'll need to have a msgbox question - have a look at msgbox 0x5 here for details on how to do that.
To rebattle him with the exact same team, I believe you'll have to 'cleartrainerflag' and then repeat the trainerbattle command. Or you could direct the script to a different trainer ID! Up to you.
Hope this helps :< Afraid I'm avoiding writing a full script ;).
These are used flags in fire red / leaf green :) (you can use other flags than these i think)flags start in 200 is used in FireRed right?
And How to make a script that checks the date using DNS?
You're using disappear for some reason? Try using hidesprite. Also, flags above 0x2FF, in general, are unsafe, so it's best to stick within the range of 0x200 to 0x2FF.
settrainerflag 0x[Trainer ID]
Are there ways to make a wild Pokémon battle script in Emerald happen if you have certain Pokémon? Like, for example, having Regirock, Regice, and Registeel in order to battle Regigigas?
Can someone tell me which vars are safe to use in emerald version?
Can someone tell me which vars are safe to use in emerald version?
What are the safe vars for Emerald?
In general, only vars 0x4011-0x40FF are the safe. All others overlap different RAM such as PC Boxes or flags, or they are temporary/disposable. That being said, some of the ones in that range are also temporary or used by the games engine. So, just like with flags, you have to be careful. Check the lists, run some tests, delete old events; these are the only ways to truly know of they are safe. Outside of that range; forget about it, you'll end up ruining other events or causing bad eggs.
(Once again, these general rules apply to RSE too, you just won't have a list.)
You sure thats, the only safe ones? Cause I use 500-6000 in emerald. I've found that 4000-4010 are great for temp vars for doing a quick pos check.0x4011-0x40FF are the safe
You sure thats, the only safe ones? Cause I use 500-6000 in emerald. I've found that 4000-4010 are great for temp vars for doing a quick pos check.
Huh... Well then...I guess I will not be using anymore of those variables ever again.0x4000 - 0x4010 are indeed temporary, however above 0x40FF are used by things like the Storage System, and so on, and are almost definitely unsafe. Under 0x4000 tend to be either temporary or used for flags, I believe. 256 variables is plenty, anyway.
trainerbattle 0x3 0x1F5 0x0 0x88012FD
How to delete Mugshot of Elite 4 in Pokemon ruby?
Spoiler:
Code:trainerbattle 0x3 0x1F5 0x0 0x88012FD
Again, what is the code that checks the pokemon party slot I pressed in Special 9F
09F chooses a pokemon for a purpose and stores its position at 0x8004. works even with eggs
Taken from this thread:
So the special buffers the slot into the variable 0x8004, which you can then manipulate in whichever way you what.
...
special 0x9F
compare 8004 0x0
if == go to @1
...
so will this script works?
Spoiler:
Code:... special 0x9F compare 8004 0x0 if == go to @1 ...
which 0x0 is the First slot and 0x5 is the last slot?