Jump to content

Help with a Breeding Program


LEGOanimal22

Recommended Posts

Hello all.

I was wondering if anyone can help me with making some scripts for a breeding program

Here is the structure:

0 - (UInt16) Start Script(FF FF)

2 - (Byte) Num of Scripts(Max Length = FF(after the "Start" command))

3 - (Byte) Type (list below)

4 and onward - (UInt16) Scripts

Here are the types:

01 - Male

02 - Female

03 - Egg

04 - Other

05 - Logs

Here are the various script functions:

Scripts (male):

10 XX - Store Male Pokedex ID into XX

20 XX - Store Move 1 into XX

21 XX - Store Move 2 into XX

22 XX - Store Move 3 Into XX

23 XX - Store Move 4 into XX

30 XX - Store Language into XX

40 XX - Store Item into XX

50 XX - Store Nature into XX

Scripts (female):

10 XX - Store Female Pokedex ID into XX

20 XX - Store Language into XX

30 XX - Store Item into XX

40 XX - Store Nature into XX

Scripts (egg):

10 XX - Load Pokedex ID from XX

20 XX - Load Shiny status from XX

Scripts (other):

01 02 - Check if Mother and Father are compatible

10 84 - Check Father for Ditto(132). If True, Return 1. Else, Return 0.

11 84 - Check Mother for Ditto(132). If True Return 1. Else, Return 0.

12 10 - If script 10 returned 1, read next script. Else, Nothing.

12 11 - If script 11 returned 1, read next script. Else, Nothing.

13 10 - (cont. Of 12 10) Egg.PokedexID = Mother.PokedexID

13 11 - (cont. Of 12 11) Egg.PokedexID = Father.PokedexID

14 10 - Check if Father has an Everstone. If True, Return 1. Else, Return 0.

14 11 - Check if Mother has an Everstone. If True, Return 1. Else, Return 0.

Scripts (log):

10 10 - Add Male.PokedexID to the log

10 11 - Add Female.PokedexID to the log

I was wondering if any one can help me with the following:

*Building the Other script.

*Making more functions for the Egg script.

NOTE: The Other script should be by parent(aka Check male, Check female)

If you want to help, please use a hex editor and enter the script functions how they are listed.

Edited by LEGOanimal22
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...