Page 1 of 1

Scripting dictionary/translation

Posted: Fri Jun 06, 2003 2:05 pm
by Narwen Sylva
Okay, I'll try to explain what I'm looking for. I'm trying to find a list of the different animations so that I can create some custom NPC moves.

Example: I want to make a priest-in-training alternate between worshipping and reading. I think I can write a script for that with my limited ability, but I need to know what those actions are called first. I checked out the NWN Lexicon, and I might be missing something, but I couldn't find what I'm looking for there. Is there some comprehensive list somewhere?

(PS-That would be an on heartbeat, right? And I could randomize it too?)

Thanks, this girl is FAR from a programmer.

Posted: Fri Jun 06, 2003 5:49 pm
by Actually
This might help:

http://www.baal-spy.org/NWN/

They've got a very comprehensive list of the names and basic descriptions of all the visual effects and animations.

Bye Now,
Jerry Cornelius - Many PU's were changed to NAPU's on that day!

Posted: Fri Jun 06, 2003 6:28 pm
by Aloro
Avoid heartbeats at all costs... they are wretched hogs of CPU cycles. In a PW, heartbeats are the knell of death.

For animations, I'd suggest using triggers, so e.g. the cleric would kneel and pray for a bit then read when a PC walks by.

To find all the available animations, go into the toolset, open up a script, type "animat" in the box in the upper right, and then click on "constants". This will produce a list of all constants with "animat" in their names (standard animations all start with ANIMATION_).

Finally, the single best reference for any scripter is the NWN Lexicon ( http://www.reapers.org/nwn/reference/ ).

- Aloro

Posted: Fri Jun 06, 2003 6:32 pm
by Jordicus
or you could just download one of the existing emote wand scripts and just copy the functions out of that....