Musical Potion

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
Emera Nova
Posts: 146
Joined: Wed Jun 11, 2014 1:31 am

Musical Potion

Post by Emera Nova »

Code: Select all

defineObject{
	name = "potion_of_music",
	baseObject = "base_item",
	components = {
		{
			class = "Model",
			model = "assets/models/items/flask.fbx",
		},
		{
			class = "Item",
			uiName = "???",
			gfxIndex = 148,
			weight = 0.3,
			stackable = true,
			traits = { "potion" },
		},
		{
			class = "UsableItem",
			--emptyItem = "flask",
			canBeUsedByDeadChampion = true,
			sound = "level_up",
		},
	},
}
Would this make it so when the potion is drunk it will just play the sound and nothing else?
Emera Nova
Posts: 146
Joined: Wed Jun 11, 2014 1:31 am

Re: Musical Potion

Post by Emera Nova »

Totally does awesome.
Post Reply