Page 1 of 1

Setting Monster Resistances

Posted: Wed May 20, 2015 10:13 pm
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.

Re: Setting Monster Resistances

Posted: Wed May 20, 2015 10:40 pm
by minmay
"resist"

Re: Setting Monster Resistances

Posted: Thu May 21, 2015 12:46 am
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?

Re: Setting Monster Resistances

Posted: Thu May 21, 2015 1:46 am
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

Re: Setting Monster Resistances

Posted: Thu May 21, 2015 4:03 am
by David Ward
Indeed, those are the ones I know also. Okay, all good. Thank you!