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

[Archive] Pokemon Essentials: Starter Kit for RPG Maker XP

Status
Not open for further replies.
386
Posts
17
Years
  • Seen Aug 10, 2015
I had to find out the hard way that stopping an ME merely means setting the ME's volume to 0. Here -- Change the pbPlayTrainerIntroME function on PokemonUtilities (starting at line 254):

Code:
def pbPlayTrainerIntroME(trainertype)
 pbRgssOpen("Data/trainernames.dat","rb"){|f|
  trainernames=Marshal.load(f)
  if trainernames[trainertype]
   bgm=trainernames[trainertype][6]
   if bgm && bgm!=""
    bgm=pbStringToAudioFile(bgm)
    Audio.bgm_play("Audio/ME/#{bgm.name}",bgm.volume,bgm.pitch)
   end
  end
 }
end
 

Devil_Silver

Eevee Breeder
231
Posts
16
Years
I hate to moan, but I had some questions.
So sorry for moaning :D
Here are my questions again:
Spoiler:
 
Last edited:
386
Posts
17
Years
  • Seen Aug 10, 2015
Devil_Silver:

Example of an event page that appears only during a certain weather.

Trigger: Action Button
Condition: Switch s:$game_screen.weather_type==1 is ON
Code:
Text:  It is raining.


The "1" after "s:$game_screen.weather_type" refers to the "Rain" weather condition.
 
2,048
Posts
16
Years
  • Age 31
  • Seen Sep 7, 2023
Poccil, I've just noticed you forgot to add these lines to PokemonTrainers:
Code:
    elsif $game_screen.weather_type==5 # Edit
     battle.weather=PBWeather::SUNNYDAY
     battle.weatherduration=-1
at line 292.
 
2,048
Posts
16
Years
  • Age 31
  • Seen Sep 7, 2023
Oh, OK.
Anyway, I added two more scripts to my thread: they are a random name generator I made, and a change map view (normal/custom/perspective) script poccil sent me once.
 

Devil_Silver

Eevee Breeder
231
Posts
16
Years
Nice work, Wichu!

Can someone tell me how to update properly? I tried, but then my game changed to an exact copy of the demo! (Glad I made a copy)
 
2,048
Posts
16
Years
  • Age 31
  • Seen Sep 7, 2023
I think you just have to move any custom graphics and music over to Essentials. Then if you have no custom scripts/Pokémon etc, copy the System.rxdata, Mapinfos.rxdata and Map###.rxdata files from the original project to Essentials.
In PBS, copy any files you edited (especially metadata, encounters and trainers).
If you have custom Pokémon/items/moves etc, copy those files over, too.
Scripts are harder - you have to carefully copy and paste each of your edits.
Finally, run the game from within RPG Maker. If it doesn't do the "Compiling..." thing, run it again while holding CTRL.
It should be exactly
 

Devil_Silver

Eevee Breeder
231
Posts
16
Years
It works!

Thanks ALOT, Wichu! :)
Now I can insert your add-ons!

-Edit-

Is it possible to:

- Make weather effects change with the time of day?
Like in the morning, it's rain (20%)
And at night, it's rain (80%)

- Make events appear on certain days only?
Like a pokémon that only appears on Wednesday?
 
Last edited:

Shirayuki Mizore

Pokemon Raptor is STILL going?
195
Posts
16
Years
Another Error..Except this time when I try to run the .exe file...

Script 'SpriteWindow' line 1269: Errno::ENOENT occurred

No Such File or Directory-Data/dexdata.dat

Also, I got this error when I tried the Testplay:

Exception: RuntimeError
Message: Undefined Trainer constant name: FISHERMAN'
Compiler:710:in `pbGetConst'
Compiler:743:in `parseTrainer'
Compiler:1036:in `pbCompileTrainers'
Compiler:1035:in `loop'
Compiler:1091:in `pbCompileTrainers'
Compiler:2331
Section112:710:in `pbGetConst'
Section112:743:in `parseTrainer'
Section112:1036:in `pbCompileTrainers'
Section112:1035:in `loop'
Section112:1091:in `pbCompileTrainers'
Section112:2331
...

Can I have the Event Template for a battle?
 
386
Posts
17
Years
  • Seen Aug 10, 2015
Legend of Awesome:

You will receive a private message.

Devil_Silver:

That can also be achieved using a script-based switch.

Trigger: Action Button
Condition: Switch s:Time.now.wday==1 is ON
Code:
Text:  Today is Monday.
The number after "Time.now.wday" can be 0 for Sunday, 1 for Monday, and so on.

Also, making weather effects change with the time of day is not supported.
 
Last edited:

Shirayuki Mizore

Pokemon Raptor is STILL going?
195
Posts
16
Years
Ahh, I see now.

But what about the other error? Does that go with the Fisherman error?

ANOTHER Error..

Exception: RuntimeError
Message: In encounters.txt, expected a species entry line,
got "Pidgey,2" instead (probably too few entries in an encounter type).
Please check the format of the section numbered 0029,
which is just before this line.
Compiler:816:in `pbCompileEncounters'
Compiler:808:in `loop'
Compiler:822:in `pbCompileEncounters'
Compiler:779:in `loop'
Compiler:843:in `pbCompileEncounters'
Compiler:2343
Section112:816:in `pbCompileEncounters'
Section112:808:in `loop'
Section112:822:in `pbCompileEncounters'
Section112:779:in `loop'
Section112:843:in `pbCompileEncounters'
Section112:2343

I put it in just like somebody said..
 
386
Posts
17
Years
  • Seen Aug 10, 2015
Here, the section 0029 has too many entries in it. Simply remove the extra entry, which here is "Pidgey,2", until there are no more errors.
 

Shirayuki Mizore

Pokemon Raptor is STILL going?
195
Posts
16
Years
Hey, thanks. Except it just kept asking me to remove and remove and remove..so before I remove anymore, is anything wrong here:

Spoiler:
 
386
Posts
17
Years
  • Seen Aug 10, 2015
For one thing, "Ratatta" is misspelled: it should be "RATTATA". Also, there should be 12 entries
with no blank lines between them.

EDIT: After inspecting the data compiler, I realized that it was reporting the wrong error. The real problem was that "Ratatta" was misspelled, not the number of entries, which was probably correct originally.
 
Last edited:

Shirayuki Mizore

Pokemon Raptor is STILL going?
195
Posts
16
Years
*Smacks Forehead*
I am being WAAAY to careless..

Dang. ANOTHER ERROR. :P

Script 'PokemonUtilities' line 266:SyntaxError occured

O.o
 
Status
Not open for further replies.
Back
Top