• 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.

New minigame (Racecourse)

295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
This script will create a new minigame, you can get coin with this minigame.

How to use:
Call script: pbRaceGame

Graphics:
Graphics for this minigame: Download
Put the images in folder: Graphics\Pictures\Racecourse

Code:
Spoiler:

Credit:
Racecourse (minigame) by bo4p5687

Note:
You need to find sprites like the Pokemon Follower script and add these in this folder: Graphics\Characters. Here, I call 4 pictures (078.png: Rapidash; 111.png: Rhyhorn; 128.png: Tauros and 626.png: Bouffalant). You can change the pokemons in the lines before "class RaceGame".
 
Last edited:
220
Posts
9
Years
race10.png


And, I think that the adversaries must use another pokemon sprite to distinguish ours and theirs more easy. Like for ex: I choose rapidash and the adversaries the other 3 left.

It's my opinion of course.
 
295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
And, I think that the adversaries must use another pokemon sprite to distinguish ours and theirs more easy. Like for ex: I choose rapidash and the adversaries the other 3 left.

It's my opinion of course.

No! I think it isn't necessary because I think you want see one species, who races, than a diferent species but if you want to do that, you can change that for your game.
And this image
race10.png

I think you have a wrong position because you use a different size from my image, I use image 256x256. So, you can change the position in this def:
Code:
def order_poke
and here, I zoom in the photo x1.5, it means I use image 256x256, it zooms in 384x384, and you can calculate for the position of the pokemon sprite.
 
Last edited:
5
Posts
4
Years
  • Age 29
  • Seen Sep 27, 2019
como creo el evento para acceder al minijuego in game, disculpa mi ignoracia :/
 

WolfPP

Spriter/ Pixel Artist
1,309
Posts
5
Years
como creo el evento para acceder al minijuego in game, disculpa mi ignoracia :/

Only english, please.

Also, did you read the main post???

Code:
How to use:
Call script: pbRaceGame

Make a event and then, put script for it.
 
5
Posts
4
Years
  • Age 29
  • Seen Sep 27, 2019
Only english, please.

Also, did you read the main post???

Code:
How to use:
Call script: pbRaceGame

Make a event and then, put script for it.

sorry, I thought I had written in English

I already created the event with the corresponding script and I only get a message that says "It`s racecourse Game"
 
Last edited:
153
Posts
4
Years
  • Age 36
  • Seen Feb 4, 2020
By looking for this line in the code I found that it says that if you don't have a coin case. Use these lines before you use the pbRaceGame

Code:
Kernel.pbReceiveItem(:COINCASE)
Code:
$PokemonGlobal.coins+=1000

Now concerning the script: thank you man really nice job. As a possible improvement I would say, the race is a bit long especially to pass the final line. the moving grass on the top of the screen should go from left to right to give the impression of speed not right to left. But it's really a nice add to our games thx!
 
Last edited:

etique

etique
268
Posts
6
Years
  • Age 36
  • Seen Oct 30, 2022
have in this script to put pokemon with the mounted npc. How do I attach these sprites?
1JEsPeI.png
boy_stoutland_search.png
girl_mudsdale.png
girl_tauros.png
 

etique

etique
268
Posts
6
Years
  • Age 36
  • Seen Oct 30, 2022
i'm brazilian and maybe my translator isn't helping, i don't know if what i want would destroy the scritp, but i wanted to remove the part of choosing the pokemon. The idea is to do like the anime, a pokemon race, if the player has any pokemon to race, and the other runners would be different npc. Did you understand, my idea? is this possible?
 
295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
Spoiler:

Of course! You can do it, the race and I can see your error. This is the "wrong image" you should use my image or redraw image with dimensions 1012x384.
 
54
Posts
4
Years
Two questions:
How can i change the the Coin counter font, size and color?
And how can i reposition certain elements like the bet counter numbers? (The 5 to 24 graphics)
 
295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
Two questions:
How can i change the the Coin counter font, size and color?
And how can i reposition certain elements like the bet counter numbers? (The 5 to 24 graphics)

About font, size, color, change it in folder. It's graphics you can draw.
Find
Code:
COIN_RACEGAME = 
{
# Image's name => Coin (number)
"Coin1" => 1,
"Coin2" => 12,
"Coin3" => 5,
"Coin4" => 17,
"Coin5" => 7,
"Coin6" => 24
}
It's value of coin. You can change it.
 
54
Posts
4
Years
About font, size, color, change it in folder. It's graphics you can draw.
Find
Code:
COIN_RACEGAME = 
{
# Image's name => Coin (number)
"Coin1" => 1,
"Coin2" => 12,
"Coin3" => 5,
"Coin4" => 17,
"Coin5" => 7,
"Coin6" => 24
}
It's value of coin. You can change it.

Well, this answers the second question, but i actually meant the counter that shows you how many coins you have.
 
54
Posts
4
Years
And also, upon testing the Script, the race plays completely fine, but when it ends, the game shows this Error:

---------------------------
Pokemon Immortal X/Oblivion Y
---------------------------
[Pokémon Essentials version 17.2]

Exception: RuntimeError

Message: Script error within event 2 (coords 32,3), map 101 (Santalune Racecourse):

Exception: NoMethodError

Message: PMinigame_Racecourse:550:in `in_loop_progress'undefined method `pbMessage' for #<RaceGame:0x947c4e8>

***Full script:

pbRaceGame


Interpreter:243:in `pbExecuteScript'

PMinigame_Racecourse:297:in `pbStart'

PMinigame_Racecourse:294:in `loop'

PMinigame_Racecourse:298:in `pbStart'

PMinigame_Racecourse:782:in `pbRaceGame'

(eval):1:in `pbExecuteScript'

Interpreter:1606:in `eval'

Interpreter:243:in `pbExecuteScript'

Interpreter:1606:in `command_355'

Interpreter:494:in `execute_command'



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:179:in `old_update_ab'

Scene_Map:177:in `loop'

Scene_Map:186:in `old_update_ab'

Acro/Mach Bike:229:in `update'
 
295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
Well, this answers the second question, but i actually meant the counter that shows you how many coins you have.

Find
Code:
def coin_box
for editing coin in coin box.

Find all pbMessage add Kernel. before this word like Kernel.pbMessage
 
Back
Top