Snail Race!

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Grimorial
Posts: 13
Joined: Sun Oct 07, 2012 4:18 am

Snail Race!

Post by Grimorial »

Is it possible to restrict monster movement to a linear path without the use of blockers and walls? I was thinking making a snail race to gamble on.
User avatar
antti
Posts: 688
Joined: Thu Feb 23, 2012 1:43 pm
Location: Espoo, Finland
Contact:

Re: Snail Race!

Post by antti »

Sure thing. Adding something like this to the monsters.lua in your modding assets produces a new monster which is unable to turn (warning, untested code follows):

Code: Select all

cloneObject{
	name = "racing_snail",
	baseObject = "snail",
	onTurn = function(monster, direction)
		return false
	end,
}
Steven Seagal of gaming industry
Grimorial
Posts: 13
Joined: Sun Oct 07, 2012 4:18 am

Re: Snail Race!

Post by Grimorial »

That's wonderful news, I appreciate the assistance and provided script very much. I will put that to good use. :D

I'll post back once I have worked this in.
Grimorial
Posts: 13
Joined: Sun Oct 07, 2012 4:18 am

Re: Snail Race!

Post by Grimorial »

Ok, it was successful. Thanks again.
Post Reply