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

Don't know if it's been done or not

Discussion in 'Neverwinter Nights (Classic)' started by gersitar, Jan 30, 2003.

  1. gersitar Gems: 1/31
    Latest gem: Turquoise


    Joined:
    Jan 30, 2003
    Messages:
    10
    Likes Received:
    0
    For those that know a lot of code, I have a question, is it possible to create a random item with different variables? like in diablo 2?

    For example when a item appears in Diablo, the computer generates it based on randomly picking different properties. You could have a frost axe or a fire axe (the ice and fire are variables), except there is a lot more in diablo 2.

    If you know where someone did this already plz tell me. My e-mail is gersitar@hotmail.com or you can post it here. Thz!
     
  2. Thorin Gems: 9/31
    Latest gem: Iol


    Joined:
    Jan 3, 2002
    Messages:
    303
    Likes Received:
    0
    Thinking about the script... yes it would be possible. The downside is that the amount of code and effort to make it work would be amazingly hard.

    These are the steps you would have to start off with.

    1. Create every single item you want to be dropped in the toolset. so if you had 1 type of weapon and 2 effects and the weapon could get 2 effects, you would have to create.... 100 weapons

    2. you would have to create a new drop script for the monsters, that figures out the right drops for that level of PC, and the level of the creature

    3. You would have to create a random number roller, that can handle possible multiple enemies dying at once

    okay my ideas on the subject.

    1. The names of items are really important
    you could save a lot of time making your hashes by doing some good string minpulations instead

    2.you really have to figure when enchanted (+1 +2..)weapons drop, when normal weapons drop, when armour drops, and when junk drops. Than you have to figure if they wreck game balance.

    3. The code has to be tight code, as this script will be firing everytime you load a level, and trigger a encounter. So a script takes 3 secs to figure out the inventory of a guy, could mean some serious lag.

    4. Should the script make the items on the creatues on when they are created, or when they die. This really will not be known intill you see how long it takes the code to run

    You really should know your way around the nwn script program before you start trying this as you will have to edit creature scripts, for this thing to work at all.
     
  3. gersitar Gems: 1/31
    Latest gem: Turquoise


    Joined:
    Jan 30, 2003
    Messages:
    10
    Likes Received:
    0
    I was thinking that when you enter a room with a tresure chest, or when a creature dies
    I want the cpu to roll a 20 sided dice that will ave the following effects:
    1 trap
    2-10 no treasure
    11 healing potion
    12 other type of potion
    13-17 gold
    18-20 item

    however each of these selected will have it's own table for eg
    you get a 1(trap), the cpu will then determine by rolling another 20 sided dice to determine the type of trap.

    1-15 1-6 points of damage, reflex save for half
    16-19 1-4 points of damage time 1 per character level
    20+ gas which will roll another 6 sided dice and determine the damage
    1-2 1-4 damage
    3-4 1-6 damage
    5-6 2-8 damage
     
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.