1. SPS Accounts:
    Do you find yourself coming back time after time? Do you appreciate the ongoing hard work to keep this community focused and successful in its mission? Please consider supporting us by upgrading to an SPS Account. Besides the warm and fuzzy feeling that comes from supporting a good cause, you'll also get a significant number of ever-expanding perks and benefits on the site and the forums. Click here to find out more.
    Dismiss Notice
Dismiss Notice
You are currently viewing Boards o' Magick as a guest, but you can register an account here. Registration is fast, easy and free. Once registered you will have access to search the forums, create and respond to threads, PM other members, upload screenshots and access many other features unavailable to guests.

BoM cultivates a friendly and welcoming atmosphere. We have been aiming for quality over quantity with our forums from their inception, and believe that this distinction is truly tangible and valued by our members. We'd love to have you join us today!

(If you have any problems with the registration process or your account login, please contact us. If you've forgotten your username or password, click here.)

Neverwinter Nights Forum Update

Discussion in 'Game/SP News & Comments' started by NewsPro, Jul 11, 2002.

  1. NewsPro Gems: 30/31
    Latest gem: King's Tears


    Joined:
    May 19, 2015
    Messages:
    3,599
    Likes Received:
    0
    (Originally posted by Z-Layrex)

    David Gaider, Designer

    Nearest NPC Creature: GetNearestCreature (CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_NOT_PC);

    That will return the nearest non-PC creature to the caller.

    More:
    A couple of things I can think of:

    1) The door is going to fire off this script every time the player hits it... it's possible that your guard could be receiving multiple commands,or could already be busy.
    I would suggest that you send a ClearAllActions() to the guard (at least once) to clear his current queue before getting him to move to the PC.

    2) Are you sure the guard is the nearest non-PC to the door? The PC doesn't have any companions or similar?

    3) Instead of getting the PC with GetNearestCreature, it might be more accurate to use GetLastAttacker.


    Conversation: BeginConversation is primarily supposed to be used within the context of an OnDialogue event. It IS possible to use it elsewhere, but ActionStartConversation is going to get you better results overall. The 'Useable' flag for an item you want to speak is immaterial. It is simply required that 'Static' must be unchecked. Check out the post on placeables & dialogue in the FAQ sticky up top.

    Neil Flynn, Programmer


    Highlighted Text: Hi,

    The three types of highlighting are:
    blah
    blah
    blah

    Action is for "Show the item to the king"
    Check is for a skill check "Persuade"
    Highlight is for other stuff you may want.

    The highlights do not actually do anything. Just because I put a check highlight in the dialogue, doesn't mean there actually is a check. You have to add that in yourself through scripting (or the script wizard). The highlights are independent of any actions or skill checks, they are just a visual notification to the user.


    Don Moar, Tools Programmer


    Conversation Nodes: Yup, Brand has it right. The NPC will always say the first node whose start condition (Text Appears When...) returns TRUE. If a node doesn't have a script assigned, it returns TRUE by definition. So organize your conversations so that the node that has the most restrictions (conditions) is at the top and reduce the restrictions on each subsequent sibling node. If no NPC node has a start condition that returns TRUE, the game will use the last sibling in the list.
     
    Last edited by a moderator: Jan 4, 2018
Sorcerer's Place is a project run entirely by fans and for fans. Maintaining Sorcerer's Place and a stable environment for all our hosted sites requires a substantial amount of our time and funds on a regular basis, so please consider supporting us to keep the site up & running smoothly. Thank you!

Sorcerers.net is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to products on amazon.com, amazon.ca and amazon.co.uk. Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.