New Functions - JimB16/pokecrystalchallenge GitHub Wiki
Here is a list of all new functions that I've included into the game, that could be helpful in other projects.
ScriptFunction: givepoke2
- in engine/scripting.asm/
- main.asm/GivePoke2
- main.asm/AddPkmnToParty2
 
Script_givepoke2: ; 0x97932
; script command 0x2d
; parameters:
;     pokemon (PokemonParam)
;     level (DecimalParam)
;     item (ItemLabelByte)
;     move0 (DecimalParam)
;     move1 (DecimalParam)
;     move2 (DecimalParam)
;     move3 (DecimalParam)
;     Hidden Power Type (DecimalParam)
for example:
givepoke2 ZAPDOS, 100, LEFTOVERS, THUNDERBOLT, HIDDEN_POWER, REST, SLEEP_TALK, ICE
this script fuction puts the Pkmn into the Players Team (or sends it to Bills PC)
the Pkmn will have the Item, the 4 Moves and Hidden Power will have the Attack-Type that's given as the last parameter