Actor's Name in Item Descriptions

Hello! Today, I was attempting to create what is essentially multiple items in one, by using Actor Names. In my test example, Actor 30 is named 'water'. The item is a 'Filled Bottle', essentially an empty vessel that can be used in different areas to get different materials. When you fill it, a variable changes that determines what's in the bottle. (In my test, it is being set to 30.)

The description is " A glass bottle, filled with \P[\V[35]]." Now, the variable(\V[35]) nested inside of the Actor Name code(\P[n]) actually works on its own, and will insert the appropriate numeric value into the description. However, if they are together(as in the example), or if the Actor Name code is all on its own, It will display as:

Game_Bug_024.png


Any idea on how to correct this, or another way to go about this without a script? Any help, as always, is appreciated.
Here you go: http://www.gdunlimited.net/forums/topic/7846-variables-in-item-help-lines/
Hmm. I took a look at this, and the only thing relevant I saw was trying lowercase commands, which made no difference, unfortunately. That post is referring to showing variables in the description, which I can do without issue currently; it's the Actors' names that aren't displaying. Also, they seem to be discussing VX, even though it's categorized as VX Ace. Odd.
Try this:
Code:
class Bitmap
 
  alias variable_sub draw_text
  def draw_text(*args)
    index = args[0].is_a?(Rect) ? 1 : 4
    unless args[index].is_a?(String)
      args[index] = args[index].to_s
    end
    args[index].gsub!(/\eV\[(\d+)\]/i) { $game_variables[$1.to_i] }
    args[index].gsub!(/\eV\[(\d+)\]/i) { $game_variables[$1.to_i] }
    args[index].gsub!(/\eN\[(\d+)\]/i) { actor_name($1.to_i) }
    args[index].gsub!(/\eP\[(\d+)\]/i) { party_member_name($1.to_i) }
    args[index].gsub!(/\eG/i)          { Vocab::currency_unit }
    variable_sub(*args)
  end
end
Sadly, it doesn't seem like it changed anything. I assume I just place it in Materials as always?
Regardless, I see some strings there, but I'm not sure how to use them.
Yep, in Materials; at the top would be best. How are you drawing the actor's name? \n[ID]?
...WOW, I'm an idiot. I've been using \P[n], which is for party members, not actors. They're right next to each other in the list, so I mixed them up. This means my code was correct the entire time; it's just that there's only 1 party member. It works now, even without the little script. Thanks for the help. >.<
No worries, glad I could help!

Original thread: https://forums.rpgmakerweb.com/threads/actors-name-in-item-descriptions.95945/