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 News

Discussion in 'Game/SP News & Comments' started by NewsPro, Jul 13, 2004.

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


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

    Here are today's BioWare forum highlights, collected by NWVault. Please take into account that these are only single parts of various threads and should not be taken out of context. Bear in mind also that the posts presented here are copied as-is, and that any bad spelling and grammar does not get corrected on our end.

    Rob Bartel, Senior Designer

    DD and NWN itself?
    There has been discussion about it although we don't consider the issue to be particularly pressing at this point. From what I understand, Atari still has plans for further NWN retail SKUs so I suspect you'll still be finding NWN on store shelves in one form or another well into the future. If DD is still going strong but NWN and the various expansions are no longer available on store shelves, however, we may consider making it available for purchase through DD at that time. But that's still a ways in the future.

    Georg Zoeller, Designer

    Need help with AI scripts
    No need to rewrite the AI for that, you can hack it fairly fast using the Override AI feature

    a) Create an override AI script that runs on top of the original AI like the mindflayer ai (x2_ai_mflayer (?))
    b) In that script, perform a GetItemInSlot check to see if the amulet is equipped
    c) If it is equipped, have the NPC cast the associated spells using ActionCastSpell with the bCheat flag set to TRUE
    d) if not, fallback to default AI.

    More: For Hordes I modified the main NWN combat AI function (DetermineCombatRound in nw_i0_generic) to support additions or replacement scripts by specifying a variable on a creature:

    Check the "variables" page on the default mindflayer in the palette - he got a variable (forgot the name) set on him that points to x2_ai_mflayer(?) or so. This script is run every time the default combat AI kicks in to determine if he is able to use his brainsuck ability.

    In the same fashion you can create a script that determines if the creature has the amulet equipped and make it cast some spells using the cheat flag on ActionCastSpell (because you can't really make creatures use certain items directly in NWN).

    There's a demo creature availabe for download on my private webpage that demonstrates the feature: Click Here

    More:
    ---------------
    Georg, won't that always prioritize using the amulet over any other thing the NPC might be capable of doing? Edit: had another idea. You're assigning the item properties dynamically, right? Well, what if you put the properties on the NPC's hide?
    ---------------

    You can code it any way you want. You can have certain conditions for the amulet to kick in (i.e. below a certain amount of health, only every x rounds, etc, etc) or you can go crazy and replace DetermineCombatRound alltogether (like the beholder ai)
     
    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.