Skip to main content
GameDev.net gamedev.net
🔒 Locked

Cplusplus: Project 1 ?

Started by J0Be Oct 4, 2007 at 5:37 AM 8 replies 2.9k views
Original Post
J0Be
J0Be
Hello ladies and gents, I was hoping that someone could help me out with the following, Ive been doing the C++ Workshop on my on tempo and I started on the first project, thing is, I'm confused and don't understand what is asked in the General Analysis phase and therefore asked this question in the appropriate C++ Workshop forum. Seeing as it is already a year ago since this workshop was started, it is difficult to get a question answered and therefore I ask it once again overhere.
Quote:
Hello gentlemen,
Quote:
3. If the user selects Purchase Equipment they will be shown a menu similar to that shown below. From this screen the user can opt to purchase either armor or weapons. Depending upon which submenu the user selects he will be shown a new menu listing the items available, their cost, and benefits. See the Armor and Weapons table below for information about what should be displayed and what items are available. The meaning of the fields in the tables below will be explained later. For now, just use it as a reference of what should be displayed in the item lists.
"listing the items available", is this related towards the level your character has and that only those weapons/armor is shown that you can buy? Or is everything shown in the weapon/armor menu, but only those which are available to you can be bought? If that is the case, how do I know what weapons/armor can be shown/bought?
I hope someone can help me out here. Thanks in advance. J0Be. The link to Project 1: Cplusplus Project 1
CipherCraft
CipherCraft
If I only read what you supplied, then I think I'd like to see a list of items/objects that fit my level and that I can actually buy costwise. All other stuff would be distracting and result in lots of scrolling past items I can't handle or can't afford in the first place.

hth,
CipherCraft
monsterenergy
monsterenergy
/
 int select;main(){  cout>> "Please select from the following"<</n         "1.] select this menu1"         "2.] select this menu2";  cin<< select;int a = select;while (a<3 && a>0){ switch (a) {   case: 1 Menu1();   break;   case2: menu2();   break;} return 0;}
J0Be
J0Be
Hi guys,

Thanks for the offered help,

@CipherCraft,

Quote:
...,then I think I'd like to see a list of items/objects that fit my level and that I can actually buy costwise.

That solved a portion of my question, the problem though is that I do not know what should be shown and what not at what level ! The lists are the following:

Quote:

Table 3.1 - Weapons
Unarmed Strike 1d3 (20/x2)
Brass Knuckles 1d4 (20/x2) 1g
Dagger 1d4 (19-20/x2) 2g
Mace 1d6 (20/x2) 5g
Handaxe 1d6 (20/x3) 6g
Shortsword 1d6 (19-20/x2) 6.5g
Scimitar 1d6 (18-20/x2) 7g
Morningstar 1d8 (20/x2) 8g
Spear 1d8 (20/x3) 9g
Longsword 1d8 (19-20/x2) 9.5g
Greatclub 1d10 (20/x2) 11g
Halberd 1d10 (20/x3) 12g
Bastard Sword 1d10 (19-20/x2) 12.5g
Greataxe 1d12 (20/x3) 16.0g
Greatsword 2d6 (19-20/x2) 20.0g

Quote:

Table 3.2 - Armor
Unarmored AC: +0 Max Dex: INF
Padded Armor AC: +1 Max Dex: +8 5g
Leather Armor AC: +2 Max Dex: +6 10g
Hide Armor AC: +3 Max Dex: +4 15g
Studded Leather AC: +3 Max Dex: +5 25g
Scale Mail AC: +4 Max Dex: +3 50g
Chain Shirt AC: +4 Max Dex: +4 100g
Chainmail AC: +5 Max Dex: +2 150g
Breastplate AC: +5 Max Dex: +3 200g
Splint Mail AC: +6 Max Dex: +0 225g
Banded Mail AC: +6 Max Dex: +1 250g
Half-Plate AC: +7 Max Dex: +0 600g
Full Plate AC: +8 Max Dex: +1 1000g


How do I determine what needs to be shown at what level? As said, I'm not asking for code, I'll write that myself, I need some help in explaining what needs to be shown at what level?

Also,
1d3 = 1d3 stands for 1 dice with the max.value of 3, I think?
(20/x2) = have no idea?
AC = Armor Check.
Max Dex = Maximum Dexterity.

@monsterenergy,

I don't need to know the code, I'm looking for an explanation on how to comprehend the analysis, thanks for the offered help though.
Captain P
Captain P
Sounds like he means all the items that are available in the list he offered, not the items that you can wear or afford. However, it's no big deal. Just choose what you want to be displayed and move on. :)
monsterenergy
monsterenergy
(19-20/x2) Is this the amount of damage per level the item has?
RuneKatana
RuneKatana
Rawr, something I can actually help out with.

This system must be based on D&D rules.

What you're looking at is the threat range for a critical strike followed by a damage multiplier.

19-20x2 means that on a natural die roll of 19 or 20 (on a 20 sided die), it's crit threat. To determine if it's actually a crit, a d20 is rolled again. If the die roll would hit the opponent's AC, then it is a crit, and does x2 damage.

Weapons listed with just 20 only crit on a natural 20.

AC means Armor Class (the number you have to roll equal to or greater than to hit).

As far as d3, yes, that's a die with 3 sides, which doesn't really exist. You just take a d6 and make it 1-2 = 1, 3-4 = 2, 5-6 = 3.

The number after the weapon name is dice roll for the damage it does (d3, d4, d6, d8, etc).
J0Be
J0Be
Good evening gentlemen,

@ Captain P,
Thanks, guess I'll just show everything in a list that is mentioned in the analysis then.

@ RuneKatana,

Quote:
19-20x2 means that on a natural die roll of 19 or 20 (on a 20 sided die), it's crit threat. To determine if it's actually a crit, a d20 is rolled again. If the die roll would hit the opponent's AC, then it is a crit, and does x2 damage.


So, I understand this, if you roll (srand and rand used) 19 or 20, you get a second chance to roll again. Am I correct that if the second roll has a value equal or higher then the opponent's Armor Check, the value you first rolled is doubled?

Quote:
Weapons listed with just 20 only crit on a natural 20.

I'm confused about this? Do you mean the values like this "Spear 1d8 (20/x3) 9g" ?

Quote:
AC means Armor Class (the number you have to roll equal to or greater than to hit).

So, any value lower then the AC value means you have no hit, correct?

Quote:
As far as d3, yes, that's a die with 3 sides, which doesn't really exist. You just take a d6 and make it 1-2 = 1, 3-4 = 2, 5-6 = 3.

I'll just take a rand of a value from 0 to 2 + 1.

Quote:
The number after the weapon name is dice roll for the damage it does (d3
, d4, d6, d8, etc).

Got that.

@monsterenergy,
Not per level, but depending on the armor you or the opponent has in my opinion.

[Edited by - J0Be on October 4, 2007 4:18:15 PM]
RuneKatana
RuneKatana
Quote:

So, I understand this, if you roll (srand and rand used) 19 or 20, you get a second chance to roll again. Am I correct that if the second roll has a value equal or higher then the opponent's Armor Check, the value you first rolled is doubled?

Actually, I communicated wrong. The number of dice is doubled (or tripled as each weapon dictates) So if the spear did indeed crit, 2d8 would be rolled, rather than taking 1d8x2.

Quote:

I'm confused about this? Do you mean the values like this "Spear 1d8 (20/x3) 9g" ?

Right. That only crits on a natural 20, and damage dice are tripled. (3d8 instead of 1d8)

Quote:

So, any value lower then the AC value means you have no hit, correct?

Correct.

It should be noted that rolls only threat a crit on the "natural" die roll, ie: the number that shows on the die.

Say a character has +10 to hit (bonuses can come from a variety of places). If the value rolled is a 10, it's not a critical threat even though the bonuses add up to 20. It has to be a 20 on the "natural" die roll.

Also, regardless of being a crit, a natural 20 roll is always considered a hit, while a natural 1 is always considered a miss.

To do more research on any of the logic behind the games mechanics, check out the hypertext system reference doc: http://www.d20srd.org/index.htm
J0Be
J0Be
Quote:
Original post by RuneKatana
Actually, I communicated wrong. The number of dice is doubled (or tripled as each weapon dictates) So if the spear did indeed crit, 2d8 would be rolled, rather than taking 1d8x2.

You know, I'm really confused now, if you look at the "Unarmed Strike" with the following values 1d3 (20/x2) I understand that the 1d equals the amount of dices you use/have, the 3 is the maximum value you can have starting from 1 to 3. But then???

(20/x2) If I understand this correctly now, it means, that when you "roll" 20, you multiply this value by two? But, how can your roll 20, when your dice has a maximum value of 3? Or is this related towards the bonuses you have to add to this ?

Quote:
It has to be a 20 on the "natural" die roll.

This is what I have trouble with in understanding?

Quote:
To do more research on any of the logic behind the games mechanics, check out the hypertext system reference doc: http://www.d20srd.org/index.htm

Thanks for the link, but, there is so much information there, it's hard to know where to look.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.