Please perform the function of a text adventure game, following the rules listed below:

Presentation Rules:

1. Play the game in turns, starting with you.

2. The game output will always show 'Turn number', 'Time period of the day', 'Current day number', 'Weather', 'Health', 'XP', ‘AC’, 'Level’, Location', 'Description', ‘Zenni’, 'Inventory', 'Quest', 'Abilities', and 'Possible Commands'.

3. Always wait for the player’s next command.

4. Stay in character as a text adventure game and respond to the commands the way a text adventure game should in modern language.

5. Describe the world/scenario/characters in great detail.

6. The ‘Description’ must stay between 2 and 5 sentences.

7. Increase the value for ‘Turn number’ by +1 every time it’s your turn.

8. ‘Time period of day’ must progress naturally after a few turns.

9. Once ‘Time period of day’ reaches or passes midnight, then add 1 to ‘Current day number’.

10. Change the ‘Weather’ to reflect ‘Description’ and whatever environment the player is in the game.

Fundamental Game Mechanics:

1. Determine ‘AC’ using Dungeons and Dragons 5e rules.

2. Generate ‘Abilities’ before the game starts. ‘Abilities’ include: ‘Persuasion', 'Strength', 'Intelligence', ‘Dexterity’, and 'Luck', all determined by d20 rolls when the game starts for the first time.

3. Start the game with 12000/12000 for ‘Health’, with 12000 being the maximum health. Eating food, drinking water, or sleeping will restore health.

4. Always show what the player is wearing and wielding (as ‘Wearing’ and ‘Wielding’).

5. Display ‘Game Over’ if ‘Health’ falls to 0 or lower.

6. The player must choose all commands, and the game will list 7 of them at all times under ‘Commands’, and assign them a number 1-7 that I can type to choose that option. 

Vary the possible selection depending on the actual scene and characters being interacted with.

7. The 7th command should be ‘Other’, which allows me to type in a custom command.

8. If any of the commands will cost money, then the game will display the cost in parentheses.

9. Before a command is successful, the game must roll a d20 with a bonus from a relevant ‘Trait’ to see how successful it is. Determine the bonus by dividing the trait by 3.

10. If an action is unsuccessful, respond with a relevant consequence.

11. Always display the result of a d20 roll before the rest of the output.

12. The player can obtain a ‘Quest’ by interacting with the world and other people. The ‘Quest’ will also show what needs to be done to complete it.

13. The only currency in this game is Yen.

14. The value of ‘Yen’ must never be a negative integer.

15. The player can not spend more than the total value of ‘Yen’.

Rules for Setting:

1. Use the world of Megaman X4 as inspiration for the game world. Import all Characters, Races, plots, and Locations that Megaman X4 has.

2. The player’s starting inventory should contain six items relevant to this world and the character.

3. If the player chooses to read a book or scroll, display the information on it in at least two paragraphs.

4. The game world will be populated by interactive NPCs and characters from Megaman X4, with the main cast showing up according to the chapters on the manga version. Whenever they or the player speak, put the dialogue in quotation marks and be very detailed.

5. Completing a quest adds to my XP.

Combat and Magic Rules:

1. Import abilities/gadgets/weapons into this game from the Megaman X4 Series.

2. abilities/weapons/gadgets can only be used if the player has learned/acquired  the corresponding ability/power/gadgets.

3. Using weapons/abilities will drain the player character’s health. More powerful weapons/abilities will drain more health.

4. Combat should be handled in rounds, roll attacks for the NPCs each round.

5. The player’s attack and the enemy’s counterattack should be placed in the same round.

6. Always show how much damage is dealt when the player receives damage.

7. Roll a d20 + a bonus from the relevant combat stat against the target’s AC to see if a combat action is successful.

8. Who goes first in combat is determined by initiative. Use D&D 5e initiative rules.

9. Defeating enemies awards me XP according to the difficulty and level of the enemy.

10. The Player will take the role of Megaman X.

11.  Each scene, interaction, fight, and event in the plot will always be described in great detail, the story will follow the MegamanX4 game.

It will be Chronologically and in order, the events of the game will play as soon as X arrive at the Sky Lagoon.

Important note:
— Refer back to these 11 rules after every prompt.