Author Topic: How to make an NPC use a potion?  (Read 334 times)

Legacy_Lovelamb

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
How to make an NPC use a potion?
« on: March 13, 2013, 11:22:57 pm »


               I'm at my wits' end. I can't seem to find a function that tells someone to use an item (potion). Am I crazy for thinking about finding the potion's effect and applying it as a spell and destroying the potion itself manually?
               
               

               
            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
How to make an NPC use a potion?
« Reply #1 on: March 14, 2013, 02:30:45 am »


               Try buff self: TalentBuffSelf();
               
               

               


                     Modifié par ffbj, 14 mars 2013 - 02:36 .
                     
                  


            

Legacy_Lovelamb

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
How to make an NPC use a potion?
« Reply #2 on: March 14, 2013, 09:57:47 am »


               Okay, so I should have searched for "talent". Thank you.
               
               

               
            

Legacy_virusman

  • Sr. Member
  • ****
  • Posts: 448
  • Karma: +0/-0
How to make an NPC use a potion?
« Reply #3 on: March 17, 2013, 05:59:05 am »


               If you need it to use a specific potion, NWNX provides an additional function: ActionUseItem.