Ask a simple question, get a simple answer

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!
sajon
Posts: 38
Joined: Fri Nov 08, 2013 7:17 am

Re: Ask a simple question, get a simple answer

Post by sajon »

Skuggasveinn wrote:Take the following code and paste it into your tiles lua (or objects or where ever you like)
SpoilerShow

Code: Select all

defineTile{
	name = "dungeon_floor_no_pillars",
	editorIcon = 192,
	color = {150,150,150,255},
	builder = "dungeon",
	floor = {
		"dungeon_floor_dirt_01", 1,
	},
	ceiling = {
		"dungeon_ceiling", 1,
	},
	wall = {
		"dungeon_wall_01", 35,
		"dungeon_wall_02", 35,
		"dungeon_wall_drain", 2,
	},
	ceilingEdgeVariations = true,
	ceilingShaft = "dungeon_ceiling_shaft",
}
Its just a clone of the dungeon floor tile but the pillars have been removed, you can use it to paint the floor where you want the pillars gone.
It will show up as dungeon_floor_no_pillars in your asset browser.
Hope that helps.

kind regards.
Skuggasveinn.
Thanks for the reply i will try it out...
I need this to complete my dungeon transitions.
Check it out viewtopic.php?f=22&t=9576
sajon
Posts: 38
Joined: Fri Nov 08, 2013 7:17 am

Re: Ask a simple question, get a simple answer

Post by sajon »

sajon wrote:
Skuggasveinn wrote:Take the following code and paste it into your tiles lua (or objects or where ever you like)
SpoilerShow

Code: Select all

defineTile{
	name = "dungeon_floor_no_pillars",
	editorIcon = 192,
	color = {150,150,150,255},
	builder = "dungeon",
	floor = {
		"dungeon_floor_dirt_01", 1,
	},
	ceiling = {
		"dungeon_ceiling", 1,
	},
	wall = {
		"dungeon_wall_01", 35,
		"dungeon_wall_02", 35,
		"dungeon_wall_drain", 2,
	},
	ceilingEdgeVariations = true,
	ceilingShaft = "dungeon_ceiling_shaft",
}
Its just a clone of the dungeon floor tile but the pillars have been removed, you can use it to paint the floor where you want the pillars gone.
It will show up as dungeon_floor_no_pillars in your asset browser.
Hope that helps.

kind regards.
Skuggasveinn.
Thanks for the reply i will try it out...
I need this to complete my dungeon transitions.
Check it out viewtopic.php?f=22&t=9576
That worked perfectly!!!
Thnks Skuggasveinn.
User avatar
Slade
Posts: 45
Joined: Tue Oct 21, 2014 6:31 pm

Re: Ask a simple question, get a simple answer

Post by Slade »

Can i change monster speed somehow? Or any else monster "stats" ?
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
Slade
Posts: 45
Joined: Tue Oct 21, 2014 6:31 pm

Re: Ask a simple question, get a simple answer

Post by Slade »

Okey thanks but one more! : Is is possibble to make spells "locked" that you cant use them before you have the scroll or something like that?
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

Yes, you can return false from the PartyComponent.onCastSpell hook to prevent a spell from being cast.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
Slade
Posts: 45
Joined: Tue Oct 21, 2014 6:31 pm

Re: Ask a simple question, get a simple answer

Post by Slade »

So how i should make that it will change to "true" when i have the scroll?
User avatar
AdrTru
Posts: 223
Joined: Sat Jan 19, 2013 10:10 pm
Location: Trutnov, Czech Republic

Re: Ask a simple question, get a simple answer

Post by AdrTru »

I have problem with party:onAttack hook.
Can somebody how catch onAttack when is make by free hand?
In Log1 this situation wos managed by this party:onAttack hook. In LOG2 I didnt fint way for this hook.
My LOG2 projects: virtual money, Forge recipes, liquid potions and
MultiAlcoveManager, Toolbox, Graphic text,
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

Check the contents of the champion's slot used to attack (you are passed the slot as the 4th parameter). If it's empty, it's a bare-handed attack.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
AdrTru
Posts: 223
Joined: Sat Jan 19, 2013 10:10 pm
Location: Trutnov, Czech Republic

Re: Ask a simple question, get a simple answer

Post by AdrTru »

minmay wrote:Check the contents of the champion's slot used to attack (you are passed the slot as the 4th parameter). If it's empty, it's a bare-handed attack.
Thank you, but that isnt my problem. Problem is in game hook onAttack inst called when attack is made by free hand.
My LOG2 projects: virtual money, Forge recipes, liquid potions and
MultiAlcoveManager, Toolbox, Graphic text,
Post Reply