[lua] Convert Rubbish Day to IF / Fix Compatability Events#10561
Draft
Skold177 wants to merge 2 commits into
Draft
[lua] Convert Rubbish Day to IF / Fix Compatability Events#10561Skold177 wants to merge 2 commits into
Skold177 wants to merge 2 commits into
Conversation
Converts Rubbish Day to IF / Fix Compatibility Events
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I affirm:
What does this pull request do?
Converts Rubbish Day to IF and Fixes Compatibility Events
Used an event dump from @sruon to fix the event
function event_199(npc, player, params)
player:lockControls()
npc:lookAtAndTalk(player)
vm:waitFrameDelay()
vm:waitEntityRenderFlag()
npc:say(7577) -- "Shall I test your compatibility-wility?"
player:waitForKeypress()
result2 = 0
result = npc:dialog(7578, 1, 0) -- "Have your compatibility tested? Yes, please. No, thanks."
if result == 0 then
player:setCancelData()
npc:say(7580) -- "Very well. Just fill in the name of your partner where it says Password."
player:waitForKeypress()
vm:handleStringInput(scratch[0])
vm:handleStringInput(scratch[1])
vm:handleStringInput(scratch[2])
scratch[0] = params[0]
scratch[1] = params[1]
scratch[2] = params[2]
if scratch[2] == 0 then
if scratch[2] == 1 then
npc:say(7585) -- "What? With me!? Spare me."
player:waitForKeypress()
elseif scratch[2] == 2 then
npc:say(7586) -- "What? With that creep? Over my dead body!"
player:waitForKeypress()
elseif scratch[2] == 3 then
npc:say(7584) -- "Please fill in your partner's name."
player:waitForKeypress()
end
elseif scratch[1] == 0 then
npc:say(7582) -- "Your partner-wartner doesn't seem to be nearby."
player:waitForKeypress()
elseif scratch[1] == scratch[0] then
npc:say(7583) -- "Of course you're compatible with yourself! Hello!?"
player:waitForKeypress()
else
sub_02F3(npc, player, params)
result2 = 1
end
elseif result == 1 then
npc:say(7579) -- "Have a nice day."
player:waitForKeypress()
result2 = 1073741824
end
end
Steps to test these changes
Do the quest