|
368 | 368 | cursor: pointer;
|
369 | 369 | }
|
370 | 370 |
|
| 371 | + .faq-section { |
| 372 | + margin-bottom: 25px; |
| 373 | + } |
| 374 | + |
| 375 | + .faq-section .collapsible { |
| 376 | + background-color: var(--secondary); |
| 377 | + color: white; |
| 378 | + font-weight: bold; |
| 379 | + } |
| 380 | + |
| 381 | + .faq-section .collapsible:after { |
| 382 | + color: white; |
| 383 | + } |
| 384 | + |
| 385 | + .faq-inner-content { |
| 386 | + padding: 15px; |
| 387 | + background-color: #f8f9fa; |
| 388 | + border: 1px solid var(--border); |
| 389 | + border-radius: 4px; |
| 390 | + margin: 10px 0; |
| 391 | + } |
| 392 | + |
| 393 | + .faq-inner-content code { |
| 394 | + background-color: #e9ecef; |
| 395 | + padding: 2px 4px; |
| 396 | + border-radius: 3px; |
| 397 | + font-family: monospace; |
| 398 | + } |
| 399 | + |
371 | 400 | /* For mobile responsiveness */
|
372 | 401 | @media (max-width: 1024px) {
|
373 | 402 | .form-group-container {
|
@@ -395,6 +424,26 @@ <h1>Newlife Character Creator</h1>
|
395 | 424 | </div>
|
396 | 425 | </div>
|
397 | 426 |
|
| 427 | + <div class="faq-section"> |
| 428 | + <button type="button" class="collapsible active-collapse">How do I load custom NPCs into Newlife?</button> |
| 429 | + <div class="collapsible-content" style="max-height: fit-content"> |
| 430 | + <div class="faq-inner-content"> |
| 431 | + <p>To add custom NPCs to your Newlife game:</p> |
| 432 | + <ol> |
| 433 | + <li>Create your character using this tool and download the YAML file</li> |
| 434 | + <li>Place the YAML file in the <code>newlife_gamedata/user_created_npcs</code> folder within your Newlife game directory</li> |
| 435 | + <ul> |
| 436 | + <li>If the folder doesn't exist, create it or load the game once and it should be created automatically</li> |
| 437 | + </ul> |
| 438 | + <li>Ensure <code>Use Custom NPCs</code> is set to 'true' in the Options menu</li> |
| 439 | + <li>Click on the <code>Test NPCs</code> button on the main menu to make sure your custom NPCs are valid</li> |
| 440 | + <li>Start a new game - your custom NPC should appear based on their configured settings</li> |
| 441 | + </ol> |
| 442 | + <p><strong>Note:</strong> Custom NPCs are only loaded when starting a new game. They won't appear in games that are already in progress.</p> |
| 443 | + </div> |
| 444 | + </div> |
| 445 | + </div> |
| 446 | + |
398 | 447 | <div class="tab-container">
|
399 | 448 | <div class="tab-buttons">
|
400 | 449 | <div class="tab-button active" data-tab="tab-create">Create Character</div>
|
|
0 commit comments