Skip to content

Added check to see if the player has started the tutorial when speaki…#10535

Open
greentchristian-LSB wants to merge 1 commit into
LandSandBoat:basefrom
greentchristian-LSB:base
Open

Added check to see if the player has started the tutorial when speaki…#10535
greentchristian-LSB wants to merge 1 commit into
LandSandBoat:basefrom
greentchristian-LSB:base

Conversation

@greentchristian-LSB

Copy link
Copy Markdown
Contributor

…ng with RoE NPCs. De;eted a line causing a duplicate message after CS.

I affirm:

  • I understand that if I do not agree to the following points by completing the checkboxes my PR will be ignored.
  • I understand I should leave resolving conversations to the LandSandBoat team so that reviewers won't miss what was said.
  • I have read and understood the Contributing Guide and the Code of Conduct.
  • I have tested my code and the things my code has changed since the last commit in the PR and will test after any later commits.

What does this pull request do?

This is a very minor retail accuracy change. When a player starts Records of Eminence without first starting the tutorial, the game plays a slightly longer cutscene where the RoE NPC tells the player to go speak to the tutorial NPC. (In capture, it's the same event, with option 1.)

This adds a line to each of the RoE NPCs to determine if the player has started the tutorial, returning 0 if the player has started the tutorial and returning 1 if the player has not, then applies that variable as the first cutscene option, ensuring the player gets the retail correct version of the cutscene. Adjusts the onEventFinish check so that the function should trigger regardless of the version of the CS you get. Finally, also deletes a line from entity.onEventFinish that was causing a duplicate "You got beef jerky" message when finishing the CS.

Seriously, this message is longer than the change.

Steps to test these changes

Create a new character and start Records of Eminence without first starting the tutorial. You'll get a slightly longer cutscene telling you to start the tutorial. Create a character and start the tutorial before starting Records of Eminence. You'll get the shorter cutscene without the instruction.

…ng with RoE NPCs. De;eted a line causing a duplicate message after CS.
entity.onTrigger = function(player, npc)
if player:getEminenceProgress(1) then
player:startEvent(24)
local tutorialStarted = player:getVar('HQuest[Tutorial]Prog') > 0 and 0 or 1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really we shouldn't be handling this in the NPC scripts at all anymore. These are one-time events which complete the record, and should be moved to the Tutorial Hidden Quest

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's not strictly part of the tutorial - rather, it's showing a different version of the CS if you haven't started the tutorial - moving the cutscene from all three RoE NPCs to wherever the script for the First Step Forward objective is might make more sense, but I'm not sure where the RoE scripts are kept.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The biggest complication may just be that, this is the only RoE objective with an associated event, to the best of my knowledge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants