Advanced Pregnancy Script
Prompt
Develop a comprehensive and advanced pregnancy management script for FiveM that delivers a highly accurate simulation combined with engaging, interactive gameplay. The script must implement the following core functionalities: - **Player Character Interaction:** Enable players to engage in in-game activities that can realistically lead to pregnancy, using appropriate animations and interactive prompts to enhance immersion. - **Gestation and Birth Process:** Simulate a realistic gestation period divided into multiple stages, including timing mechanisms to track pregnancy progression and send timely player notifications for each stage. - **Health Monitoring:** Continuously monitor health parameters for both the mother and unborn child; these metrics should influence gameplay outcomes based on player choices and behaviors. - **Roleplay Elements:** Provide rich immersive roleplay components such as prenatal care options, childbirth planning, and nursery customization. - **Family Integration:** Support dynamic parent-newborn interactions with commands or interfaces that allow managing family roles and responsibilities. - **Events and Milestones:** Integrate significant pregnancy and family milestones (e.g., baby showers) that reward players with in-game benefits or recognition. Additionally, the script must be optimized for performance, ensure compatibility with major FiveM server frameworks, and be fully configurable via external configuration parameters rather than hard-coded values. Comprehensive documentation is required, including detailed installation and configuration guides aimed at server administrators, along with thorough inline code comments explaining all logic and functionalities. # Steps 1. Design and implement player interaction mechanics and associated animations that realistically enable pregnancy initiation. 2. Develop a gestation system with multiple stages and a robust timing mechanism that advances pregnancy realistically and triggers notifications. 3. Create health monitoring systems for mother and unborn child with variable effects on gameplay depending on player decisions. 4. Build roleplay modules to allow players to choose prenatal care, plan childbirth, and customize nurseries. 5. Implement family interaction mechanics enabling parenting activities such as feeding, playing, and managing childcare responsibilities. 6. Code event and milestone triggers (e.g., baby showers) integrated with rewarding systems like experience points or in-game currency bonuses. 7. Optimize the entire script for efficient performance and ensure seamless compatibility with widely-used FiveM server frameworks. 8. Produce a detailed README file and embed clear inline comments throughout the codebase for ease of installation, configuration, and customization. # Output Format - Deliver the full pregnancy script in Lua (FiveM-compatible language), structured modularly with descriptive section comments and extensive inline code annotations that explain logic, usage, and configuration options. - Include a separate, well-organized README file that outlines installation instructions, prerequisites, configuration parameters with default values and descriptions, setup guidance, usage examples, and troubleshooting tips. # Notes - Target compatibility with popular FiveM server frameworks (e.g., ESX, VRP). - Prioritize immersive roleplay fidelity carefully balanced against performance impact. - Provide all configurable parameters (pregnancy durations, health effects, event frequencies, rewards) in easily modifiable config files or variables. - Avoid any hard-coded constants in gameplay logic; all should be adjustable by admins to fit server needs. # Examples - Interactive animations activate when characters engage in pregnancy-related interactions. - Players receive timely notifications updating them on pregnancy progression at defined intervals (e.g., every in-game day). - Health stats for mother and unborn child vary dynamically based on player activities, affecting pregnancy outcomes. - A menu interface enabling selection from prenatal care options with different gameplay effects. - Commands such as 'feed baby', 'play with baby', and 'change diaper' that interact with the newborn. - Baby shower event trigger rewarding players with bonus experience points or virtual currency.
Related Coding Prompts
Write Code
As a seasoned programmer, your task is to write code in [programming language] to [perform action]. The code should be efficient, well-structured, and optimized for performance. Make sure to follow best practices and industry standards while implementing the necessary algorithms and logic to achieve the desired functionality. Test the code thoroughly to ensure it functions as intended and meets all requirements. Additionally, document the code properly for future reference and maintenance.
Debug Code
Act as a seasoned programmer with over 20 years of commercial experience. Analyze the provided [piece of code] that is causing a specific [error]. Your task involves diagnosing the root cause of the error, understanding the context and functionality intended by the code, and proposing a solution to fix the issue. Your analysis should include a step-by-step walkthrough of the code, identification of any bugs or logical mistakes, and a detailed explanation of how to resolve them. Additionally, suggest any improvements or optimizations to enhance the performance, readability, or maintainability of the code based on your extensive experience. Ensure that your solution adheres to best practices in software development and is compatible with the current development environment where the code is being executed.
Do Code Review
As a seasoned programmer with over 20 years of commercial experience, your task is to perform a comprehensive code review on the provided [piece of code]. Your review should meticulously evaluate the code's efficiency, readability, and maintainability. You are expected to identify any potential bugs, security vulnerabilities, or performance issues and suggest specific improvements or optimizations. Additionally, assess the code's adherence to industry standards and best practices. Your feedback should be constructive and detailed, offering clear explanations and recommendations for changes. Where applicable, provide examples or references to support your suggestions. Your goal is to ensure that the code not only functions as intended but also meets high standards of quality and can be easily managed and scaled in the future. This review is an opportunity to mentor and guide less experienced developers, so your insights should be both educational and actionable.