Jump to content
  • 0

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


Jarms Firstclaw

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  02/03/17
  • Last Seen:  

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...