View Single Post
  #3  
Old 12-08-2012, 02:26 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
You need to set the text of Inventory_Item_Text to the weapon's description each time the player selects an item. In other words, when the player selects the item, do something like...

PHP Code:
Inventory_Item_Text.text weapon.description
where weapon is a weapon object (e.g. from findWeapon as above).

Additionally, the description needs to be a flag on the weapon object, so use this.description inside the weapon like Gunderak showed above.
__________________
Reply With Quote