| 10-19-2003, 09:46 PM | #1 |
What is the easiest way to make is to so when a hero picks up an item and already has one of the same class he drops it? Like if he has a weapon type item and pick up another he auto drops it. Im talking about 100+ items too. |
| 10-19-2003, 09:58 PM | #2 |
Code:
Event:
Unit picks up an item
Conditions:
Actions:
Do loop for integer A from 1 to 6
If
Item(item being manipulated) is equal to item(in in slot number(integerA)) of unit(manipulating item)
Then
Order unit to drop item(item being manipulated)
Else
Do nothingShould work... |
| 10-19-2003, 10:00 PM | #3 |
Hmm I just thought of this now. Make all of your custom items certain classes. You could make weapons "Permanent" shields "charged" and armor "artifact" Now I'm not too sure what you meant.. Combine what the both of us said and I think you'll have a full answer :D |
| 10-19-2003, 10:03 PM | #4 |
I think I need to be a little more clear... What I have is say around 50 different weapons (+10 claws, Battle sword, Spear.. etc) they are all labled as "weapon" class items. I want it so the hero can only carry 1 "weapon" in his invertory at all time. If he should pick up another when he already has one he drops the one just picked up. |
| 10-19-2003, 10:05 PM | #5 |
Do what allpainful said except item-class instead of item in the if part |
