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

Script: Pokemon Outbreaks

1,681
Posts
8
Years
  • Age 24
  • Seen yesterday
I tried it and I got this error:

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

Exception: RuntimeError

Message: Script error within event 4 (coords 12,13), map 155 (ROUTE 1):

Exception: SyntaxError

Message: (eval):1:in `pbExecuteScript'compile error
(eval):1: syntax error
@pbOutbreakInformation(0,1)
^

***Full script:

@pbOutbreakInformation(0,1)




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'

Following_Pokemon:1935:in `update'



This exception was logged in

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

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

You don't need that @ when calling it in a script
 

Boonzeet

Pokémon Secrets of the Ages Developer
188
Posts
15
Years
This looks and works great, and adds that extra bit of authenticity to the original games. Thanks for this!
 
80
Posts
5
Years
  • Age 24
  • Seen Nov 5, 2023
Can somebody help me making a NPC who can tell you were the Outbreak is. I do not know how to use pbOutbreakInformation(speciesvar,mapvar) and how I can turn a map number into the actual Map name
 

Boonzeet

Pokémon Secrets of the Ages Developer
188
Posts
15
Years
Can somebody help me making a NPC who can tell you were the Outbreak is. I do not know how to use pbOutbreakInformation(speciesvar,mapvar) and how I can turn a map number into the actual Map name

Pass in the map number into this function:
pbGetMessage(MessageTypes::MapNames,map_id)
 
1,681
Posts
8
Years
  • Age 24
  • Seen yesterday
Hello
This script is really good.
I wanted to know if it was possible to make a script for meteorological encounters.
A can as in Pokémon Sword and Shield.

I've never played a game past BW, so I don't really know how SwSh works on that front, but chances are you'll need to register a new EncounterModifier to return your special encounters depending on the weather, I guess?
It's just a matter of making a proc that returns a [species,level] array, for the most part, the rest is the conditions to get it to run.

I don't have much more than that for you, as I can't really code something I don't understand.
 
Back
Top