- 92
- Posts
- 16
- Years
- Seen Jun 13, 2012
How I do a double wild Pokémon batle?? For one Pokémon I use this code:pbWildBattle(
::PBSpecies::ARON,5), but for 2 Pokémon?? I need much this!
::PBSpecies::ARON,5), but for 2 Pokémon?? I need much this!
Sorry for the messed explanation.branch (some command checking if Pikachu is in 1st slot)
Pikachu following with the player following thing, just without the additional battling trainer command
else
;
Since you mention the Safari Zone/Bug Catching Contest, take a look at how they're handled. When you're in either the Safari Zone or the Bug Catching Contest, it replaces the "Save" command with "Quit" (as in, leave the Safari Zone/Contest).ok, i have a question. besides the basic menu, i'd like to add two different variations for different maps/areas. kinda like the safari zone & bug catching contest. i looked at the script under PokemonMenu and i couldn't really make any sense of it. i wanna control the variation of the menu by switches, can anybody help?
[COLOR=Red]if pbInSafari?[/COLOR]
@scene.pbShowInfo(_INTL("[COLOR=DarkOrchid]STEPS: {1}/600\nBALLS: {2}[/COLOR]",pbSafariState.steps,pbSafariState.ballcount))
commands[cmdQuit=commands.length]=_INTL("[COLOR=DarkOrchid]QUIT[/COLOR]")
[COLOR=Red]elsif pbInBugContest?[/COLOR]
[COLOR=SeaGreen]if pbBugContestState.lastPokemon[/COLOR]
@scene.pbShowInfo(_INTL("[COLOR=DarkOrchid]CAUGHT: {1}\nLEVEL: {2}\nBALLS: {3}[/COLOR]",
PBSpecies.getName(pbBugContestState.lastPokemon.species),
pbBugContestState.lastPokemon.level,
pbBugContestState.ballcount))
[COLOR=SeaGreen]else[/COLOR]
@scene.pbShowInfo(_INTL("[COLOR=DarkOrchid]CAUGHT: None\nBALLS: {1}[/COLOR]",pbBugContestState.ballcount))
[COLOR=SeaGreen]end[/COLOR]
commands[cmdQuit=commands.length]=_INTL("[COLOR=DarkOrchid]QUIT[/COLOR]")
[COLOR=Red]else[/COLOR]
commands[cmdSave=commands.length]=_INTL("[COLOR=DarkOrchid]SAVE[/COLOR]") if !$game_system || !$game_system.save_disabled
[COLOR=Red]end[/COLOR]
I tried using the resolution script that came with this but it did not change my game's window, what are the scripts to the resolution? And is this compatible with
f0tz!baerchen's pixel movement script? I'm almost done with my Sword of Mana battle system. Just need the resolution to continue other scripts like messages, menus etc.
I've been trying to change Dive to Whirlpool but I keep getting a Syntax error at line 2495.
---------------------------
Pokemon Pure Gold
---------------------------
Script 'PokemonField' line 2495: SyntaxError occurred.
---------------------------
OK
---------------------------
And the script is attached below, its PokemonField btw.
I've got a problem with my tall grass, it looks like you walk on it... Not through it.
1. Everything about a pokémon is stored somewhere in the game as data. For your party pokémon, the information is in $trainer.party[x], where x is the position of it in your party (zero-based, meaning your lead pokémon is number 0, the second one that gets used in double battles is 1, and so forth).Ignore my previous posts, I got some new ones.
1. How can I print a Pokemon's name/nickname in message box or something? Preferably the 1st Pokemon's name (in party). And remember it can evolve and be nicknamed so I can't use a variable to memorize his 1st given name.
2. How can I forbid a Pokemon from being put in the PC if it's possible?
3. How can I edit a caught Pokemon's data? Like, the player raised his XXYY to 80 and evolved it, though I want it to become 36 again etc.
4. Is it possible to make 2 systems of PC or more? Like, in 1 city i'll access 50 Pokemons, in another i'll access another 50 or so. Or w/e...
I can handle without the possibilities to use the answers for all those questions, but it'll really help me if they'll be solved.
Oh wow, you have a #{$Trainer.party[0].name.to_s}!
My meaning was, how can I make a conditional branch, that does this:To display a Pokemon's name in the text box: (put this in the event command for showing text)
Quick run through the code:Code:Oh wow, you have a #{$Trainer.party[0].name.to_s}!
#{x} - this is Ruby's way of displaying a variable or a method's return in a string of text.
.to_s - this method converts a variable to a string. This is not always necessary, and the code may work with out it, but it is better to put it there incase.
My meaning was, how can I make a conditional branch, that does this:
if(1st pokemon=="CHARIZARD" (or #6))
*Writes something*
else
*Writes something else*
I knew how to do it a few days ago, but I forgot and for some reason some of my edited maps were deleted .-.
That was just my way to express the branch, cause I program in some other languages and it goes that way there...The trainer's Pokemon are stored in the $Trainer.party array. For example, you could use:
Conditional Branch: Script: $Trainer.party[0].species==PBSpecies::CHARIZARD
You don't need the 'if' in a Conditional Branch command ;)
Try putting an additional "end" between lines 2482 and 2483.Still waiting for someone to resolve my issue.
2478 facingEvent=$game_player.pbFacingEvent
2479 if facingEvent
2480 if facingEvent.name=="Whirlpool"
2481 Kernel.pbWhirlpool
2482 return
2483 end
2478 facingEvent=$game_player.pbFacingEvent
2479 if facingEvent
2480 if facingEvent.name=="Whirlpool"
2481 Kernel.pbWhirlpool
2482 return
2483 end
2484 end