Dispatches From Neverwinter

A journal of my progress as I (attempt to) learn how to build modules for Neverwinter Nights.

Name:
Location: United States

Started playing Neverwinter Nights back in November '05 and got hooked. Tried to write my own module, but I just didn't have the time. Maybe I'll try again someday.

Friday, August 18, 2006

A Valuable Lesson

Last night I learned that when I'm trying to get a script that's supposed to fire in the OnEnter event of the area to work, it helps if I actually put the script in the OnEnter event.

Just did a bit of clean-up last night: deleted all the unnecessary NPCs from the palette and then repopulated the area using copies from one blueprint. Added a script for the journal entry, and edited that entry to make it more concise. I may have solved the SetCameraMode issue by using a trigger, but I can't be sure without more testing, since beforehand it was only sometimes dropping into chasecam mode. I was about to change the peasant conversations from a one-liner to a random selection of one-liners, when I realized that the changes I made to the story means they probably aren't necessary. Well, strictly speaking I should have them say one line after the battle and a different line once they start walking, but that's too much work for something that probably won't come up.

I couldn't get a script using OBJECT_SELF to compile last night, but it turns out that may just be a quirk, since the script is working for other people who tested it. Also, I broke down and asked for a script that would count the NPCs left alive and then award XP based on that number. Someone responded, and now having seen the script, there's no way I would have figured it out on my own.

0 Comments:

Post a Comment

<< Home