Author Topic: Poison/Disease and persistence  (Read 320 times)

Legacy_Krevett

  • Full Member
  • ***
  • Posts: 203
  • Karma: +0/-0
Poison/Disease and persistence
« on: August 23, 2012, 01:45:42 pm »


               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 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Poison/Disease and persistence
« Reply #1 on: August 23, 2012, 02:10:29 pm »


               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.
               
               

               
            

Legacy_Krevett

  • Full Member
  • ***
  • Posts: 203
  • Karma: +0/-0
Poison/Disease and persistence
« Reply #2 on: August 23, 2012, 02:21:41 pm »


               ok thanks for the quick reply shadooow '<img'>