- Joined
- May 16, 2014
- Messages
- 140
- Reaction score
- 10
- Primarily Uses
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.
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.