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

  Artificial intelligence systems form a broad

Artificial intelligence systems form a broad and diverse set of systems that can replicate human decision making for certain types of well-defined problems.

  Routine and standardized and chaotic is a major challenge

Keeping professionals excited about work that is routine and standardized and chaotic is a major challenge for Vincent Weafer. How could he use technical, human, and conceptual skills to maintain an environment that encourages innovation and pr..

  Use any method to prove the following either true or false

any method to prove the following either true or false. you must show all work: YZ+XYZ'+X'Y'Z'=XY+X'Z

  Which interarrival time gives the maximum throughput

Which interarrival time gives the maximum throughput?

  In three sentences describe games you play on your computer

In three sentences describe some of the games you play on your computer. Explain when and why you play the games. (2) If you do not play games, describe the other things you do on your computer

  What is the paintcomponent method

Describe the types of information available to a program when using the KeyListener interface.

  Explain why do you think that so much of the software which

why do you think that so much of the software that ran on large-scale computers was custom written by programmers

  Justify the importance of validation

1. Analyze the purpose of validating forensic data and determine why this is a necessary component of the investigation and analysis process. 2. As a system forensics manager, justify the importance of validation and determine the best method to use.

  An increase in consumer confidence raises consumers

Suppose that an increase in consumer confidence raises consumers' expectations about their future income and thus increases the amount they want to consume today. This might be interpreted as an upward shift in the consumption function. How does this..

  Compare and contrast between make-to-stock and make-to-order

Write your own personal statement or comment with the essay below with each question.1. Compare and contrast between make-to-stock and make-to-order systems. In your comparison, why does each system require different types of contracts?

  Write assembly code that computes average

Using MARS, write Assembly code (for RISC) that computes average of list of mideterm test scores in #  freshman ENGR121 class and return in $v0.

  Estimate maximum aggregate i-o transfer rate in system

Estimate the maximum aggregate I/O transfer rate in this system. Hint: Only one device at a time can be serviced on a selector channel.

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