Having a hard time with this... Probably due to inexperience...
I have a quest that changes its objectives depending on the players level... What I did was assign a variable a certain value (1, 2 or 3) depending on the level the player was when he accepted the quest.
The NPC also has a dialogue mid-way through the quest to remind the player what his/her objective list is...
So I wanted to have the NPC show the objective list assigned to each difficulty quest (variable == 1, 2 or 3), but having a hard time scripting that into one line.
For now I'm using the following:
if (questlevel == 1) {
mes "Objective List 1";
}
if (questlevel == 2) {
mes "Objective List 2";
}
if (questlevel == 3) {
mes "Objective List 3";
}
Is there an easier way to do this in a single line of code, or in a simpler way?
Question
BMythes
Having a hard time with this... Probably due to inexperience...
I have a quest that changes its objectives depending on the players level... What I did was assign a variable a certain value (1, 2 or 3) depending on the level the player was when he accepted the quest.
The NPC also has a dialogue mid-way through the quest to remind the player what his/her objective list is...
So I wanted to have the NPC show the objective list assigned to each difficulty quest (variable == 1, 2 or 3), but having a hard time scripting that into one line.
For now I'm using the following:
if (questlevel == 1) { mes "Objective List 1"; } if (questlevel == 2) { mes "Objective List 2"; } if (questlevel == 3) { mes "Objective List 3"; }
Is there an easier way to do this in a single line of code, or in a simpler way?
Thank you.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.