• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Resource icon

Resource Pokedex Tasks 1.1.0

Have you each started a new save file after installing this plugin? Or maybe your custom Pokemon isn't defined in the tasks pbs for this plugin? At least Zephyrias's crash looks to occur because
$player.pokedex.tasks[<pokemonID>] isn't defined
I actually started a new save then created an event to place this custom mon. Which is odd because without Tasks, the event ran fine.
Doing further testing with other pokemon added via debug doesn't get this crash.

I'm also using Modular Pokedex UI, I added the tasks. I guess the other expansions to that plugin as well. >_> they all seem to be playing not nicely...


Code:
Expand Collapse Copy
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `thresholds' for nil:NilClass

Backtrace:
[Pokedex Tasks] [001] Pokedex Tasks.rb:98:in `block in num_tasks_completed'
[Pokedex Tasks] [001] Pokedex Tasks.rb:95:in `each'
[Pokedex Tasks] [001] Pokedex Tasks.rb:95:in `num_tasks_completed'
[Pokedex Tasks] [001] Pokedex Tasks.rb:23:in `drawPageTasks'
[Modular UI Scenes] [001] Pokedex Handlers.rb:48:in `block in <main>'
[Modular UI Scenes] UI Module.rb:51:in `call'
[Modular UI Scenes] [002] Pokedex Rewrites.rb:75:in `drawPage'
[[MUI] Pokedex Data Page] [001] Page Setup.rb:127:in `drawPage'
[Pokedex Tasks] [001] Pokedex Tasks.rb:191:in `block in pbScene'
[Pokedex Tasks] [001] Pokedex Tasks.rb:113:in `loop'

I did an event to add regular mon via PB add pkmn

Code:
Expand Collapse Copy
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 9 (coords 18,17), map 32 (Professor's Lab)
Exception: NoMethodError
Message: undefined method `last' for nil:NilClass

***Full script:
pbAddPokemon(:SABLEYE, 20)

Backtrace:
[Pokedex Tasks] [003] Pokedex.rb:40:in `increment_task_progress'
[Pokedex Tasks] [004] Utilities.rb:24:in `pbAddPokemon'
(eval):1:in `execute_script'
Interpreter:138:in `eval'
Interpreter:138:in `execute_script'
Interpreter_Commands:1177:in `command_355'
Interpreter_Commands:116:in `execute_command'
Interpreter:130:in `block in update'
Interpreter:86:in `loop'
Interpreter:86:in `update'


Using modular UI to toggle the tabs on a pokedex screen...

Code:
Expand Collapse Copy
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass

Backtrace:
[Pokedex Tasks] [001] Pokedex Tasks.rb:216:in `block in pbCursorGoToNext'
[Pokedex Tasks] [001] Pokedex Tasks.rb:215:in `loop'
[Pokedex Tasks] [001] Pokedex Tasks.rb:215:in `pbCursorGoToNext'
[Pokedex Tasks] [001] Pokedex Tasks.rb:158:in `block in pbScene'
[Pokedex Tasks] [001] Pokedex Tasks.rb:113:in `loop'
[Pokedex Tasks] [001] Pokedex Tasks.rb:113:in `pbScene'
UI_Pokedex_Entry:584:in `pbStartScreen'
UI_Pokedex_Main:879:in `pbDexEntry'
UI_Pokedex_Main:1281:in `block (2 levels) in pbPokedex'
UI_Pokedex_Main:1257:in `loop'
 
Last edited:
Hello teacher, why is it that after adding the full set of plugins such as Deluxe Battle Kit in version 21.1, it is not possible to read bg_tasks?
 
I get this error when a pokémon uses a move in battle

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `each' for nil:NilClass

Backtrace:
[Pokedex Tasks] [006] Move Usage.rb:6:in `record_move_use'
[Pokedex Tasks] [005] Battler.rb:14:in `pbUseMove'
[[DBK] Dynamax] [012] Battle_Battler.rb:92:in `pbUseMove'
[[DBK] Z-Power] [003] Battle_Misc.rb:183:in `pbUseMove'
[Advancements] Achievement_Triggers.rb:132:in `pbUseMove'
[Deluxe Battle Kit] [001] Animation Utilities.rb:265:in `block in pbProcessTurn'
PBDebug:6:in `logonerr'
[Deluxe Battle Kit] [001] Animation Utilities.rb:265:in `pbProcessTurn'
Battle_AttackPhase:128:in `block (2 levels) in pbAttackPhaseMoves'
Battle_AttackPhase:124:in `each'
 
Commenting to continue following this thread. OP, are you still working on this? Is there anything I can do to help with the UI?
 
Hi! Is there a way to make updating the PBS tasks.txt reflect the changes without starting a new game?
 
Hi! Is there a way to make updating the PBS tasks.txt reflect the changes without starting a new game?
Seeing as the dev hasn't been on since February, I'll answer. I believe so yes, but you'll need to add custom code. I completely overhauled the plugin to use Settings instead of PBS for my game. So my way to recompile will be different. I can see what I can come up with for you though
 
Seeing as the dev hasn't been on since February, I'll answer. I believe so yes, but you'll need to add custom code. I completely overhauled the plugin to use Settings instead of PBS for my game. So my way to recompile will be different. I can see what I can come up with for you though
That's a good start! Thank you!
 
That's a good start! Thank you!
No guarantees as I didn't test this due to not having a great setup to do so, but try this out. Add this somewhere in the plugin (maybe at the end of the [003] Pokedex file). Then, when you can to update your existing tasks, just run pbUpdateExistingPokedexTasks

Ruby:
Expand Collapse Copy
def pbUpdateExistingPokedexTasks
    $player.pokedex.tasks.each do |key, value|
        i = 0
        pbLoadTasks[key].each do |task|
            if value[i][:task] != task.keys.first || value[i][:move_item] != task[task.keys.first]
                  hash = {
                    :task      => task.keys.first,
                    :move_item => task[task.keys.first],
                    :progress  => 0
                  }
                  $player.pokedex.tasks[key][i] = hash
            end
            i += 1
        end
    end
end
 
I started a new save file and it solved the crashes related to obtaining Pokemon (the ones I found, anyway) but the Tasks tab still doesn't show in the Pokedex.
edit: Ah. I didn't realize you had to add the Tasks tab manually by editing the plugin scripts... my mistake I think? That should probably be added to the Resource page with Installation Instructions though.

I'd love to see an update that supports the Pokedex Data Page add-on for Modular UI Scenes anyway, so hopefully that's coming soon! Not being able to press the down arrow in the "Data" tab of that plugin kind of sucks.

Also, is there no way to scroll through a Pokemon's task list yet?

edit: One final thing. Is it possible to add support for different tasks for each form of a Pokemon? Like having a separate task list for Rotom-Wash, Rotom-Heat, etc.
@kingdomharms What code did you add to add the Tasks tab manually?
 
Hey, I think I'm kinda late on this resource but if anyone else here would know on what I should do to fix this error I'm getting I'll be greatly appreciative. I haven't modified anything I just went to test to see if anything would happen in a wild test battle with default Bulbasaur used Vine Whip and got this popped up.

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `each' for nil:NilClass

Backtrace:
[Pokedex Tasks] [006] Move Usage.rb:6:in `record_move_use'
[Pokedex Tasks] [005] Battler.rb:14:in `pbUseMove'
[Deluxe Battle Kit] [001] Animation Utilities.rb:278:in `block in pbProcessTurn'
PBDebug:6:in `logonerr'
[Deluxe Battle Kit] [001] Animation Utilities.rb:278:in `pbProcessTurn'
Battle_AttackPhase:128:in `block (2 levels) in pbAttackPhaseMoves'
Battle_AttackPhase:124:in `each'
Battle_AttackPhase:124:in `block in pbAttackPhaseMoves'
Battle_AttackPhase:110:in `loop'
Battle_AttackPhase:110:in `pbAttackPhaseMoves'
 
hey so this is a long shot, especially since the dev isn't around anymore, but if anyone has a copy of the older version of this plugin would you be willing to share it with me via dms or something?

apparently the first version of this plugin worked great, but from what i understand the new version doesn't--it seems like there's a bunch of install instructions missing from the readme, and it also seems like a lot of methods are undefined now which causes crashes. it's beyond my ability to fix--i've attempted, but i'm just not familiar enough with ruby.

figured it was worth throwing it out there, bc it would've been perfect for my project if i could get it to run.
 
hey so this is a long shot, especially since the dev isn't around anymore, but if anyone has a copy of the older version of this plugin would you be willing to share it with me via dms or something?

apparently the first version of this plugin worked great, but from what i understand the new version doesn't--it seems like there's a bunch of install instructions missing from the readme, and it also seems like a lot of methods are undefined now which causes crashes. it's beyond my ability to fix--i've attempted, but i'm just not familiar enough with ruby.

figured it was worth throwing it out there, bc it would've been perfect for my project if i could get it to run.
Unfortunately it doesn’t seem like anyone has a working version of this script.
 
Pokedex Tasks v2.0
DOWNLOAD

Changes:
Implemented a Rewards System:
For completing 10 tasks in a species' task list, you will obtain an item as a reward.
By default, the reward is a Rare Candy, but the rewards table is fully customizable on a per-species basis in taskrewards.txt.
For completing every single possible task, you can get a Shiny Charm.


Implemented a "Pokedex Progression" system:
With flavor text courtesy of wrigty12.
Pokedex entries will progressively unlock as you complete more tasks, just like in Legends: Arceus.


A boatload of bugfixes done by myself and wrigty12:
Fixed an issue where using a move in battle would throw a "noMethodError", sometimes causing game crashes.
Fixed a compatibility issue with the Pokedex Data Page plugin, where attempting to navigate that page would cause a crash.
Fixed an issue where the game would crash if catching/otherwise obtaining Pokemon during evening/nighttime.
Other smaller issues that we found as we were fixing the bigger ones.


Still to be added:
Support for separate task lists for each form of a Pokemon.
Support for Regional Dexes, since I'm pretty sure this plugin can only support one dex at a time.
Tracking "number of species caught" when hatching eggs or receiving from a trade.
Different types of rewards??

I might get around to those myself, we'll see.

---

Since this info isn't available on here and only hidden in the plugin's files, here's the code you have to add for support with Modular UI Scenes:
# Add tasks page to Pokedex via Lucidious69's Modular UI Scenes
# Uncomment and add to:
# Plugins\[MUI_000] Modular UI Scenes\[002] Pokedex UI\[001] Pokedex Handlers.rb
# UIHandlers.add(:pokedex, :page_tasks, {
# "name" => "TASKS",
# "suffix" => "tasks",
# "order" => 40,
# "layout" => proc { |species, scene| scene.drawPageTasks }
# })

IF YOU ARE USING "POKEDEX DATA PAGE" PLUGIN, YOU MUST CHANGE THE "40" TO "50"!!
Great to see this plugin get an update - any chance the newest version works with 20.1?
 
Great to see this plugin get an update - any chance the newest version works with 20.1?
i don't think so, the update was made with v21.1 in mind, you may try changing some llines, but is not guaranted that it will work or not break with something or another plugin that affects/rewrites the pokedex
 
I tried to download the 2.0 and it says the file is in the owner's trash. :0
 
Pokedex Tasks v2.0
DOWNLOAD

Changes:
Implemented a Rewards System:
For completing 10 tasks in a species' task list, you will obtain an item as a reward.
By default, the reward is a Rare Candy, but the rewards table is fully customizable on a per-species basis in taskrewards.txt.
For completing every single possible task, you can get a Shiny Charm.


Implemented a "Pokedex Progression" system:
With flavor text courtesy of wrigty12.
Pokedex entries will progressively unlock as you complete more tasks, just like in Legends: Arceus.


A boatload of bugfixes done by myself and wrigty12:
Fixed an issue where using a move in battle would throw a "noMethodError", sometimes causing game crashes.
Fixed a compatibility issue with the Pokedex Data Page plugin, where attempting to navigate that page would cause a crash.
Fixed an issue where the game would crash if catching/otherwise obtaining Pokemon during evening/nighttime.
Other smaller issues that we found as we were fixing the bigger ones.


Still to be added:
Support for separate task lists for each form of a Pokemon.
Support for Regional Dexes, since I'm pretty sure this plugin can only support one dex at a time.
Tracking "number of species caught" when hatching eggs or receiving from a trade.
Different types of rewards??

I might get around to those myself, we'll see.

---

Since this info isn't available on here and only hidden in the plugin's files, here's the code you have to add for support with Modular UI Scenes:
# Add tasks page to Pokedex via Lucidious69's Modular UI Scenes
# Uncomment and add to:
# Plugins\[MUI_000] Modular UI Scenes\[002] Pokedex UI\[001] Pokedex Handlers.rb
# UIHandlers.add(:pokedex, :page_tasks, {
# "name" => "TASKS",
# "suffix" => "tasks",
# "order" => 40,
# "layout" => proc { |species, scene| scene.drawPageTasks }
# })

IF YOU ARE USING "POKEDEX DATA PAGE" PLUGIN, YOU MUST CHANGE THE "40" TO "50"!!
@kingdomharms, could you reupload this? The file link doesn't seem to be working anymore.
 
Last edited:
I'm having a similar issue with the above. I added a custom pokemon through a script call.

Code:
Expand Collapse Copy
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 6 (coords 16,8), map 32 (Professor's Lab)
Exception: NoMethodError
Message: undefined method `each' for nil:NilClass

***Full script:
pkmn = Pokemon.new(:SABLEYE, 20)
pkmn.shiny = true
pkmn.makeMale
pkmn.item = :SPELLTAG
pkmn.nature = :NAUGHTY
pkmn.name = "Squall"
pkmn.poke_ball = :DUSKBALL
pkmn.learn_move(:LEER)
pkmn.learn_move(:NIGHTSHADE)
pkmn.learn_move(:ZENHEADBUTT)
pkmn.learn_move(:FAKEOUT)
pkmn.calc_stats
pbAddPokemon(pkmn)

Backtrace:
[Pokedex Tasks] [004] Utilities.rb:20:in `pbAddPokemon'
(eval):13:in `execute_script'
Interpreter:138:in `eval'
Interpreter:138:in `execute_script'
Interpreter_Commands:1177:in `command_355'
Interpreter_Commands:116:in `execute_command'
Interpreter:130:in `block in update'
Interpreter:86:in `loop'
Interpreter:86:in `update'
Scene_Map:167:in `block in update'
I got a similar issue, for some reason it only works if you don't edit the Pokemon. Just pbAddPokemon
 
Pokedex Tasks v2.0
DOWNLOAD

Changes:
Implemented a Rewards System:
For completing 10 tasks in a species' task list, you will obtain an item as a reward.
By default, the reward is a Rare Candy, but the rewards table is fully customizable on a per-species basis in taskrewards.txt.
For completing every single possible task, you can get a Shiny Charm.


Implemented a "Pokedex Progression" system:
With flavor text courtesy of wrigty12.
Pokedex entries will progressively unlock as you complete more tasks, just like in Legends: Arceus.


A boatload of bugfixes done by myself and wrigty12:
Fixed an issue where using a move in battle would throw a "noMethodError", sometimes causing game crashes.
Fixed a compatibility issue with the Pokedex Data Page plugin, where attempting to navigate that page would cause a crash.
Fixed an issue where the game would crash if catching/otherwise obtaining Pokemon during evening/nighttime.
Other smaller issues that we found as we were fixing the bigger ones.


Still to be added:
Support for separate task lists for each form of a Pokemon.
Support for Regional Dexes, since I'm pretty sure this plugin can only support one dex at a time.
Tracking "number of species caught" when hatching eggs or receiving from a trade.
Different types of rewards??

I might get around to those myself, we'll see.

---

Since this info isn't available on here and only hidden in the plugin's files, here's the code you have to add for support with Modular UI Scenes:
# Add tasks page to Pokedex via Lucidious69's Modular UI Scenes
# Uncomment and add to:
# Plugins\[MUI_000] Modular UI Scenes\[002] Pokedex UI\[001] Pokedex Handlers.rb
# UIHandlers.add(:pokedex, :page_tasks, {
# "name" => "TASKS",
# "suffix" => "tasks",
# "order" => 40,
# "layout" => proc { |species, scene| scene.drawPageTasks }
# })

IF YOU ARE USING "POKEDEX DATA PAGE" PLUGIN, YOU MUST CHANGE THE "40" TO "50"!!
Hey, I just finally updated and everything you put into sounds awesome! Though I'm getting an error when I recompile and start a new game. Exception `NoMethodError' at [Pokedex Tasks] [003] Pokedex.rb:50 - undefined method `name' for nil:NilClass. Or when I try to start use my old save just to see what happens I get this instead when I go to open my PokeDex. Exception NoMethodError' at [Pokedex Tasks] [001] Pokedex Tasks.rb:97 - undefined method []' for nil:NilClass. Any clue on what I'm doing wrong? I also added the new section into Modular UI Scenes as instructed, any help be greatly appreciated.
 
Back
Top