Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (() => {
- let letterLookup = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- let output = "";
- RPUI.use(["readingHeaders", "story"], mod => {
- let storyData = mod.story.getStoryData();
- for (questionIdx in storyData.questionList) {
- let question = storyData.questionList[questionIdx];
- output += "[" + (parseInt(questionIdx) + 1) + "] " + question.question + "\n";
- if (question.type == 9) {
- for (e of question.excerptList) {
- for (s of e.sectionList) {
- for (p of s.paragraphList) {
- for (c of p.sentenceList) {
- if (c.clue == true) {
- for (w of c.words) {
- output += w + " ";
- }
- output += "\n";
- }
- }
- }
- }
- }
- output += "\n";
- continue;
- }
- let hashes = mod.readingHeaders.handleCountryCode(question);
- for (h of question.b) {
- let index = hashes.indexOf(h)
- if (index != -1) {
- output += "[" + letterLookup[index] + "] " + question.answerList[index] + "\n";
- }
- }
- output += "\n";
- }
- })
- return output
- })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement