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!
CeeJay
Posts: 209
Joined: Sat Jan 26, 2013 9:56 am
Gender: None specified

WEAKNESS

Postby CeeJay » Thu Jun 22, 2017 1:09 am

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
Coraline
Site Admin
Posts: 747
Joined: Fri Jun 08, 2012 11:22 am
Gender: Female
Contact:

Re: WEAKNESS

Postby Coraline » Thu Jun 22, 2017 1:57 pm

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

CeeJay
Posts: 209
Joined: Sat Jan 26, 2013 9:56 am
Gender: None specified

Re: WEAKNESS

Postby CeeJay » Thu Jun 22, 2017 3:16 pm

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
Coraline
Site Admin
Posts: 747
Joined: Fri Jun 08, 2012 11:22 am
Gender: Female
Contact:

Re: WEAKNESS

Postby Coraline » Fri Jun 23, 2017 2:31 am

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: 209
Joined: Sat Jan 26, 2013 9:56 am
Gender: None specified

Re: WEAKNESS

Postby CeeJay » Mon Jun 26, 2017 6:58 am

Thanks, got it working :D


Return to “Support and Help”

Who is online

Users browsing this forum: No registered users and 1 guest