Page 1 of 1

WEAKNESS

Posted: Thu Jun 22, 2017 1:09 am
by CeeJay
I've noticed that none of the WEAKNESS commands are present in any of the documentation.

I was wondering how I would go about making enemies vulnerable only from the back. Using WEAKNESS.ANGLES=1:360 makes them vulnerable from all sides, but how do I change to this only aplly to the back (5th rotation)? =5:45 ?

Re: WEAKNESS

Posted: Thu Jun 22, 2017 1:57 pm
by Corbachu
Yep, I'll give more documentation sometime tomorrow for WEAKNESS. ;-)

Re: WEAKNESS

Posted: Thu Jun 22, 2017 3:16 pm
by CeeJay
Well, I tried that and it didn't seem to work :(

I'm trying to make an attack do more damage when sneaking up from behind.

Re: WEAKNESS

Posted: Fri Jun 23, 2017 2:31 am
by Corbachu
WEAKNESS: allows a monster to receive more damage
from certain attacks than others. You can also specify a zone
where the monster must be hit (when hit in other places, the
weakness does not apply). The weakness zone can be a height
range (in percentages) and/or an angle range (in degrees).

The weakness feature requires 'WEAKNESS.CLASS' to be present,
specifying what attack classes the monster is weak against.
Note that it will also _override_ any IMMUNITY or RESISTANCE
that the monster has (except for the INVULNERABLE special).

The following example shows all the commands. Everything
except 'WEAKNESS.CLASS' is optional.

WEAKNESS.CLASS=ABC;
WEAKNESS.HEIGHTS=75%:100%;
WEAKNESS.ANGLES=150:210;
WEAKNESS.MULTIPLY=3.0;
WEAKNESS.PAINCHANCE=100%;


When a thing is hurt via the weakness feature, it will try to
enter 'WEAKPAIN' states, but if it doesn't have them then the
normal PAIN states are used.

When a thing is killed, it will try to enter 'WEAKDEATH' states,
but if they don't exist then it will try OVERKILL states, and
finally it falls back to the normal DEATH states.

Re: WEAKNESS

Posted: Mon Jun 26, 2017 6:58 am
by CeeJay
Thanks, got it working :D