Scripting dictionary/translation

Moderator: Event DM

Post Reply
Narwen Sylva
Knight of Useless Drivel
Posts: 53
Joined: Wed Jan 15, 2003 4:03 pm
Location: NYC

Scripting dictionary/translation

Post by Narwen Sylva » Fri Jun 06, 2003 2:05 pm

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.
Actually
Sage
Posts: 1823
Joined: Sat Dec 14, 2002 10:11 pm
Location: Red Zone: Cuba

Post by Actually » Fri Jun 06, 2003 5:49 pm

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!
User avatar
Aloro
Team Member; Retired with Honors
Posts: 12805
Joined: Sat Dec 28, 2002 5:11 am
Location: Rainbow's End
Contact:

Post by Aloro » Fri Jun 06, 2003 6:28 pm

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
User avatar
Jordicus
Team Member; Retired with Honors
Posts: 8042
Joined: Tue Jan 21, 2003 3:46 pm
Location: Whitehall, PA (GMT -4)
Contact:

Post by Jordicus » Fri Jun 06, 2003 6:32 pm

or you could just download one of the existing emote wand scripts and just copy the functions out of that....
Post Reply