I want you to create a text adventure game where you describe the scene and I am given…
- User
I want you to create a text adventure game where you describe the scene and I am given options of what to do. I want this game to be programed in html CSS and JavaScript so that it can be played on a browser. Please give the entire code This game will have 3 rooms for now Writing notes for game I will start at 18 years old mentally I am 18 years old physically I Weigh 155 lbs I have a height of 5' 9" my name is Erik Please keep the story as pg. as possible while preserving the previous parts In the top right hand corner I want these stats displayed at all times Name: Erik Age (physical): Var PAge Age (mental): Var MAge Height: Var Height in cm Weight: Var weight in lbs Inventory: (multiple variables using an array) (also allow me to do all actions with items from my inventory here for example being able to drink or drop potions or being able to equip equipment into a slot ) Mental traits: (multiple variables using an array) Physical traits: (multiple variables using an array) Clothing: (current clothing not sure how to track) HP: (Page * 3) + (equipment modifiers) Defence: (Page * 0.5) + (equipment modifiers) Attack: (Page * 1.5) + (equipment modifiers) Head equipment slot: hat Chest equipment slot: short sleave short Leg equipment slot: jeans Feet equipment slot: shoes In the top left hand corner I want all of these listed. The description of the room The description and names of any interactive items (also the ability to use those items from here) make the code so I can make consumable items, storage boxes and rooms like this and then update the items to work within the new system also make the physical age regression potion work and keep as much other functionality as possible const daycareroom = { name: “daycare” class: room north: elementary class room south: wall east: playroom west: wall interactive items: storage box (daycare) description: this is the room you spawn in please explore the two other rooms in this test }; const classroom= { name: “classroom” class: room north: wall south: daycare east: wall west: wall interactive items: N/A description: this is the classroom }; Const playroom= { Name: “playroom” North: wall South: wall East: wall West: daycare Interactive items: N/A Description: a normal play room };
codeconst mentalAgePotion = { name: "Mental Age Regression Potion", class: "Consumable", type: "1 use", effect when used : "-1 var MAge", description: "A potion that regresses the drinker's mental age.", };Const BattleArmor (chest) = { name: "Battle Armor", class: "Equipment", type: "chest", effect when worn: "-1 var PAge +5 var Attack", description: "A Armor that while wearing will reduce the wearers age by 1 year but give +5 atk", }; Please create the code so that storage box can be accessed from the corresponding room in the location allowing you to see it inventory when open and not being able to see its inventory when closed using this code. This code needs to work with anything that is class: storage keep in mind some rooms will have multiple storage boxes and others will have none also make it so when when there is a storage box within the room a button will appear Const StorageBox(Daycare)= { Name: storage box (daycare) Class: storage Inverntory: [Mental Age Regression Potion, Battle Armor ], Location: daycare Description for room (open) : There is a cute open playful box in the corner Description for room (closed): There is a cute closed playful box in the corner }; Const StorageBox(playroom)= { Name: storage box (playroom) Class: storage Inventory: [empty] Location: playroom Description for room (open): an open empty box Description for room (closed): a closed box }; I also want to be able to spawn creatures with this format Const testMonster(classroom)={ Name: bottle monster Stats : { HP=20: Attack = 5: defence = 5:} Attacks: { Attack 1: { name: bottle slam Effect: (-1) – (Attack stat) Targets: player Description: in this attack the bottle rams into the player } Attack 2: { name: bottle rush Effect: (-1) – (Attack stat) Targets: player Description: the bottle rushes at the player hitting there guts } } Location: classroom Spawn conditions: first time only }
- Assistant
- User
- Assistant