Aller au contenu

Photo

Which Function


  • Veuillez vous connecter pour répondre
9 réponses à ce sujet

#1
Taino

Taino
  • Members
  • 139 messages
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!!

#2
_Knightmare_

_Knightmare_
  • Members
  • 643 messages
EDIT: Nevermind it seems the function SetUseableFlag() is a NWN2 only function.

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


#3
zunath

zunath
  • Members
  • 83 messages

_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 .


#4
Taino

Taino
  • Members
  • 139 messages
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.

#5
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
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.

#6
zunath

zunath
  • Members
  • 83 messages
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 :D

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


#7
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages

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

#8
_Knightmare_

_Knightmare_
  • Members
  • 643 messages

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.

#9
Taino

Taino
  • Members
  • 139 messages
Ah, okay... Thanks

#10
zunath

zunath
  • Members
  • 83 messages
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