Author Topic: Updating an item description right before examining it  (Read 256 times)

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Updating an item description right before examining it
« on: June 14, 2012, 07:34:56 pm »


               Hi,

Is it possible to do that, via an event or a function hook with nwnx or any other way? For instance, in the context of a custom poison system, I'd like to update the description of a poison vial right before examination, depending on the character stats and classes. Of course it can be done in the OnAcquire event, at least, but then if the player equips an item raising dexterity or levels up etc... It means looping on all items and updating each possessed vial description, in every possible situation which would affect the poison stats, not very efficient it seems, hence my question.

Thank you!


Kato 
               
               

               


                     Modifié par Kato_Yang, 14 juin 2012 - 06:48 .
                     
                  


            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Updating an item description right before examining it
« Reply #1 on: June 14, 2012, 07:44:13 pm »


               I am also interested in an answer. Since I couldn't find a way to capture an examine event, I handled it via onacquire/onunacquire. But I don't base the result on ability scores or other easily changeable attributes so I don't have your same limitations.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Updating an item description right before examining it
« Reply #2 on: June 14, 2012, 07:54:33 pm »


               nwnx_events for windows has the Examine event, im using this to give XP to anyone identifying an item
               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Updating an item description right before examining it
« Reply #3 on: June 14, 2012, 07:55:52 pm »


               Oh! Great news then, tyvm ShaDoOoW '<img'>


Kato
               
               

               
            

Legacy_virusman

  • Sr. Member
  • ****
  • Posts: 448
  • Karma: +0/-0
Updating an item description right before examining it
« Reply #4 on: June 15, 2012, 02:26:10 pm »


               It actually originated from NWNX Events for Linux, so Linux also has that event.
               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Updating an item description right before examining it
« Reply #5 on: June 15, 2012, 02:52:48 pm »


               Thanks Virusman, it would so nice if I could run the toolset smoothly under Linux, but that's another subject...

Kato
               
               

               


                     Modifié par Kato_Yang, 15 juin 2012 - 01:54 .
                     
                  


            

Legacy_Idelish

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Updating an item description right before examining it
« Reply #6 on: August 13, 2012, 07:58:07 pm »


               Yep NWNX. A plugin to provide this features to NWNCX will be apreciated, NWNX_events to nwncx_bridge still crash my game launch (Windos 7) .
               
               

               
            

Legacy_ShadowM

  • Hero Member
  • *****
  • Posts: 1373
  • Karma: +0/-0
Updating an item description right before examining it
« Reply #7 on: August 13, 2012, 11:57:56 pm »


               Could you modify the skillvsitemcost.2da so it impossible to ID an item and then use a custom examine feat to do skill check, description change etc.. you needed?