I am currently using if (GetHasEffect(EFFECT_TYPE_*, oPC)) to determine if a player has disease or poison, and want to then have a fortitude check - failure of which would give a penalty to the player.
Whilst that is good for detecting whether they have a disease or are poisoned, what I would really like is to be able to detect the potency of it and then have the DC of the fortitude save scale accordingly.
If anybody knows how to accomplish this I would be very grateful.
Poison/Disease DC
Débuté par
Orosian
, déc. 29 2010 10:27
#1
Posté 29 décembre 2010 - 10:27
#2
Posté 29 décembre 2010 - 07:51
DC checks are in the 2das, unfortunately. You'd have to edit them to alter the dc checks made when diseases/poisons are applied, though I'm not certain it'd work serverside, not having tested it (though I suspect it will).
Alternatively, if you just want to apply an ADDITIONAL penalty, you can do a second fort save for that, independent of the hardcoded one - is that what you mean? If you just want to tell what poison or disease they have, that is unfortunately not possible in vanilla nwn, so far as I know.
If you're using nwnx_structs, you could almost definitely do this by looking at the effect struct.
Here's an old thread on the subject:
Click Me
Funky
Alternatively, if you just want to apply an ADDITIONAL penalty, you can do a second fort save for that, independent of the hardcoded one - is that what you mean? If you just want to tell what poison or disease they have, that is unfortunately not possible in vanilla nwn, so far as I know.
If you're using nwnx_structs, you could almost definitely do this by looking at the effect struct.
Here's an old thread on the subject:
Click Me
Funky
Modifié par FunkySwerve, 29 décembre 2010 - 07:52 .
#3
Posté 30 décembre 2010 - 11:25
It's more like the latter, and at the moment there is a fixed DC as I cannot deduce which type of poison/disease it is. The problem with a fixed DC is that it can be too high or too low for a player. As there seems to be no way of doing this then I'll just have to put my creative gloves on.
Thanks for the reply.
Thanks for the reply.
#4
Posté 12 janvier 2011 - 09:44
May I ask if there is a way of fetching or calculating the base saving throws? The command GetFortitudeSavingThrow, despite saying it fetches the base saving throw, still includes any bonuses from items. I'd like to be able to differentiate.





Retour en haut






