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 27, 2003.

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


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

    Here are today's Neverwinter Nights forum highlights. 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.

    Georg Zoeller, Designer

    Random Location: Not the most simple thing to ask for:

    Here is what I would do. Measure the dimension of an area in on x and y, then generate a random point between these constraints and try to create an object (i.e. waypoing) there. If it is successful, use GetLocation on the object to make sure it is valid (and to find out at which location it was really created)


    Quote: so there is no way to give a PC a level without calculating the Xp required to get to the next lvl???

    I am not sure what you want to achieve:

    if you...want to level up the PC one level, using the standard skill and feat choises of his package, calling LevelUpHenchman(oPC) once will do fine... you want to give him enough XP to get the next level but allow him to pick feats and skills for himself, you can use this script

    void GiveNextLevel(object oPC)
    {
    int nHD = GetHitDice(oPC)+1;
    int nXPNew = ((nHD * (nHD -1)) / 2) * 1000;
    SetXP(oPC, nXPNew);
    }

    I think it should work with prestige classes, but I am not sure about that as I never tried to do that.

    - Your character meets all prerequisites for the prestige class at the given level
    - It started with a standard package (i.e. fighter) at level 1
    - You pass in a CLASS_TYPE_* that matches to a valid prestige class into the command
    - That the character's skills and feats at the level you want to start the prestige classes are valid for his old class. For some reason LevelUpHenchman does not fail because of invalid skills immediately at level 1 but may level up until a certain level and start to fail then
     
    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.