• 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.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Resource icon

[PSDK] Item text fix 1.0

Pokémon Essentials Version
Non-applicable
Unlike the last resource, this one only has one simple script! It adds a check in the pick_item and give_item functions for if the player is receiving only one item, or multiple! It will display different text depending on whether you have one or more, and will now also display how much of the item the player is receiving. Below is an example of how it was before and how it works now. There will be a little bit of work you have to do yourself, but it's really simple!
item-fix-preview.gif


So here's what you have to do:
  • First, name this script whatever you want but I'm going to recommend "00600 Item_Fixes.rb"
Ruby:
Expand Collapse Copy
#Made by buttjuice
#You will be editing the text in RubyHost. Text file 41, text IDs 0, 4. You will have to create two new ones, text IDs 23 and 24.
#If you plan on editing the text yourself, for reference, [VAR 1402(0001)] shows the number of items the player is getting.
class Interpreter
 
  def pick_item(item_id, count = 1, no_delete = false)
    if count == 1
      #[VAR TRNAME(0000)] found a [VAR iCOLOR2(0001)][VAR BD00(0007,0000,0000)][VAR ITEM2(0001)][VAR BD01]!
      add_item(item_id, no_delete, text_id: 4, count: count)
    else
      #[VAR TRNAME(0000)] found [VAR iCOLOR2(0001)][VAR BD00(0007,0000,0000)][VAR 1402(0001)][VAR ITEM2(0001)][VAR BD01]!
      add_item(item_id, true, text_id: 24, count: count)
    end
  end
 
  def give_item(item_id, count = 1)
    text_id = GameData::Item[item_id].socket == 5 ? 1 : 0
    if count == 1
      #[VAR TRNAME(0000)] obtained a [VAR iCOLOR2(0001)] [VAR BD00(0007,0000,0000)][VAR ITEM2(0001)][VAR BD01]!
      add_item(item_id, true, text_id: text_id, count: count)
    else
      #[VAR TRNAME(0000)] obtained [VAR iCOLOR2(0001)][VAR BD00(0007,0000,0000)][VAR 1402(0001)] [VAR ITEM2(0001)][VAR BD01]!
      add_item(item_id, true, text_id: 23, count: count)
    end
  end
end
  • Second, go into RubyHost and open the Text editor
  • Third, go to text file 41 text ID 0. This will be the text used when the player obtains an item with add_item or give_item (now when only giving one item with give_item). Make this text whatever you want, but I recommend "[VAR TRNAME(0000)] obtained a [VAR iCOLOR2(0001)] [VAR BD00(0007,0000,0000)][VAR ITEM2(0001)][VAR BD01]!"
  • Fourth, go to text file 41 text ID 4. This will be the text used when the player finds an item with pick_item (now only when finding one item with pick_item). Make this text whatever you want, but I recommend "[VAR TRNAME(0000)] found a [VAR iCOLOR2(0001)][VAR BD00(0007,0000,0000)][VAR ITEM2(0001)][VAR BD01]!"
  • Fifth, go to text file 41 text ID 22 and hit the "Add Text" button and go to text ID 23. This will be the text used when the player obtains more than one item with give_item. Make it whatever you want, but I recommend "[VAR TRNAME(0000)] obtained [VAR iCOLOR2(0001)][VAR BD00(0007,0000,0000)][VAR 1402(0001)] [VAR ITEM2(0001)][VAR BD01]!"
  • Last, hit the "Add Text" button again and go to text ID 24. This will be the text used when the player finds more than one item with pick_item. Make it whatever you want, but I recommend "[VAR TRNAME(0000)] found [VAR iCOLOR2(0001)][VAR BD00(0007,0000,0000)][VAR 1402(0001)][VAR ITEM2(0001)][VAR BD01]!"

And that's it! :)

Super simple script, but I think it's a nice little polish so I figured I should make it public.
Credits
Not required, but you can credit "buttjuice" if you'd like.
Author
Invatorzen
Views
1,538
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Invatorzen

Back
Top