Welcome to the Builder Academy

Question Change Color on Mob Flags

More
30 Jan 2026 18:19 #10979 by soth
Hi,
Pretty sure this is simple, but I am wondering how to change the color on the mobs flag, such as vnum, trig when someone goes into a room.  Example is this.

[2104] [T2101] A mob is here ready for action.

Code:
I would think it is in the list_char_to_char and this seems to be the line that displays the mob. send_to_char(ch, "%s", CCYEL(ch, C_NRM));

I am wanting to see how to go about something like this instead. Having the flags show up for imms in a different color than the actual mob.

Thanks!

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

More
30 Jan 2026 20:25 #10980 by WhiskyTest
You're very close. That line is from list_char_to_char I think, but the code you specifically need is in the list_one_char() method.

In there, see if you can find :
Code:
    if (IS_NPC(i))       send_to_char(ch, "[%d] ", GET_MOB_VNUM(i));


That's where you would add your color code.

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

More
30 Jan 2026 21:02 #10981 by soth
Replied by soth on topic Change Color on Mob Flags
Hey Whiskey,
Thanks for the reply. I will check and report back in a bit. This is what happens when you do not code everyday LOL, you seem to just forget some things.

Ty,

Kevin

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

More
30 Jan 2026 21:06 #10982 by soth
Replied by soth on topic Change Color on Mob Flags
Hey Whiskey,
yeah, that worked just as I wanted it to.  Already found the code and changed it.  LOL, kinda feel embarrassed now :)

Ty,

Kevin

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

More
31 Jan 2026 16:40 #10983 by WhiskyTest
Mate I've just had the urge to fire up tbaMUD again so I completely relate to being lost in the code.
My last work was 6 years ago! :D

Glad you got it working!

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

Time to create page: 0.336 seconds