ID:173324
Jan 19 2004, 10:19 am
|
|
Ok in my battle system I need help on using a item when the command box comes up if you choose item how do I get it to execute the effect of the item in the inventory?
|
Here's a small demo for you:
obj |
Knife //a basic Knife
price = 20
Click()
//here you enter what the item will do
// eg useKnife() this would start a proc called useKnife