set .@menu$, "";
for(set .@i,1; .@i < 11; set .@i,.@i+1){
if(.@menu$ == "")
set .@menu$, (($@status[.@i]==0)?"Level 1 (Easy)":""+(($@status[.@i]==1)?"Level 2 (Medium)":"Level 3 (Hard)")+"");
else
set .@menu$,.@menu$ +":"+(($@status[.@i]==0)?"Level 1 (Easy)":""+(($@status[.@i]==1)?"Level 2 (Medium)":"Level 3 (Hard)")+"");
}
set .@room, select(.@menu$);
This is a code that someone else made for me, so I'm not too familiar with these types of menus... but if anyone can help, I would like to add one more level to this menu.
Right now, when I do "set $@status[.@room], $status[.@room] + 1;", the status on the menu will change from "Level 1 (Easy)" to "Level 2 (Medium)" and if +1 again, it would change the status to "Level 3 (Hard)". I seem to have trouble when trying to add a fourth status after level 3. It's a little bit tricky (the format of this menu), so if someone can help me add Level 4, that would be great.
Question
sizenine
This is a code that someone else made for me, so I'm not too familiar with these types of menus... but if anyone can help, I would like to add one more level to this menu.
Right now, when I do "set $@status[.@room], $status[.@room] + 1;", the status on the menu will change from "Level 1 (Easy)" to "Level 2 (Medium)" and if +1 again, it would change the status to "Level 3 (Hard)". I seem to have trouble when trying to add a fourth status after level 3. It's a little bit tricky (the format of this menu), so if someone can help me add Level 4, that would be great.
Edited by sizenine1 answer 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.