Welcome to the Builder Academy

Question Trouble getting color to display for class_menu

More
21 Jun 2012 15:29 #131 by Liko
Hello,

I'm having trouble getting color to display for class_menu and when it asks for the player to choose their sex. Do I need to put a parse_at somewhere? I've tried it with @'s and /tR, but it just stays plain white. Any suggestions?

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
21 Jun 2012 16:08 #132 by Vatiken
The tab is correct, but the protocol system won't utilize colour unless the player's color setting is atleast ?normal. So make sure you set the player's preference flags for colour on before you reach your class menu, and you should be ok.

tbaMUD developer/programmer

Please Log in or Create an account to join the conversation.

More
21 Jun 2012 16:20 #133 by Liko
Well its showing color on the startup screen.

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
21 Jun 2012 16:26 #134 by Liko
Even setting the color flag after the pick the name as shown below still no color for the whole character creations.
Code:
SET_BIT_AR(PRF_FLAGS(d->character), PRF_COLOR_1); SET_BIT_AR(PRF_FLAGS(d->character), PRF_COLOR_2); write_to_output(d, "Did I get that right, %s (@RY/@RN@n)? ", tmp_name);

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
21 Jun 2012 18:22 #150 by Vatiken
Stock tbaMUD 3.63 includes use of the protocol system within character creation.
Code:
if (STATE(d) == CON_CNFPASSWD) { write_to_output(d, "\r\nWhat is your sex (\t(M\t)/\t(F\t))? "); STATE(d) = CON_QSEX; } else { save_char(d->character); write_to_output(d, "\r\nDone.\r\n%s", CONFIG_MENU); STATE(d) = CON_MENU; } break;
So if you are using 3.63, there should be no issue. Although I don't know why you are using an '@' in the code chunk above.

tbaMUD developer/programmer

Please Log in or Create an account to join the conversation.

More
21 Jun 2012 18:42 #154 by Liko

Vatiken wrote: Stock tbaMUD 3.63 includes use of the protocol system within character creation.

Code:
if (STATE(d) == CON_CNFPASSWD) { write_to_output(d, "\r\nWhat is your sex (\t(M\t)/\t(F\t))? "); STATE(d) = CON_QSEX; } else { save_char(d->character); write_to_output(d, "\r\nDone.\r\n%s", CONFIG_MENU); STATE(d) = CON_MENU; } break;
So if you are using 3.63, there should be no issue. Although I don't know why you are using an '@' in the code chunk above.


I was using @ as testing, I was switching between @ and \t, but neither are working.

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.232 seconds