Setting Monster Resistances

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
User avatar
David Ward
Posts: 103
Joined: Wed Jan 07, 2015 11:44 pm
Location: Vancouver, BC, Canada

Setting Monster Resistances

Post by David Ward »

We're trying to make monsters that have *some* resistances to certain elements, but are unable to find anything other than all-or-nothing resistances.

For example:

Code: Select all

		{
			class = "Monster",
			meshName = "shrakk_torr_mesh",
			health = 50,
			protection = 15,
			evasion = 10,
			exp = 40,
			immunities = { "sleep", "blinded" },
			resistances = { shock = "weak" },
		},
Under "resistances = { shock = "weak" }", this can be set to "weak" or "vulnerable" to make the monster less resistant, or it can be set to "absorb" or "immune" to make them 100% resistant.

Is there any way to make this monster, say, 50% resistant to shock damage? That is, any shock damage that hits it is reduced by half.
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: Setting Monster Resistances

Post by minmay »

"resist"
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
David Ward
Posts: 103
Joined: Wed Jan 07, 2015 11:44 pm
Location: Vancouver, BC, Canada

Re: Setting Monster Resistances

Post by David Ward »

Haha is that seriously it?

Code: Select all

resistances = { shock = "resist" },
That will give 50% resist, okay. I'm guessing then that there is no way to specify 25% or 75% resistance, say, or really any resistance between 0 and 100?
User avatar
Isaac
Posts: 3190
Joined: Fri Mar 02, 2012 10:02 pm

Re: Setting Monster Resistances

Post by Isaac »

David Ward wrote:Haha is that seriously it?

Code: Select all

resistances = { shock = "resist" },
That will give 50% resist, okay. I'm guessing then that there is no way to specify 25% or 75% resistance, say, or really any resistance between 0 and 100?
The ones I know of are :
  • vulnerable
  • weak
  • resist
  • immune
  • absorb
User avatar
David Ward
Posts: 103
Joined: Wed Jan 07, 2015 11:44 pm
Location: Vancouver, BC, Canada

Re: Setting Monster Resistances

Post by David Ward »

Indeed, those are the ones I know also. Okay, all good. Thank you!
Post Reply