Jump to content

Recommended Posts

if item.prefab == "bluegem" then ...

item being your passed object argument (could be inst or whatever...)
see : http://dont-starve-game.wikia.com/wiki/Console/Prefab_List
for a prefab list

you could also have a look at wx78 LUA file ;)

Edited by whismerhill
36 minutes ago, km1102 said:

 only "food type gears".

you do realize that sentence doesn't make any sense ? at least for me a non-english native reader. Either way it should work the same, except food type will be bluegem .

Edited by whismerhill

Sadly, you do realize you're providing no way to help us help you ??? no error message, no code, no exact explanation of what, where, how, when it crashes. I can't see how I can help in any way here.

good luck :)

 

Edited by whismerhill

hum... how to say this .... as I said earlier "item" can be anything it has to be the variable that contains the bluegem ...

maybe in this case the variable is "food" instead of "item", I can't be sure....

so it will be food.prefab ... maybe ...

whatever it is, it's not item, as there's no "item" declaration before xD....

Edited by whismerhill

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...