Jump to content
  • 0

NPC isn't showing any dialogue box (Help please)


Question

Posted (edited)

I successfully spawned the npc on the area but whenever I try to talk to it, nothing happens..

here's the script

 

hoh_v5,120,143,6    script    Room 1    858,{
    
    mes "[Woman]";
    mes "Please enter your password";
    next;
    input .@var$;
    if (.@var$ == "password") {
        mes "[Woman]";
        mes "Well done, you typed it correctly.";

    next;
    switch(select("Enter your room:Cancel")) {
        case 1:
            warp "hoh_v5",27,236;
            break;
        case 2:
    }
    break;
}


    } else {
        mes "[Woman]";
        mes "Sorry, you got it wrong.";
        close;
    }

end;

Edited by Jarms Firstclaw

2 answers to this question

Recommended Posts

  • 0
Posted

Your script has a few curly braces in the wrong place. Try this: 

hoh_v5,120,143,6    script    Room 1    858,{
    
    mes "[Woman]";
    mes "Please enter your password";
    next;
    input .@var$;
    if (.@var$ == "password") {
        mes "[Woman]";
        mes "Well done, you typed it correctly.";
		next;
		
		switch(select("Enter your room:Cancel")) {
			case 1:
				warp "hoh_v5",27,236;
				break;
			case 2:
				break;
		}
	} else {
        mes "[Woman]";
        mes "Sorry, you got it wrong.";
        close;
    }
	end;
}

Please use the Codebox in future /no1

  • Upvote 2

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...