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.)

+ Post Working Scripts Here! +

Discussion in 'Neverwinter Nights (Classic)' started by Errol, Jul 11, 2002.

  1. Errol Gems: 23/31
    Latest gem: Black Opal


    Joined:
    Oct 23, 2001
    Messages:
    1,547
    Likes Received:
    0
    Gender:
    Male
    [​IMG] (With Permission)
    This is a Topic where you can post all your NWN scripts, that work. They should be entered as such:
    Type of Script: say what kind of script it is. eg. Combat Script, Action script, etc.
    What it Does: What does it do? Does it make NPC's walk around? Does it make the AI better? Does it do anything to help quests? etc.
    The Script: post the main script here, it could be written in Code. (the little '#' button.

    My Script:
    Healing
    Makes an object which heals you to full Hp
    The Script (copy the whole thing)

    /Start Script
    /Put this script in the OnUsed script section
    /Fountains and other objects are perfect for this
    void main()
    {
    object oUser;
    effect eHeal;
    effect eHealVis = EffectVisualEffect(VFX_IMP_HEALING_S);
    int nCurrentHitPoints, nMaxHitPoints, nVisualEffectId;
    oUser = GetLastUsedBy();
    nMaxHitPoints = GetMaxHitPoints(oUser);
    nCurrentHitPoints = GetCurrentHitPoints(oUser);
    if ( nCurrentHitPoints < nMaxHitPoints )
    {
    eHeal = EffectHeal(nMaxHitPoints - nCurrentHitPoints);
    ApplyEffectToObject( DURATION_TYPE_INSTANT, eHeal, oUser );
    ApplyEffectToObject( DURATION_TYPE_INSTANT, eHealVis, oUser );
    }
    }
    /End of Script

    Please only post working scripts, and
    if you find it doesn't work, please
    come back and change it.
    Thanks.
    :)

    [This message has been edited by Gopher (edited July 11, 2002).]
     
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.