Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Notepad++ *Everything should work from the command line when finished, do not use html* Create a new file named god_among_us_30.js -We originally created multiple

Use Notepad++

*Everything should work from the command line when finished, do not use html*

Create a new file named god_among_us_30.js

-We originally created multiple variables to store our addditional adventurers that our leader travels with. Modify the adventurers variable to hold an array. Initialize the adventurers with six made up characters for your storyline. They can all be string names for now. Go back and modify your games introduction to display all the names of the adventures in the storyline. Use the array values for this, not hardcoded strings.

-Create an array to store the inventory our leader will have available to them. Initialize it with atleast one item. The leader should only be able to carry a maximum of 5 items.

-Last week, we created four options in the storyline for the user to choose from. This week modify atleast 2 of those options to give the user an additional item. The display should give the user the following choices:

a. Display Inventory( This option should display all the items in the users inventory) b. Pick up Item If they do not have more than 5 already. If the leader has more than 5 items, ask them if they would like to trade for the new item. If so, switch the items.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago