• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Pokémon Starter Selection [ADVANCED VERSION]

465
Posts
7
Years
  • Age 24
  • Seen yesterday
Hello, sorry if this is necropost, I want to make it so when the pokeball is not selected it's represented with a picture, and selected with another one. Why? because I want to make it look like the player grabs the pokeball (not an animation, just different pictures for the two instances),
Is this possible with this script? or do I have to modify it? In that case, anyone knows what to do?

Not much of a coder but im pretty sure i can help sorta.

Code:
 def gettinginput
  if Input.trigger?(Input::RIGHT)  && @select <3
    @select+=1
  end
  if Input.trigger?(Input::LEFT) && @select >1
    @select-=1
  end

So on each left or right movement; the @select changes (for the arrow) so we can use this. what you were asking is kinda confusing; but in guessing, wherever the arrow/what ball is selected it'd have a different sprite from the standard ball?

so if we make it like this;

Code:
 def gettinginput
  if Input.trigger?(Input::RIGHT)  && @select <3
    @select+=1
    if @select == 1 
      @sprites["ball_1"].setBitmap("Graphics/Pictures/ball1Hand")
    elsif @select == 2
      @sprites["ball_2"].setBitmap("Graphics/Pictures/ball2Hand")
    elsif @select == 3
      @sprites["ball_3"].setBitmap("Graphics/Pictures/ball3Hand")
    end
  end
  if Input.trigger?(Input::LEFT) && @select >1
    @select-=1
    if @select == 1 
      @sprites["ball_1"].setBitmap("Graphics/Pictures/ball1Hand")
    elsif @select == 2
      @sprites["ball_2"].setBitmap("Graphics/Pictures/ball2Hand")
    elsif @select == 3
      @sprites["ball_3"].setBitmap("Graphics/Pictures/ball3Hand")
    end
  end

every left or right click will check for the sprite; changing it dependant on which one is picked; so the unselected ball with be "Ball___" (the blank being the number) and the selected ball will be "Ball___Hand" (again, the blank being the number).

This should work; if i read what you meant correctly.
 
1
Posts
5
Years
  • Age 22
  • Seen Jan 24, 2020
What do I do?


---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 17.2]

Exception: RuntimeError

Message: Script error within event 9 (coords 35,5), map 27 (Haven):

Exception: NameError

Message: Pokemon Starter Selection:61:in `initialize'uninitialized constant PokemonStarterSelection::AnimatedBitmapWrapper

***Full script:

PokemonStarterSelection.new(1,4,7)


Interpreter:243:in `pbExecuteScript'

(eval):1:in `new'

(eval):1:in `pbExecuteScript'

Interpreter:1606:in `eval'

Interpreter:243:in `pbExecuteScript'

Interpreter:1606:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'



Interpreter:276:in `pbExecuteScript'

Interpreter:1606:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

Scene_Map:163:in `follow_update'

Scene_Map:161:in `loop'

Scene_Map:170:in `follow_update'

FollowPokemon:1551:in `update'



This exception was logged in

C:\Users\Matthijs Ridderspoor\Saved Games\Pokemon Essentials\errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
 

DragonN3xus

Still looking for the One Piece
24
Posts
4
Years
The sprites don't show up for me, I am using 17.2 and Elite battle system. Line 16 is set to true as well

Go to the line
@sprites["pkmn_2"].bitmap=AnimatedBitmapWrapper.new(sprintf("Graphics/Battlers/%03d",@pkmn2)).bitmap if USING_ELITE_BATTLE

and switch to
@sprites["pkmn_2"].bitmap=AnimatedBitmapWrapper.new(sprintf("Graphics/Battlers/Front/%03d",@pkmn2)).bitmap if USING_ELITE_BATTLE


It worked for me I hope it works for you
 
8
Posts
3
Years
  • Age 23
  • Seen Dec 2, 2021
---------------------------
Pokemon Argentina
---------------------------
Excepción: RuntimeError

Mensaje: Script error within event 5, map 121 (Laboratorio Pokémon):

Exception: NameError

Message: Section178:61:in `initialize'uninitialized constant PokemonStarterSelection::AnimatedBitmapWrapper

***Full script:

PokemonStarterSelection.new(
795,798,801)


Interpreter:243:in `pbExecuteScript'

(eval):1:in `new'

(eval):1:in `pbExecuteScript'

Interpreter:1606:in `eval'

Interpreter:243:in `pbExecuteScript'

Interpreter:1606:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'



Interpreter:276:in `pbExecuteScript'

Interpreter:1606:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

Scene_Map:103:in `update'

Scene_Map:101:in `loop'

Scene_Map:114:in `update'

Scene_Map:68:in `main'


HELP ME
 
1
Posts
3
Years
  • Age 17
  • Seen Jun 24, 2020
I need help. The icons that show the typings are overlaping the pokemon sprites I want to know how I can edit the positions of the type icons. Thank you in advance.
 
3
Posts
3
Years
  • Age 20
  • Seen Jun 30, 2020
Having an error:
Spoiler:

Somebody please help I cant fix this.

Actually for anyone else having this issue elite battle is auto set to true and if you are not using it make sure it is false in the script this fixed it for me

When i go to choose my starters the arrow doesn't appear and if I use the arrow keys my character moves
 
Last edited by a moderator:
1
Posts
3
Years
  • Age 24
  • Seen Dec 7, 2020
What am i doing Wrong

---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 17.2]

Exception: RuntimeError

Message: Script error within event 8 (coords 41,30), map 33 (Nouvelle Town):

Exception: NameError

Message: Pokemon Starter Selection:61:in `initialize'uninitialized constant PokemonStarterSelection::AnimatedBitmapWrapper

***Full script:

PokemonStarterSelection.new(
1,4,7)


Interpreter:243:in `pbExecuteScript'

(eval):1:in `new'

(eval):1:in `pbExecuteScript'

Interpreter:1606:in `eval'

Interpreter:243:in `pbExecuteScript'

Interpreter:1606:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'



Interpreter:276:in `pbExecuteScript'

Interpreter:1606:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

Scene_Map:163:in `update'

Scene_Map:161:in `loop'

Scene_Map:170:in `update'

Scene_Map:234:in `main'



This exception was logged in

C:\Users\crbha\Saved Games\Pokemon Essentials\errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
 
What am i doing Wrong

---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 17.2]

Exception: RuntimeError

Message: Script error within event 8 (coords 41,30), map 33 (Nouvelle Town):

Exception: NameError

Message: Pokemon Starter Selection:61:in `initialize'uninitialized constant PokemonStarterSelection::AnimatedBitmapWrapper

***Full script:

PokemonStarterSelection.new(
1,4,7)


Interpreter:243:in `pbExecuteScript'

(eval):1:in `new'

(eval):1:in `pbExecuteScript'

Interpreter:1606:in `eval'

Interpreter:243:in `pbExecuteScript'

Interpreter:1606:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'



Interpreter:276:in `pbExecuteScript'

Interpreter:1606:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

Scene_Map:163:in `update'

Scene_Map:161:in `loop'

Scene_Map:170:in `update'

Scene_Map:234:in `main'



This exception was logged in

C:\Users\crbha\Saved Games\Pokemon Essentials\errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------

For what I see, I can figure out that you don't have Luka's Animated Bitmap Wrapper and you have set the EBS to true.
 
To make this script compatible to v18, follow the below edits:-

1. Remove `USING_ELITE_BATTLE = true` because it will be of no use in v18 and with these edits, it will work eventually after EBDX.

2. Search for `Kernel.` to find just one instance. Remove it. The line will look - `if pbConfirmMessage("Do you want #{@pokemon.name}?")`

3. Change the following code:-
Code:
 @sprites["pkmn_1"]=IconSprite.new(0,0,@viewport)
  @sprites["pkmn_1"].setBitmap(sprintf("Graphics/Battlers/%03d",@pkmn1))
  @sprites["pkmn_1"].bitmap=AnimatedBitmapWrapper.new(sprintf("Graphics/Battlers/Front/%03d",@pkmn1)).bitmap if USING_ELITE_BATTLE
Into
Code:
 @sprites["pkmn_1"]=PokemonSprite.new(@viewport)
  @sprites["pkmn_1"].setSpeciesBitmap(@pkmn1)
Also change:-
Code:
@sprites["pkmn_2"]=IconSprite.new(0,0,@viewport)
  @sprites["pkmn_2"].setBitmap(sprintf("Graphics/Battlers/%03d",@pkmn2))
  @sprites["pkmn_2"].bitmap=AnimatedBitmapWrapper.new(sprintf("Graphics/Battlers/Front/%03d",@pkmn2)).bitmap if USING_ELITE_BATTLE
Into
Code:
@sprites["pkmn_2"]=PokemonSprite.new(@viewport)
  @sprites["pkmn_2"].setSpeciesBitmap(@pkmn2)
And at last:-
Code:
@sprites["pkmn_3"]=IconSprite.new(0,0,@viewport)
  @sprites["pkmn_3"].setBitmap(sprintf("Graphics/Battlers/%03d",@pkmn3))
  @sprites["pkmn_3"].bitmap=AnimatedBitmapWrapper.new(sprintf("Graphics/Battlers/Front/%03d",@pkmn3)).bitmap if USING_ELITE_BATTLE
Into
Code:
@sprites["pkmn_3"]=PokemonSprite.new(@viewport)
  @sprites["pkmn_3"].setSpeciesBitmap(@pkmn3)

And you are good to go.

The edited version:-
Spoiler:
 
1
Posts
3
Years
  • Age 19
  • Seen Aug 22, 2021
I think i did something wrong. The type sprite overlap the pokemon sprite. Other than that it works fine.
 
Back
Top