![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1 |
Fzoul Chembryl
![]() ![]() ![]() ![]() Join Date: June 14, 2001
Location: Vermont
Age: 33
Posts: 1,752
|
How do you script an NPC to walk away and disappear? I have tried and tried to make the penguin go away, but it won't do it! [img]graemlins/1pissed.gif[/img] [img]graemlins/awcrap.gif[/img]
__________________
![]() |
![]() |
![]() |
![]() |
#2 |
Zartan
![]() Join Date: July 18, 2001
Location: America, On The Beautiful Earth
Age: 51
Posts: 5,373
|
What fires the event? Is it the end of a conversation or when a player enters a certain area?
__________________
Support Local Music and Record Stores! Got Liberty? |
![]() |
![]() |
![]() |
#3 |
Fzoul Chembryl
![]() ![]() ![]() ![]() Join Date: June 14, 2001
Location: Vermont
Age: 33
Posts: 1,752
|
It's at the end of a conversation, when the penguin goes to find some fish. [img]tongue.gif[/img]
__________________
![]() |
![]() |
![]() |
![]() |
#4 |
Zartan
![]() Join Date: July 18, 2001
Location: America, On The Beautiful Earth
Age: 51
Posts: 5,373
|
Place this script in the end of conversation event found in the conversation editor under the current file tab.
This script will cause a penguin to move to a waypoint with the tag "fishinghole" and disappear in 20 seconds after the end of it's conversation. You can change the time before disappearing by editing the value of the number in the last line. One known issue is the destination waypoint must be in a fairly straight line from the place the script fires due to NWN lack of pathfinding. So make a new waypoint with the tag fishinghole and place it where you want the penguin to go and disappear. You may have to tweak the delay before disappearance to suit your needs. Please reply if you have any problems as I have yet to test this particular script myself, though I have successfully executed this process several times in my current module endeavor. My NWN PC is rendering a Bryce animation and doesn't want to be disturbed. [img]smile.gif[/img] I will test it myself when it is done. Goodluck! Here is the script: // // void main() { object oWP = GetObjectByTag("fishinghole"); //Define destination waypoint location lDest = GetLocation(oWP);// Define location of destination waypoint ActionMoveToLocation(lDest, FALSE); // move to destination waypoint DestroyObject(OBJECT_SELF, 20.0); //Disappear after 20 seconds } [ 10-14-2002, 12:10 AM: Message edited by: Chewbacca ]
__________________
Support Local Music and Record Stores! Got Liberty? |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
The Toolset and scripting question. | Stratos | Neverwinter Nights 1 & 2 Also SoU & HotU Forum | 3 | 11-30-2003 09:54 AM |
Scripting question | Granamere | Neverwinter Nights 1 & 2 Also SoU & HotU Forum | 1 | 10-21-2003 01:47 PM |
Scripting question | Dreamer128 | Neverwinter Nights 1 & 2 Also SoU & HotU Forum | 3 | 08-05-2002 12:31 PM |
Scripting question: Converting an Elf to a Drow | Nanobyte | Baldurs Gate & Tales of the Sword Coast | 11 | 07-11-2001 10:02 PM |
AI scripting | Sharak | Baldurs Gate & Tales of the Sword Coast | 0 | 11-28-2000 07:10 PM |