[ACE] Making Window_Help able to access various data?

I'm using a custom description script and a custom message codes script (of which I like where it lets you place strings like \#{10*$game_actors[1].hp} and I absolutely cannot access anything.

What I'm especially trying to access is whether the current object is an item/weapon/armor, and the objects numeric id from the database.

For example, I was trying to make descriptions for objects of an array if they haven't been "indentified" yet (via http://www.rpgmakervxace.net/topic/12352-identify-item/ ).

This was my modification to set_item in Window_Help.

def set_item(item) value = "" #If the object is an item if is_item? if !$game_party.identified_items[:item][id] [1,2,3].each {|data| if id == data then value = "Unknown vial." end} end end set_text((!item or value != "") ? value : item.description)I try viewing an unidentified standard potion I just get an undefined error for is_item? (item.is_item also returns this error).

But that's just an example.

From what I understand, using things like attr accessories, super, aliases, or that < function will allow for one class to have access to another, but I am unsure how to do it.

I think in this case I'm trying to access Game_BaseItem but I'm unsure.
item.is_item? should work.


is_item? is incorrect, and item.is_item is incorrect.
I've used

item.is_a?(RPG::Item)in the past to check if the item is in fact an Item.
But then how do I check for its numeric id?
Gonna bump this one.

Original thread: https://forums.rpgmakerweb.com/threads/ace-making-window_help-able-to-access-various-data.37485/