Hi, I need some help, xD
Does anybody know how to make certain pokemon "un-release-able",
And I'm not talking about species, I mean one pokemon i particular, one pidgey, not all pidgey for example.
Also, is there a way to make a Pokémon uncatchable, sort of like the Ghost Marowak in Lavender Tower?
Even though it's a wild battle.
Thanks in advance~
/44tim44
To make a pokémon unreleasable, I imagine you can create a new stat for an individual pokémon (like HP, IVs and so forther are stats) called "norelease". Set this to 1 for any pokémon you don't want to be able to release.
Then, find the scripts that correspond to wherever you can release a pokémon (just the PC, by default), and add in a little check to say that "if $pokemon.norelease==1", or however the syntax goes, then put a "show message saying you can't release this pokémon" bit of script there. The rest of the existing script then comes after an "else".
So "if norelease" then say you can't do it; otherwise, carry on as standard.
I'm not sure whether you'd have to change anything else to make it save the value of "norelease"; ask someone more knowledgable than I. If you don't need to, that's great news (for this and for other things, such as recording the capture level/location of each pokémon, ahem).
As for uncatchable, you could probably adapt the "trying to capture another trainer's pokémon" part of the script. Basically, copy and paste that short section, but have the trigger for it be a switch, such that when it's on, that little section ("It can't be caught!") will run instead of a capture. Turn the switch on just before the battle (presuming it's an evented battle, not a wild one), and turn it off afterwards.
Having re-read your question, this is a little tougher. I'll assume you want to make certain species on certain maps uncatchable (or all wild pokémon on a map uncatchable, which turns out to be a little easier). Replace the switch above with a check to see which map you're in, and what species the wild opponent is (if Mr. Mime or Magmar or Mantine or Pachirisu, etc.). If it's one of the black-listed ones, perform "It can't be caught"; otherwise, catch as normal.
If you were going to have literal ghosts, I'd suggest making a separate pokémon for them and not including it in the Pokédex; then you can just replace the switch with a check to see what the opponent's species is ("if PBSPECIES::LITERALGHOST" then "It can't be caught!", else carry on as normal).
Doing the latter method would mean that you'd need two copies of each Cemetery map, one with Literal Ghost encounters and one with Gastly encounters. Switch between the two depending on whether you have a Silph Scope.
You don't make it clear under what circumstances you want the uncatchable state to be in, so I can't be more specific here.
Hi, I've a little question.
How can I use the runnig shoes in buildings?
When I set in the Editor Bicycle = true, I can, but then I can also use the bicycle.
And that isn't what I want. I want that the player can only use the runnig shoes in buildings.
I searched for an answer in this threat, but I didn't found anything. Could someone help me with this?
Walk_Run, lines 22-28 dictate where you can and cannot run around. By default, you can only run if you're outside or you're in a cave where you can encounter pokémon.
Code:
def pbCanRun?
return Input.press?(Input::A) && $PokemonGlobal.runningShoes &&
pbGetMetadata($game_map.map_id,MetadataIndoor)
end
This should allow you to run only if you're inside. I think.
Hi! I'm trying to use the pbIsEligible?(pokemon)...but I don't know how to :S...
Thanks =)
What should that script do? I'm having trouble finding it.
If it's deciding whether a pokémon can learn a move, you want "pbSpeciesCompatible?". It comes with two variables:"(species,move)". Both of those should be obvious.
pbSpeciesCompatible?(MAGIKARP,HYPERBEAM) should equal "no" (or 0 or false or whatever).
If you wanted to display "eligible" or "not" for when using evolution stones or Rare Candy, that doesn't happen by default, and it'd take a bit of fiddling to make it happen. (Basically, you'd need to copy "pbSpeciesCompatible" and change a few relevant things.)