Jump to content

[HELP] Where in this code do I do what i'm trying to do


Recommended Posts

I have this working perfectly but what i'm trying to do is create multiple items instead of just one, what do I do with this code to make it so I create multiple anememy traps?

local dug_trap_starfish = Recipe("dug_trap_starfish", { Ingredient("redgem", 4), Ingredient("trap_teeth", 2)}, RECIPETABS.WAR, TECH.SCIENCE_TWO)

I thought it was num = * but I don't know.

Link to comment
Share on other sites

Hi. I am using something (disclaimer: I didn't discover it on my own, I am just using it) like this:
 

GLOBAL.STRINGS.NAMES.ITASNACC = "Onigiri"
GLOBAL.STRINGS.RECIPE_DESC.ITASNACC = "Tasty treat made of rice and seaweed"
GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.ITASNACC = "That's some yummy stuff!"

local itasnacc = Ingredient( "itasnacc", 3 )
itasnacc.atlas = "images/inventoryimages/itasnacc.xml"
local itasnacc = AddRecipe("itasnacc", { Ingredient("fish", 1), Ingredient("seeds", 3), Ingredient("cutgrass", 1)}, shinobi, TECH.NONE, nil, nil, nil, 3, "shinobi", "images/inventoryimages/itasnacc.xml") 

and the fourth "nil" represents amount of crafted items, (in my case it's "3").
 

Quote

TECH.NONE, nil, nil, nil, 3,

I don't know how to implement this into your method.

Link to comment
Share on other sites

I see, thank you, it works! 

local dug_trap_starfish = Recipe("dug_trap_starfish", { Ingredient("redgem", 4), Ingredient("trap_teeth", 2)}, RECIPETABS.WAR, TECH.SCIENCE_TWO, nil, nil, nil, 2, nil)

 

Edited by Stoplesses
  • Like 1
Link to comment
Share on other sites

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
 Share

×
  • Create New...