Page 1 of 1

Mortar clone not working - pls help

Posted: Mon Feb 04, 2013 11:45 pm
by Drakkan
Iam trying to clone mortar and pestle for anvil type item, which will enable to craft some items (I do not mind that they will be craftable in the original mortar also)
I need help to define such an object. It is possible ? When I am trying to make some mortar clone, it is not working at the end (output item is not spawn)
I tried also to define it as follows, but it is not working as well :/ I am missing something ?

cloneObject{
name = "anvil",
baseObject = "mortar",
uiName = "Anvil",
model = "mod_assets/models/anvil.fbx",
gfxAtlas = "mod_assets/textures/itemy.tga",
gfxIndex = 22,
}


defineObject{
name = "anvil",
class = "Item",
uiName = "Anvil",
weight = 10,
model = "mod_assets/models/anvil.fbx",
gfxAtlas = "mod_assets/textures/itemy.tga",
gfxIndex = 22,
container = true,
containerType = "mortar",
capacity = 7,
}

Re: Mortar clone not working - pls help

Posted: Wed Feb 06, 2013 6:18 pm
by Drakkan
nobody tried ? :/

Re: Mortar clone not working - pls help

Posted: Wed Feb 06, 2013 6:20 pm
by Komag
no idea, sorry :(

maybe it's just too hard-coded

Re: Mortar clone not working - pls help

Posted: Sat Oct 12, 2013 1:12 am
by maneus
Sorry for dust off this thread.

I´ve found a way to make a mortar as anvil or something else.

Make a object like:

Code: Select all

	defineObject{
		name = "anvil",
		class = "Item",
		uiName = "Anvil",
		model = "mod_assets/models/items/anvil.fbx",
		gfxAtlas = "mod_assets/textures/mod_items.tga",
		gfxIndex = 27,
		weight = 0.2,
		container = true,
		containerType = "mortar",
		capacity = 7,
	}
And a recipe as the following:

Code: Select all

defineRecipe{
	item = "gear_key",
	craftingTool = "anvil",
	ingredients = {
		1, "iron_key",
		1, "gear_necklace",
	}
}
Important is the entry " craftingTool = "anvil", ". That is the little thing whereby it works. I´ve tested it a few times.

Re: Mortar clone not working - pls help

Posted: Tue Nov 12, 2013 11:53 pm
by bongobeat
maneus wrote:Sorry for dust off this thread.

I´ve found a way to make a mortar as anvil or something else.

Make a object like:
SpoilerShow

Code: Select all

	defineObject{
		name = "anvil",
		class = "Item",
		uiName = "Anvil",
		model = "mod_assets/models/items/anvil.fbx",
		gfxAtlas = "mod_assets/textures/mod_items.tga",
		gfxIndex = 27,
		weight = 0.2,
		container = true,
		containerType = "mortar",
		capacity = 7,
	}
And a recipe as the following:

Code: Select all

defineRecipe{
	item = "gear_key",
	craftingTool = "anvil",
	ingredients = {
		1, "iron_key",
		1, "gear_necklace",
	}
}
Important is the entry " craftingTool = "anvil", ". That is the little thing whereby it works. I´ve tested it a few times.
Hello,
Thanks for that Maneus!
It is realy helpful! :)

Re: Mortar clone not working - pls help

Posted: Wed Nov 13, 2013 12:37 pm
by maneus
No problem Mr. bongobeat. :D