How do you make a mob do something if you have more a certain number of an item in your inventory?
Thanks.
ID:175082
Jun 15 2003, 10:26 am
|
|
In response to Lummox JR
|
|
Or for a more generic approach, you can just test <code>if(mob.contents.len >= desired_amount)</code>.
|
In response to Foomer
|
|
Foomer wrote:
Or for a more generic approach, you can just test <code>if(mob.contents.len >= desired_amount)</code>. Problem is that covers all items, not just items of a particular type. That tends to be a lot less useful. Lummox JR |
In response to Lummox JR
|
|
Oh, I misread "an item" as "items" :P
|
One way to check for a number of items in your inventory might be this:
Lummox JR