en:rpd:sociologist_npc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:rpd:sociologist_npc [2026/01/04 07:15] – Update sociologist_npc.txt with detailed code references and mechanics mike | en:rpd:sociologist_npc [2026/01/04 07:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Sociologist NPC ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | ==== Description ==== | ||
| + | The **Sociologist NPC** is an NPC character in Remixed Dungeon who asks if the player wants to participate in a survey. This character is part of a gameplay feature that allows players to access survey content. | ||
| + | |||
| + | ==== Location ==== | ||
| + | * Found randomly in the dungeon levels | ||
| + | |||
| + | ==== Interactions ==== | ||
| + | * The NPC presents a dialogue asking the player if they'd like to participate in a survey | ||
| + | * If the player agrees, requests internet permission to download survey content | ||
| + | * If the player refuses, the NPC leaves the player alone | ||
| + | |||
| + | ==== Java Class ==== | ||
| + | * **Java Class:** [[https:// | ||
| + | * **Base Class:** [[https:// | ||
| + | |||
| + | ==== Behavior ==== | ||
| + | * When approached, presents a dialogue with " | ||
| + | * If the player selects " | ||
| + | * If permission is granted, downloads survey content from a GitHub repository (https:// | ||
| + | * If the player selects " | ||
| + | * The NPC implements DownloadStateListener.IDownloadComplete and InterstitialPoint interfaces to manage the download process | ||
| + | |||
| + | ==== Implementation Details ==== | ||
| + | The NPC is implemented as an ImmortalNPC that implements DownloadStateListener.IDownloadComplete and InterstitialPoint interfaces, allowing it to handle the download process and manage the UI during the download. | ||
| + | |||
| + | ==== Code References ==== | ||
| + | * **Main Implementation: | ||
| + | * **ImmortalNPC Base:** [[https:// | ||
| + | * **Survey File:** Downloaded survey.json file is stored locally (SURVEY_JSON constant) | ||
| + | * **Download Task:** Uses DownloadTask to download from GitHub repository | ||
| + | * **UI Windows:** WndOptions for initial dialog, WndSurvey for survey display, DownloadProgressWindow for progress | ||
| + | * **Interaction Method:** interact() method handles the initial interaction with the player | ||
| + | |||
| + | ==== String Resources ==== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Related ==== | ||
| + | * [[en: | ||
| + | * [[en: | ||
| + | |||
| + | {{tag> rpd npcs}} | ||
