• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
Resource icon

Resource Gen 8-Style Item Find Description 2.0

boonzeet

Developer of Pokemon: Secrets of the Ages
Member
Joined
Mar 13, 2019
Posts
70
boonzeet submitted a new resource:

Gen 8-Style Item Find Description - Shows a dialog after encountering a new item with its icon and description.

Short and sweet script to show an icon and description with the item name when discovering an item for the first time, like in Sword & Shield.

View attachment 278

Instructions

Place this script above Main, or above FollowingPokemon if using.

Code:
# ========================================================================
# Item Find
# v1.0
# By Boonzeet
# ========================================================================
# A script to show a helpful message...

Read more about this resource...
 

boonzeet

Developer of Pokemon: Secrets of the Ages
Member
Joined
Mar 13, 2019
Posts
70

Cuauhti

Rookie
Member
Joined
Sep 27, 2020
Posts
2
Awesome script! Although I noticed that the current version does not work for Essentials v18, but it is easily fixable by removing all the "Kernel."s from "pbMessage", since Essentials v18 doesn't use the Kernels in the method names anymore.
 

boonzeet

Developer of Pokemon: Secrets of the Ages
Member
Joined
Mar 13, 2019
Posts
70
Awesome script! Although I noticed that the current version does not work for Essentials v18, but it is easily fixable by removing all the "Kernel."s from "pbMessage", since Essentials v18 doesn't use the Kernels in the method names anymore.

Cheers for spotting this. I've updated the resource to include the fix.
 

Kioshi Hoshitsuya

Trainer
Member
Joined
Mar 4, 2018
Posts
51
Sorry for my ignorance, but, what's an instance? I want to modify the berry plants section but I don't know where exactly I need to put
this: $game_player.addFoundItem(berry)
 

Chalk33

Likes Pokémon Platinum too much
Member
Joined
Apr 27, 2020
Posts
9
Sorry for my ignorance, but, what's an instance? I want to modify the berry plants section but I don't know where exactly I need to put
this: $game_player.addFoundItem(berry)
I believe it means both times you see the line it says to search for. Each time you see the line would be an “instance” or “occurrence” of the line. So this paragraph would be an instance of me defining instance for you.

So basically search what it tells you to, and insert the code above each time you see it.

Assuming I read it right myself, I haven’t actually used it or anything, but I know I have the instance part right lol.
 

Kioshi Hoshitsuya

Trainer
Member
Joined
Mar 4, 2018
Posts
51
I believe it means both times you see the line it says to search for. Each time you see the line would be an “instance” or “occurrence” of the line. So this paragraph would be an instance of me defining instance for you.

So basically search what it tells you to, and insert the code above each time you see it.

Assuming I read it right myself, I haven’t actually used it or anything, but I know I have the instance part right lol.
It works! Thanks for the clarification!
 

boonzeet

Developer of Pokemon: Secrets of the Ages
Member
Joined
Mar 13, 2019
Posts
70
boonzeet updated Gen 8-Style Item Find Description with a new update entry:

Version 2.0 with v19.1 Support

Hello all, I've remade this as a plugin for v19.

New features include:
  • Removed piggybacking on $Trainer object, replacing with v19's new SaveData system
  • Uses aliases instead of rewriting methods, allowing the script to play better with other scripts that modify pbReceiveItem and pbItemBall
  • New UI showing the title inside the message box!
  • Now a plugin
Hope you enjoy!

Read the rest of this update entry...
 

Appletun's Apples

Trainer
Member
Joined
Jan 5, 2021
Posts
55
For this plugin I only ended up changing 1 line in order for it to work on V20.1. please credit IA [IndianAnimator] when using it.
 
Last edited:

REALMUGEN

Trainer
Member
Joined
Jan 23, 2020
Posts
69
Thanks for sharing this script.

Is there any method to call it from other scripts?

I'm using Following EX and the item description doesn't appear when a Pokemon finds an item.
 

Gardenette

Cooltrainer
Member
Joined
May 30, 2022
Posts
156
Will this be updated for v20+?
Working in v20.1 after changing
@sprites["itemicon"] = ItemIconSprite.new(42, Graphics.height - 48, -1, @viewport)
to
@sprites["itemicon"] = ItemIconSprite.new(42, Graphics.height - 48, nil, @viewport)

Thank you TechSkylander1518 for this solution!
 

Jos_Louis

Developer of Pokemon Soulstones
Member
Joined
Sep 3, 2020
Posts
147
To anyone else reading this, this script has one small broken part of it that affects berry trees.

At the bottom of the script, it replaces pbPickBerry which causes replanted berries to break and lets you farm berries infinitely. You want to put this at the end of the script

Fix to address issue with replanted berries:
alias pbPickBerry_itemfind pbPickBerry
def pbPickBerry(berry, qty = 1)
  ret = pbPickBerry_itemfind(berry, qty)
  $item_log.register(berry) if $bag.has?(berry)
  return ret
end

I am using v20.1 and I used Gardenette's edits as well to make this script compatible. I'm not sure what the impact is on v19.1 but just to anyone else reading this.
 

Gardenette

Cooltrainer
Member
Joined
May 30, 2022
Posts
156
To anyone else reading this, this script has one small broken part of it that affects berry trees.

At the bottom of the script, it replaces pbPickBerry which causes replanted berries to break and lets you farm berries infinitely. You want to put this at the end of the script

Fix to address issue with replanted berries:
alias pbPickBerry_itemfind pbPickBerry
def pbPickBerry(berry, qty = 1)
  ret = pbPickBerry_itemfind(berry, qty)
  $item_log.register(berry) if $bag.has?(berry)
  return ret
end

I am using v20.1 and I used Gardenette's edits as well to make this script compatible. I'm not sure what the impact is on v19.1 but just to anyone else reading this.
I spent so long trying to figure out why the trees weren't disappearing and I figured it out. Too late it seems lol
 
Back
Top