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

Problems about a script

Discussion in 'Neverwinter Nights (Classic)' started by Daed, Dec 11, 2003.

  1. Daed Gems: 2/31
    Latest gem: Fire Agate


    Joined:
    Dec 11, 2003
    Messages:
    31
    Likes Received:
    0
    I have problem about a script,how can i make a NPC/Monster give me X xp points in the exact moment he dies {i kill him} ? Also,there is a way to make monsters give more XP point when we kill em? some kind of own choosed xp gain for each monster? Thanks you all in advance!
     
  2. Rotku

    Rotku I believe I can fly Veteran Pillars of Eternity SP Immortalizer (for helping immortalize Sorcerer's Place in the game!) New Server Contributor [2012] (for helping Sorcerer's Place lease a new, more powerful server!)

    Joined:
    Apr 13, 2003
    Messages:
    3,105
    Likes Received:
    35
    You can change the challenge rating of the monster, or I'm sure there is a way to increase the amount the module gives for killing indivdaul mosters.
     
  3. Daed Gems: 2/31
    Latest gem: Fire Agate


    Joined:
    Dec 11, 2003
    Messages:
    31
    Likes Received:
    0
    Yup increasing the challenge gives some xp bonus,it would be very nice if it was a way to make the game give you a choosed amount of xp points on a monster/character kill,lika a script put in the caracter properties,but i dont have half of an idea about how to make it
     
  4. Alavin

    Alavin If I wanted your view, I'd read your entrails Veteran

    Joined:
    Aug 26, 2003
    Messages:
    930
    Likes Received:
    0
    You can give an extra amount of exp by editing the OnDeath script. At the bottom, put in the line,

    object oKiller = GetLastKiller();
    GiveXPToCreature(oKiller, x);

    where x is the amount of exp you want to give. This should work, but I'm not a great scripter.
     
  5. Daed Gems: 2/31
    Latest gem: Fire Agate


    Joined:
    Dec 11, 2003
    Messages:
    31
    Likes Received:
    0
    Well,this is just a great tip Alavin! Thx a lot,gonna try it out

    edit: Yeah! It works! Thanx for the tip again :cool:

    [ December 14, 2003, 13:43: Message edited by: Daed ]
     
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.