Author Topic: Which Function  (Read 378 times)

Legacy_Taino

  • Sr. Member
  • ****
  • Posts: 268
  • Karma: +0/-0
Which Function
« on: July 25, 2011, 01:37:38 am »


               Im trying to have a placeable be used; which once the resource has been taken and instead of having it disappear [DestroyObject]. I would rather have it go static. Do I use CopyObject or SetPlotFlag function?

Thanks in advance!!
               
               

               
            

Legacy__Knightmare_

  • Full Member
  • ***
  • Posts: 191
  • Karma: +0/-0
Which Function
« Reply #1 on: July 25, 2011, 01:41:14 am »


               EDIT: Nevermind it seems the function SetUseableFlag() is a NWN2 only function.
               
               

               


                     Modifié par _Knightmare_, 25 juillet 2011 - 12:42 .
                     
                  


            

Legacy_zunath

  • Full Member
  • ***
  • Posts: 152
  • Karma: +0/-0
Which Function
« Reply #2 on: July 25, 2011, 01:43:45 am »


               

_Knightmare_ wrote...

EDIT: Nevermind it seems the function SetUseableFlag() is a NWN2 only function.


SetUseableFlag is in NWN1 too. I don't think it goes static, but it'll remove its usability.
               
               

               


                     Modifié par zunath, 25 juillet 2011 - 12:44 .
                     
                  


            

Legacy_Taino

  • Sr. Member
  • ****
  • Posts: 268
  • Karma: +0/-0
Which Function
« Reply #3 on: July 25, 2011, 02:16:36 am »


               Yes SetUseableFlag is in NWN1.. The script already has the DestroyObject but I don't want the Object to that. I would rather have it go static instead.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Which Function
« Reply #4 on: July 25, 2011, 02:27:03 am »


               This is one of the points I am a little fuzzy on in NWN.  

My current understanding is that the only way to get a truly ststic placeable is to have it painted in the toolset.   Even if you create a ststic placable via script, I do not think it gets placed into the file that contains the static placables.  

Setting the placable as non-useable is about as good as you are going to be able to do once the game is running.   That is at least my current opinion.
               
               

               
            

Legacy_zunath

  • Full Member
  • ***
  • Posts: 152
  • Karma: +0/-0
Which Function
« Reply #5 on: July 25, 2011, 02:34:19 am »


               As far as I know, deleting the object and then creating a new one via script doesn't make it static. So the best you'll get is to use SetUseable to remove its useability (I.E: You won't be able to select it).

It accomplishes nearly the same thing though.

EDIT:  Lightfoot beat me to it '<img'>
               
               

               


                     Modifié par zunath, 25 juillet 2011 - 01:34 .
                     
                  


            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Which Function
« Reply #6 on: July 25, 2011, 03:18:48 am »


               

Lightfoot8 wrote...

This is one of the points I am a little fuzzy on in NWN.  

My current understanding is that the only way to get a truly ststic placeable is to have it painted in the toolset.   Even if you create a ststic placable via script, I do not think it gets placed into the file that contains the static placables.  

Setting the placable as non-useable is about as good as you are going to be able to do once the game is running.   That is at least my current opinion.


That's all correct - but SetUseable should suffice for just about anything you're doing - static vs nonuseable is typically irrelevant save for questions of load, where the difference is there, but small.

Funky
               
               

               
            

Legacy__Knightmare_

  • Full Member
  • ***
  • Posts: 191
  • Karma: +0/-0
Which Function
« Reply #7 on: July 25, 2011, 10:23:56 am »


               

zunath wrote...

_Knightmare_ wrote...

EDIT: Nevermind it seems the function SetUseableFlag() is a NWN2 only function.


SetUseableFlag is in NWN1 too.

Oh ok, that's good. I just looked through the Lexicon (online version) and didn't see it listed in there was all.
               
               

               
            

Legacy_Taino

  • Sr. Member
  • ****
  • Posts: 268
  • Karma: +0/-0
Which Function
« Reply #8 on: July 25, 2011, 01:07:53 pm »


               Ah, okay... Thanks
               
               

               
            

Legacy_zunath

  • Full Member
  • ***
  • Posts: 152
  • Karma: +0/-0
Which Function
« Reply #9 on: July 25, 2011, 01:48:07 pm »


               The online version of the Lexicon is out of date a little (but it's still a great reference!). I believe this one is the most up to date: http://nwvault.ign.c....Detail&id=1340