WEAKNESS

Are you experiencing a problem? Maybe you can't get your scripts to do what you need, or are frustrated by a feature you just can't seem to get working? Let us know about it here and we will try our best to help you out!
Post Reply
CeeJay
Posts: 224
Joined: Sat Jan 26, 2013 9:56 am

WEAKNESS

Post 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 ?

User avatar
Corbachu
Site Admin
Posts: 778
Joined: Fri Jun 08, 2012 11:22 am
Gender:
Contact:

Re: WEAKNESS

Post by Corbachu »

Yep, I'll give more documentation sometime tomorrow for WEAKNESS. ;-)
\(סּںסּَ` )/ۜ

CeeJay
Posts: 224
Joined: Sat Jan 26, 2013 9:56 am

Re: WEAKNESS

Post 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.

User avatar
Corbachu
Site Admin
Posts: 778
Joined: Fri Jun 08, 2012 11:22 am
Gender:
Contact:

Re: WEAKNESS

Post 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.
\(סּںסּَ` )/ۜ

CeeJay
Posts: 224
Joined: Sat Jan 26, 2013 9:56 am

Re: WEAKNESS

Post by CeeJay »

Thanks, got it working :D

Return to “Support and Help”