Jump to content
  • 0

how to make a menu disappear on npc


PoringSpr

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  12/08/16
  • Last Seen:  

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

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

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;
}

 

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