Jump to content
  • 0

Question

Posted

 

switch(rand(1,3) ) {
case 1:
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
	case 1:
	mes .@npcname$;
	mes "Go to comodo and find Seo Jo!";
	mes "she will explain the details.";
	set changeq,1;
	close;

	}

case 2:
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
	case 1:
	mes .@npcname$;
	mes "Go to Alberta and find Jeo!";
	mes "she will explain the details.";
	set changeq,1;
	close;

}

case 3:

mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
	case 1:
	mes .@npcname$;
	mes "Awesome";
	mes "Go to Al de Baran and find Celine!";
	mes "she will explain the details.";
	set changeq,1;
	close;
		}
	}
}

i made 3 random quest, 

1 will tell me to go comodo

2 will tell me to go alberta

3 will tell me to go alde baran

 

once he give me the first location i want him to stop giving another location.

and i want that he will just repeat the first location he gave me.

4 answers to this question

Recommended Posts

  • 0
Posted
Spoiler

switch(rand(1,3) ) {
case 1:
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    set HereNPC, 1;
    mes .@npcname$;
    mes "Go to comodo and find Seo Jo!";
    mes "she will explain the details.";
    set changeq,1;
    close;

    }

case 2:
if(HereNPC ==1){
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    set HereNPC, 2;
    mes .@npcname$;
    mes "Go to Alberta and find Jeo!";
    mes "she will explain the details.";
    set changeq,1;
    close;
    }
}else{
mes "Find the right NPC of your search";
}

case 3:
if(HereNPC ==2){
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    set HereNPC, 3;
    mes .@npcname$;
    mes "Awesome";
    mes "Go to Al de Baran and find Celine!";
    mes "she will explain the details.";
    set changeq,1;
    close;
        }
}else{
mes "Find the right NPC of your search";
}
    }
    }
   

    
////////// In closed quest set HereNPC, 4
////////// if HereNPC == 4 , mes "Quest Closed";
    
    
in OnInit:
set HereNPC, 0;

  • 0
Posted (edited)
On 11/7/2019 at 12:56 AM, Disabled LOOLP said:
  Hide contents

switch(rand(1,3) ) {
case 1:
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    set HereNPC, 1;
    mes .@npcname$;
    mes "Go to comodo and find Seo Jo!";
    mes "she will explain the details.";
    set changeq,1;
    close;

    }

case 2:
if(HereNPC ==1){
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    set HereNPC, 2;
    mes .@npcname$;
    mes "Go to Alberta and find Jeo!";
    mes "she will explain the details.";
    set changeq,1;
    close;
    }
}else{
mes "Find the right NPC of your search";
}

case 3:
if(HereNPC ==2){
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    set HereNPC, 3;
    mes .@npcname$;
    mes "Awesome";
    mes "Go to Al de Baran and find Celine!";
    mes "she will explain the details.";
    set changeq,1;
    close;
        }
}else{
mes "Find the right NPC of your search";
}
    }
    }
   

    
////////// In closed quest set HereNPC, 4
////////// if HereNPC == 4 , mes "Quest Closed";
    
    
in OnInit:
set HereNPC, 0;

@Disabled LOOLP Thanks, how to make this instead of reply of find the right npc of your search" into the last location he gave?

 

@Ryo Osaki can u help me please ?

Edited by Takuyakii

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...