Bringer Posted October 19, 2019 Posted October 19, 2019 (edited) $EVT_Dice == 1 $EVT_Poring == 1 $EVT_LMS == 1 switch(select("Dice Event:Poring Event:LMS Event")) { case 1: mes "blablbala"; case 2: mes "blablbala"; case 3: mes "blablbala"; } ^FF0000Not Available^000000" "^00FF00Active^000000" how to do it when events active and menu option change colors Edited October 19, 2019 by Bringer Quote
1 WhiteEagle Posted October 19, 2019 Posted October 19, 2019 Then: switch(select( (!$EVT_Dice)?"^FF0000Dice^000000":"^00FF00Dice^000000", (!$EVT_Poring)?"^FF0000Poring Event^000000":"^00FF00Poring Event^000000",(!$EVT_LMS)?"^FF0000LMS Event^000000":"^00FF00LMS Event^000000")) { case 1: case 2: case 3: } 1 Quote
0 WhiteEagle Posted October 19, 2019 Posted October 19, 2019 Like this case 1: if (!$EVT_Dice) { mes "^FF0000Not Available^000000"; }mes "^00FF00Active^000000"; Quote
0 Bringer Posted October 19, 2019 Author Posted October 19, 2019 24 minutes ago, WhiteEagle said: Like this case 1: if (!$EVT_Dice) { mes "^FF0000Not Available^000000"; }mes "^00FF00Active^000000"; the menu option Quote
0 Emistry Posted October 26, 2019 Posted October 26, 2019 prontera,155,181,5 script sample 757,{ switch(select( "Dice Event - " + ($EVT_Dice ? "^FF0000Not Available":"^00FF00Active") + "^000000", "Poring Event - " + (!$EVT_Poring ? "^FF0000Not Available":"^00FF00Active") + "^000000", "LMS Event - " + ($EVT_LMS ? "^FF0000Not Available":"^00FF00Active") + "^000000" )) { case 1: mes "blablbala"; case 2: mes "blablbala"; case 3: mes "blablbala"; } close; } Quote
Question
Bringer
$EVT_Dice == 1 $EVT_Poring == 1 $EVT_LMS == 1
switch(select("Dice Event:Poring Event:LMS Event")) { case 1: mes "blablbala"; case 2: mes "blablbala"; case 3: mes "blablbala"; }
^FF0000Not Available^000000" "^00FF00Active^000000"
how to do it when events active and menu option change colors
Edited by Bringer4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.