Author Topic: Item Use  (Read 699 times)

Legacy_Sydious

  • Full Member
  • ***
  • Posts: 116
  • Karma: +0/-0
Item Use
« on: July 16, 2011, 07:32:46 pm »


               Is there a way to turn off the animation when using an item?
I am using tag based script to use the item, but would like him not to look like he casts a spell (He sticks his arms arm out) and just does the animation I script for the item use.
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Item Use
« Reply #1 on: July 17, 2011, 02:09:26 am »


               With Linux based NWNX you can, by hooking the OnUsed instead of OnActivated event, but unfortunately I don't know of any other way to do it, even with windows based NWNX.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Item Use
« Reply #2 on: July 17, 2011, 02:25:27 am »


               You would have to remove the animation from the entry for the spell in spells.2da

I think that entry is used by the client.  So after modifying the 2da you would need to place it into a hak and attach it to the module.   If it is used in On-Line play you would need to make sure all of your players had a copy of the hak.
               
               

               
            

Legacy_Sydious

  • Full Member
  • ***
  • Posts: 116
  • Karma: +0/-0
Item Use
« Reply #3 on: July 17, 2011, 04:35:49 am »


               Well that is disapointing.
               
               

               
            

Legacy_Axe_Murderer

  • Full Member
  • ***
  • Posts: 199
  • Karma: +0/-0
Item Use
« Reply #4 on: July 17, 2011, 01:34:55 pm »


               If it's just one item you could use the player tools hook. Or maybe the chat hook. So instead of using the item they speak a magic command word or use a player tool.
               
               

               
            

Legacy_Sydious

  • Full Member
  • ***
  • Posts: 116
  • Karma: +0/-0
Item Use
« Reply #5 on: July 18, 2011, 02:48:18 am »


               Im not sure what you mean by player tool hook? (Sorry for the ignorance)'Image
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Item Use
« Reply #6 on: July 18, 2011, 03:09:49 am »


               Player tool - NWNWiki, the Neverwinter Nights Wiki - your guide to ...
               
               

               
            

Legacy_zunath

  • Full Member
  • ***
  • Posts: 152
  • Karma: +0/-0
Item Use
« Reply #7 on: July 18, 2011, 06:13:42 am »


               

Lightfoot8 wrote...

You would have to remove the animation from the entry for the spell in spells.2da

I think that entry is used by the client.  So after modifying the 2da you would need to place it into a hak and attach it to the module.   If it is used in On-Line play you would need to make sure all of your players had a copy of the hak.


I can't seem to get this to work. I've put the CastTime to 0, set the CastAnim to "out", and ConjTime to 0 but the animation still plays and there's still a six second delay between uses.

Any ideas?
               
               

               
            

Legacy_Axe_Murderer

  • Full Member
  • ***
  • Posts: 199
  • Karma: +0/-0
Item Use
« Reply #8 on: July 18, 2011, 07:49:52 am »


               

zunath wrote...

Lightfoot8 wrote...

You would have to remove the animation from the entry for the spell in spells.2da

I think that entry is used by the client. So after modifying the 2da you would need to place it into a hak and attach it to the module. If it is used in On-Line play you would need to make sure all of your players had a copy of the hak.


I can't seem to get this to work. I've put the CastTime to 0, set the CastAnim to "out", and ConjTime to 0 but the animation still plays and there's still a six second delay between uses.

Any ideas?


That's because the spell animations are not used for item activation. It's been awhile but I'm fairly certain that you won't find the animation in spells.2da since it isn't technically a spell so the ones in there are ignored for this. In fact, all the activate item spells have no animation set up in there anyway (the xVisual columns are all set to **** which means none). It's generated automatically and every time by the engine internally I believe, and you cannot disable it using 2das IIRC. One of those NWNX add-ons probably has a way to do it I imagine.
               
               

               


                     Modifié par Axe_Murderer, 18 juillet 2011 - 06:51 .
                     
                  


            

Legacy_Sydious

  • Full Member
  • ***
  • Posts: 116
  • Karma: +0/-0
Item Use
« Reply #9 on: July 18, 2011, 03:24:42 pm »


               

Lightfoot8 wrote...

Player tool - NWNWiki, the Neverwinter Nights Wiki - your guide to ...


Learn something evey day. Thanks Lightfoot8.
               
               

               
            

Legacy_zunath

  • Full Member
  • ***
  • Posts: 152
  • Karma: +0/-0
Item Use
« Reply #10 on: July 18, 2011, 04:03:34 pm »


               

That's because the spell animations are not used for item activation. It's been awhile but I'm fairly certain that you won't find the animation in spells.2da since it isn't technically a spell so the ones in there are ignored for this. In fact, all the activate item spells have no animation set up in there anyway (the xVisual columns are all set to **** which means none). It's generated automatically and every time by the engine internally I believe, and you cannot disable it using 2das IIRC. One of those NWNX add-ons probably has a way to do it I imagine.


Ok, for some reason I thought I  remembered it being pretty finicky to do it without NWNX.

As far as I know, though, the bypass function doesn't exist in the windows version of NWNX_Events. I've only ever seen/used it in the LInux version.

Does anyone know if it's been ported?