Advertiser Content
Seen July 16th, 2019
Posted July 16th, 2019
20 posts
147 Days
Yes indeed there is a way to do that. I don't know how good your scripting understanding is but here is what I know about variables.

Variables are different from normal Flags
They can have different Values, and it's Value can be changed by scripts

If you pick a Starter the value of the variable will be one two or three.

Depending on which Starter you picked one of the Legendary Johto Dogs will appear using the Variables Value as condition for it.

In your case you can use Variables just like this but be sure you use an unused Variable for safety reasons.

DrFuji

Heiki Hecchara‌‌

Age 26
Male
Aussie
Online now
Posted 1 Day Ago
1,607 posts
10 Years
If you're using FR, you can do this pretty easily with special 0xFF. It takes the value of variable 0x8004, selects the party position indicated by it and then returns the species number of that Pokemon. Here's an example of it in action:

...
setvar 0x8004 0x0 // 0x0 makes special 0xFF check the first party slot
special2 0x8000 0xFF // Stores the species number in variable 0x8000
compare 0x8000 0x19 // Checks if Pikachu was the returned result
if 0x1 goto @PikachuIsFirst // Branches the script if true
...
Hopefully that's what you're after.

Hillsy13

Male
Seen 1 Day Ago
Posted 5 Days Ago
91 posts
3.1 Years
If you're using FR, you can do this pretty easily with special 0xFF. It takes the value of variable 0x8004, selects the party position indicated by it and then returns the species number of that Pokemon. Here's an example of it in action:

...
setvar 0x8004 0x0 // 0x0 makes special 0xFF check the first party slot
special2 0x8000 0xFF // Stores the species number in variable 0x8000
compare 0x8000 0x19 // Checks if Pikachu was the returned result
if 0x1 goto @PikachuIsFirst // Branches the script if true
...
Hopefully that's what you're after.
Is there an Emerald equivalent of that method friend?
Pokémon Emerald Genesis [Beta 1.1]

DrFuji

Heiki Hecchara‌‌

Age 26
Male
Aussie
Online now
Posted 1 Day Ago
1,607 posts
10 Years
Is there an Emerald equivalent of that method friend?
Aye, special2 0x149 is the equivalent in Emerald and works exactly the same way. Its used by the Name Rater to check if you have an egg, but it can be used to check for other Pokemon as well.

Hillsy13

Male
Seen 1 Day Ago
Posted 5 Days Ago
91 posts
3.1 Years
Aye, special2 0x149 is the equivalent in Emerald and works exactly the same way. Its used by the Name Rater to check if you have an egg, but it can be used to check for other Pokemon as well.
Legend. Had no clue you were a fellow Aussie! Also, the screenshots for Lilac look amazing so far. I hope it all goes well for you with that project.
Pokémon Emerald Genesis [Beta 1.1]
Advertiser Content