Visit the Ironworks Gaming Website Email the Webmaster Graphics Library Rules and Regulations Help Support Ironworks Forum with a Donation to Keep us Online - We rely totally on Donations from members Donation goal Meter

Ironworks Gaming Radio

Ironworks Gaming Forum

Go Back   Ironworks Gaming Forum > Ironworks Gaming Forums > Neverwinter Nights 1 & 2 Also SoU & HotU Forum

Reply
 
Thread Tools Search this Thread
Old 10-13-2002, 07:31 PM   #1
Willard
Fzoul Chembryl
 

Join Date: June 14, 2001
Location: Vermont
Age: 32
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]
__________________
Willard is offline   Reply With Quote
Old 10-13-2002, 07:34 PM   #2
Chewbacca
Zartan
 

Join Date: July 18, 2001
Location: America, On The Beautiful Earth
Age: 50
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?
Chewbacca is offline   Reply With Quote
Old 10-13-2002, 08:21 PM   #3
Willard
Fzoul Chembryl
 

Join Date: June 14, 2001
Location: Vermont
Age: 32
Posts: 1,752
It's at the end of a conversation, when the penguin goes to find some fish. [img]tongue.gif[/img]
__________________
Willard is offline   Reply With Quote
Old 10-13-2002, 11:55 PM   #4
Chewbacca
Zartan
 

Join Date: July 18, 2001
Location: America, On The Beautiful Earth
Age: 50
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?
Chewbacca is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:55 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved