Jump to content
  • 0

Switch Select Condition


Louis T Steinhil

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  91
  • Reputation:   12
  • Joined:  06/22/13
  • Last Seen:  

Hello guys, just need a bit of help with my instance entry

 

			mes "Confirmed the party has been made. Would you like to reserve entrance to the Endless Tower?";
			next;			
			switch(select(
			( .@party_id && .@is_leader && !.@has_instance )? "Generate dungeon "+.@md_name$+": "",
			( .@party_id && .@has_instance )? "Enter the dungeon": "",
			"Return to Alberta","Cancel")){

image.png.9f5bbbf1763def7b20e34a00c900fe1b.png

What could be the right one? Thanks in advance!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1191
  • Reputation:   161
  • Joined:  06/12/12
  • Last Seen:  

try change at this part

( .@party_id && .@has_instance )? "Enter the dungeon": "",

change it into

( .@party_id && .@has_instance )? "Enter the dungeon: ",

 

Edited by hendra814
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  91
  • Reputation:   12
  • Joined:  06/22/13
  • Last Seen:  

11 minutes ago, hendra814 said:

try change at this part

( .@party_id && .@has_instance )? "Enter the dungeon": "",

change it into

( .@party_id && .@has_instance )? "Enter the dungeon: ",

 

Hello sir, still error

image.png.8da7f5a78bfa1c7ba8e3b9a6518babab.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   11
  • Joined:  11/17/20
  • Last Seen:  

mes "Confirmed the party has been made. Would you like to reserve entrance to the Endless Tower?";
next;
switch(select(
	( .@party_id && .@is_leader && !.@has_instance )? "Generate dungeon "+.@md_name$+": ",
	( .@party_id && .@has_instance )? "Enter the dungeon: ",
	"Return to Alberta",
	"Cancel"
)){
	// Cases go here
}

 

Edited by Pride
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

( .@party_id && .@is_leader && !.@has_instance )? "Generate dungeon "+.@md_name$+": "",

change to

( .@party_id && .@is_leader && !.@has_instance )? "Generate dungeon "+.@md_name$:"",

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  91
  • Reputation:   12
  • Joined:  06/22/13
  • Last Seen:  

25 minutes ago, Pride said:
mes "Confirmed the party has been made. Would you like to reserve entrance to the Endless Tower?";
next;
switch(select(
	( .@party_id && .@is_leader && !.@has_instance )? "Generate dungeon "+.@md_name$+": ",
	( .@party_id && .@has_instance )? "Enter the dungeon: ",
	"Return to Alberta",
	"Cancel"
)){
	// Cases go here
}

 

Still error sir

image.thumb.png.65ba5d5e50754218bf9eba69e98dca69.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  91
  • Reputation:   12
  • Joined:  06/22/13
  • Last Seen:  

25 minutes ago, pajodex said:
( .@party_id && .@is_leader && !.@has_instance )? "Generate dungeon "+.@md_name$+": "",

change to

( .@party_id && .@is_leader && !.@has_instance )? "Generate dungeon "+.@md_name$:"",

 

Still error sir

image.thumb.png.5ab85f9c733fc5908c34e47641f4bc19.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

are you referring to me? Check my suggestion closely.

 

PS: Keep this part like this..

( .@party_id && .@has_instance )? "Enter the dungeon": "",

 

PPS: If you are still confused, it should look like this
 

			mes "Confirmed the party has been made. Would you like to reserve entrance to the Endless Tower?";
			next;			
			switch(select(
			( .@party_id && .@is_leader && !.@has_instance )? "Generate dungeon "+.@md_name$: "",
			( .@party_id && .@has_instance )? "Enter the dungeon": "",
			"Return to Alberta","Cancel")){

 

Edited by pajodex
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  91
  • Reputation:   12
  • Joined:  06/22/13
  • Last Seen:  

Just now, pajodex said:

are you referring to me? Check my suggestion closely.

Ah ok sir thanks. It's working!

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