Jump to content
  • 0

how to make a menu disappear on npc


Question

Posted (edited)

I was wondering how can I make the npc menu disappear. Example: I make a npc of a menu with 3 options:
option 1
option 2
option 3.
then the player chooses option 2, then option 2 would disappear and when the player talks to the npc again, only option 1 and 3 would appear.

Edited by PoringSpr

1 answer to this question

Recommended Posts

  • 0
Posted
prontera,155,181,3	script	Test	94,{

	setarray .@Options$[1],"Option 1","Option 2","Option 3";
	for(.@i=1;.@i<=getarraysize(.@Options$);.@i++)
		.@menu$ += (SaveOption[.@i] ? "":.@Options$[.@i])+":";
	.@sel = select(.@menu$);
	mes "You have chosen option "+.@sel;
	mes "Option "+.@sel+" is now gone.";
	SaveOption[.@sel] = 1;
	close;
}

 

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