Mortar clone not working - pls help

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Mortar clone not working - pls help

Post 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,
}
Breath from the unpromising waters.
Eye of the Atlantis
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: Mortar clone not working - pls help

Post by Drakkan »

nobody tried ? :/
Breath from the unpromising waters.
Eye of the Atlantis
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Mortar clone not working - pls help

Post by Komag »

no idea, sorry :(

maybe it's just too hard-coded
Finished Dungeons - complete mods to play
User avatar
maneus
Posts: 246
Joined: Mon Jun 17, 2013 10:42 pm
Location: Switzerland

Re: Mortar clone not working - pls help

Post 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.
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: Mortar clone not working - pls help

Post 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! :)
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
maneus
Posts: 246
Joined: Mon Jun 17, 2013 10:42 pm
Location: Switzerland

Re: Mortar clone not working - pls help

Post by maneus »

No problem Mr. bongobeat. :D
Post Reply