Reformat and clean up npc scripts
This commit is contained in:
@@ -44,10 +44,11 @@ function action(mode, type, selection) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (mode == 1)
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
else
|
||||
} else {
|
||||
status--;
|
||||
}
|
||||
if (mode == 1 && status == 3) {
|
||||
status = 0;
|
||||
}
|
||||
@@ -59,35 +60,27 @@ function action(mode, type, selection) {
|
||||
prompt = "Do you have any other questions?" + prompt;
|
||||
}
|
||||
cm.sendSimple(prompt);
|
||||
}
|
||||
else if (status == 1) {
|
||||
} else if (status == 1) {
|
||||
selectedOption = selection;
|
||||
if (selectedOption == 0) {
|
||||
cm.sendNext("Sharenian was a literate civilization from the past that had control over every area of the Victoria Island. The Temple of Golem, the Shrine in the deep part of the Dungeon, and other old architectural constructions where no one knows who built it are indeed made during the Sharenian times.");
|
||||
}
|
||||
else if (selectedOption == 1) {
|
||||
} else if (selectedOption == 1) {
|
||||
cm.sendNext("#t4001024# is a legendary jewel that brings eternal youth to the one that possesses it. Ironically, it seems like everyone that had #t4001024# ended up downtrodden, which should explain the downfall of Sharenian.");
|
||||
status = -1;
|
||||
}
|
||||
else if (selectedOption == 2) {
|
||||
} else if (selectedOption == 2) {
|
||||
cm.sendNext("I've sent groups of explorers to Sharenian before, but none of them ever came back, which prompted us to start the Guild Quest. We've been waiting for guilds that are strong enough to take on tough challenges, guilds like yours.");
|
||||
}
|
||||
else if (selectedOption == 3) {
|
||||
} else if (selectedOption == 3) {
|
||||
cm.sendOk("Really? If you have anything else to ask, please feel free to talk to me.");
|
||||
cm.dispose();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
else if (status == 2) { //should only be available for options 0 and 2
|
||||
} else if (status == 2) { //should only be available for options 0 and 2
|
||||
if (selectedOption == 0) {
|
||||
cm.sendNextPrev("The last king of Sharenian was a gentleman named Sharen III, and apparently he was a very wise and compassionate king. But one day, the whole kingdom collapsed, and there was no explanation made for it.");
|
||||
}
|
||||
else if (selectedOption == 2) {
|
||||
} else if (selectedOption == 2) {
|
||||
cm.sendNextPrev("The ultimate goal of this Guild Quest is to explore Sharenian and find #t4001024#. This is not a task where power solves everything. Teamwork is more important here.");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user