Aller au contenu

Photo

Poison/Disease and persistence


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Krevett

Krevett
  • Members
  • 104 messages
Hello there, I'd like when saving player status to database to also save if they are affected by a poison or a disease so that when they log back the poison or disease is applied again... But I don't find how to proceed: I know how to find if a PC is affected by a disease or poison type of effect but I don't know how to retrieve the information of this poison/disease (is it devil_chill or demon_fever for example...). Is there a way to do that without using nwnx?? (I just use knat's nbde)
Thanks!

Edit: are these effects created via a spell script? If so would GetEffectSpellId work?

Modifié par Krevett, 23 août 2012 - 12:52 .


#2
Shadooow

Shadooow
  • Members
  • 4 471 messages
yes its possible by rewritting the poison/disease from scratch

in my patch project (or take a look into ShadowM's posion/diseases which I inherited my script from) there is a script for each poison/disease that runs when the pc fails in the saving throw and this script applies the ability damage penalties - with a little work using effect creator objects you can later find that the creator of poison effect on PC is "EC_POISON5" and then work with it.

#3
Krevett

Krevett
  • Members
  • 104 messages
ok thanks for the quick reply shadooow ;)