Dylanrockin
That guy
- 275
- Posts
- 13
- Years
- Seen Jun 9, 2016
How exactly would I go about having a Pokemon in my party irremovable, like you can't move it to the PC or release it or anything related to that.
Depends on why you would want to stop that happening...
Is it your starter you want to stop from releasing or placing in PC?
if pokemon.egg?
pbDisplay(_INTL("You can't release an Egg."))
return false
elsif pokemon.obtainMap==STARTER_MAP_ID
pbDisplay(_INTL("You can't release your starter Pokémon!"))
return false
# allows --->pokemon<--- to call a Pokémons detail, obtainMap, Hp etc.
pokemon=(heldpoke)?heldpoke:@storage[box,index]
elsif pokemon.obtainMap==STARTER_MAP_ID
pbDisplay(_INTL("Can't deposit your starter!"))
if box==-1 && pbAble?(@storage[box,index]) && pbAbleCount<=1
pbDisplay(_INTL("That's your last Pokémon!"))
return
end
if box!=-1 && pokemon.obtainMap==STARTER_MAP_ID
pbDisplay(_INTL("That's your starter Pokémon!"))
return
end
pokemon=(@heldpkmn)?@heldpkmn:@storage[box,index]
if box==-1 && pbAble?(@storage[box,index]) && pbAbleCount<=1 && !pbAble?(@heldpkmn)
pbDisplay(_INTL("That's your last Pokémon!"))
return false
end
if pokemon.obtainMap==STARTER_MAP_ID
pbDisplay(_INTL("That's your starter Pokémon!"))
return false
end
pokemon=(@heldpkmn)?@heldpkmn:@storage[box,index]
if box!=-1 && index>[email protected](box)
pbDisplay("Can't place that there.")
return
end
if box!=-1 && pokemon.obtainMap==STARTER_MAP_ID
pbDisplay(_INTL("Can't place your starter Pokémon there!"))
return
end
It worked fine for me, any other edits you have added?