Thanks to Rot8er_ConeX
original post : http://www.pokecommunity.com/showthread.php?t=355203
---------------------------------------------------------------------------------------------------------------------------
This is all done in the script section PScreen_Storage:
Step 1
In the function "pbRelease", which starts around line 234, you should find the following code. Insert the red part:
This step can be ignored if you want the player to be able to release the species.
Step 2
In the function "pbStore", which starts around line 289, you should see the following code. Add the red part:
Step 3
In the function "pbSwap", which starts around line 367, you should find the following code. Add the red part:
Step 4
Very similar to the last step. In the function "pbPlace", which starts around line 397, you should find the following code. Add the red part:
original post : http://www.pokecommunity.com/showthread.php?t=355203
---------------------------------------------------------------------------------------------------------------------------
This is all done in the script section PScreen_Storage:
Step 1
In the function "pbRelease", which starts around line 234, you should find the following code. Insert the red part:
Code:
if pokemon.isEgg?
pbDisplay(_INTL("You can't release an Egg."))
return false
elsif pokemon.mail
pbDisplay(_INTL("Please remove the mail."))
return false[COLOR="Red"]
elsif isConst?(pokemon.species,PBSpecies,:SPECIES) # <- replace with the species name in all caps
pbDisplay(_INTL("This species can't be released."))
return false[/COLOR]
end
Step 2
In the function "pbStore", which starts around line 289, you should see the following code. Add the red part:
Code:
if pbAbleCount<=1 && pbAble?(@storage[box,index]) && !heldpoke
pbDisplay(_INTL("That's your last Pokémon!"))
elsif @storage[box,index].mail
pbDisplay(_INTL("Please remove the Mail."))[COLOR="red"]
elsif isConst?(@storage[box,index].species,PBSpecies,:SPECIES) # <- replace with the species name in all caps
pbDisplay(_INTL("This species cannot be placed in storage."))[/COLOR]
else
Step 3
In the function "pbSwap", which starts around line 367, you should find the following code. Add the red part:
Code:
if box==-1 && pbAble?(@storage[box,index]) && pbAbleCount<=1 && !pbAble?(@heldpkmn)
pbDisplay(_INTL("That's your last Pokémon!"))
return false
end
if box!=-1 && @heldpkmn.mail
pbDisplay("Please remove the mail.")
return false
end[COLOR="red"]
if box!=-1 && isConst?(@heldpkmn.species,PBSpecies,:SPECIES) # <- replace with the species name in all caps
pbDisplay(_INTL("This species cannot be placed in storage."))
return false
end[/COLOR]
Step 4
Very similar to the last step. In the function "pbPlace", which starts around line 397, you should find the following code. Add the red part:
Code:
if box!=-1 && index>[email protected](box)
pbDisplay("Can't place that there.")
return
end
if box!=-1 && @heldpkmn.mail
pbDisplay("Please remove the mail.")
return
end[COLOR="red"]
if box!=-1 && isConst?(@heldpkmn.species,PBSpecies,:SPECIES) # <- replace with the species name in all caps
pbDisplay(_INTL("This species cannot be placed in storage."))
return false
end[/COLOR]
Last edited: