Attribute confers a bonus or penalty

Assignment Help Basic Computer Science
Reference no: EM13936859

This assignment is an extension of the Workshops you have been doing all semester.

Design and Implement a character generator for a game. It should have the following specifications:
· The program should ask for a Level.
· The program should offer a selection of Classes or Professions to choose from and accept a choice.
· The program should then offer a variety of methods of generating the attributes
o The attributes should be: Str, Dex, Con, Int, Wis, and Cha
o The program should offer a selection of methods of generation such as:

§ Entering the attributes directly
§ Roll 4d6 and discard the lowest value.
§ Roll 4d6 and discard the lowest value and if the attribute is 16 or higher, add the value of an additional 1d6.
§ Roll Method IX:

· Each class should weight each attribute from most to least important. In Method IX, the most important attribute rolls 9d6 and keeps the highest 3. The second most important rolls 8d6, keeping the highest 3. This follows in this pattern of 7d6, then 6d6, then 5d6 and finally 4d6 for the least important.

· Each attribute confers a bonus or penalty. Through the Workshops you should have deduced that the pattern for the bonuses follows the formula y = (x/2)-5.

· Once the attributes have been rolled, calculate the hitpoints for the character. This should be the total value of 1 hitdice rolled and combined with the Con bonus (either positive or negative) for each level. If the Con bonus is negative, your program should ensure that the minimum value for every level is 1. (You cannot have 0 or a negative number for any level).

· Present the values generated as one set and either allow the user to accept or discard (and regenerate) the attributes. The program should remember the values entered for Level and Class/Profession

· Once a set of attributes has been accepted, you should allow the user to select skills.
o Each Class/Profession should get a different number of skill-points per level.
o The number of skill-points a character has should be the number of skill-points the Class/Profession grants combined with the Int bonus. If the Int bonus is negative this should be a minimum of 1 skill-point for each level. The first level should get 4 times the number of skill-points but only the first level!
o Each skill should have a maximum number of skill-points allocated to it of Level + 3.

· Once all skill-points have been spent, calculate the following:
o Base Attack Bonus (BAB). This is something determined by Class/Profession (as in there should be a difference between classes) and should be one of the following:
§ For combat orientated Classes/Professions: BAB = Level
§ Classes/Professions you think are average at combat: BAB = (Level*3)/4
§ Classes/Professions you think are combat adverse: BAB = Level/2
o Combat and Damage should be BAB + Str bonus and Str bonus respectively.

· Ask for and accept a character name

· Display all the information neatly. The character name and level, all attributes and bonuses, hit-points, base attack bonus, combat and damage bonus and all selected skills (with number of skill points).

· Offer the option of saving the character to a file (and actually save it if requested) before making a new character or quitting.

· Classes/Professions and Skills should be stored in files and read in at runtime.

Bonus XP (note: NOT marks): 1) Add point buy for stats! (may require some Google time). 2) Add save bonuses! (may require Google time).
NOTE: The Workshops have been working up to this point to provide you with a base program of your own work that should give you the best possible opportunity for completing this assignment. You should look to how these Workshops have developed your work for a guide on how to structure your final assessment.

Reference no: EM13936859

Questions Cloud

Concepts of sct to an environmental health behavior : For this Discussion, you apply the concepts of SCT to an environmental health behavior. You may choose one of these examples or your own topic: recycling; responsible energy use (e.g., compact fluorescent [CFL]/light-emitting diode [LED] lightbulb..
Briefly described the product purchased : 1) Briefly described the product purchased. For example, what was the model, any special features, exact cost, etc.
Design and run a program that takes a numerical score : In this program, create two void functions titled getScore and printGrade with an int argument. The function getScore should have a Reference parameter and printGrade should have a Value parameter.
Managerial decision making research and analysis : Research a specific company of your choice and identify some of the managerial decisions that were made over time and in response to changes in its market or competitive environment. Use the Ashford University Library and web-based sources for your r..
Attribute confers a bonus or penalty : Each class should weight each attribute from most to least important. In Method IX, the most important attribute rolls 9d6 and keeps the highest 3. The second most important rolls 8d6, keeping the highest 3. This follows in this pattern of 7d6, th..
Calculate changes costs if he purchases paper from papyrus : Calculate changes costs if he purchases paper from (a) Papyrus and (b) Suffolk Leaves. Which supplier should Manraj choose only on the basis of the financial numbers given in the problem?
Program to modify double linked list : Modify Double Linked List code to include following index based access operations.
Summary of the main points of the article : Find an article on the macro economy (inflation, employment, economic growth). Write a 250 word summary of the main points of the article
Zone of acceptance for a product or category : In what way might deal sites affect the zone of acceptance for a product or category? What are the implications for marketers?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a function to draw each figure

Need working c program code for a program that has the ability to draw patterns of characters on the output terminal that will show a solid square, a hollow box or a solid isosceles triangle provided the character to draw with the # of rows.

  What would you recommend to meet your company needs

Your company wants to implement a strategy for backing up network data. It wants a strategy that allows it to back up changed files on a daily basis and recover lost files quickly in the event of disk failure. What would you recommend to meet your..

  Calculate the amount of salary received for each employee

Calculate the amount of salary received for each employee

  What ports are found on the computer

What ports are found on the computer. What is the size of the monitor. Is it a touchscreen monitor

  Describe the general tree adt

Describe the General Tree ADT. Discuss different ways for implementing general trees, and compare them in terms of the efficiency of search operations.

  Discuss some of the emerging trends in information

discuss some of the emerging trends in information technology e.g. computer hardware software data analysis. what

  Write a function named celsius

Where F is the Fahrenheit temperature and c is the Celsius temperature. write a function named Celsius  that accepts a Fahrenheit temperature as an argument. The function should return the temperature, converted to Celsius. Demonstrate the function b..

  Represent processor demand in the time interval

Let the function D[i, j] represent processor demand in the time interval (i, j). Prove the following theorem.

  Computer science programming question

Critique this nightclub website using Jakob Nielsen's web design heuristics. This critique must not exceed 2 pages.

  Throughout this course you have been asked to research and

throughout this course you have been asked to research and respond to various ethical dilemmas and regulations that

  Whats the difference between public, private and protected

What's the difference between public, private and protected?

  Application of artificial intelligence what are application

what are application of artificial intelligence in different fields and also explain it? ltbrgtwhat are application of

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd