Welcome to the Builder Academy

Question obj flag

More
29 Nov 2016 22:41 #6331 by JTP
obj flag was created by JTP
I made an obj flag called Champion

So what i would like is, if an item is flaged Champion then when the item is worn it looks like:

<worn around neck> <Champion> a black collar



So infront of the worn item show that its a Champion item. How would that be done and where ?

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

More
03 Dec 2016 22:38 #6333 by WhiskyTest
Replied by WhiskyTest on topic obj flag
in act.informative.c
static void show_obj_to_char() around line #117
Code:
+ if (OBJ_FLAGGED(obj, ITEM_CHAMPION)) + send_to_char(ch, "<Champion> "); send_to_char(ch, "%s", obj->short_description); break;

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

More
03 Dec 2016 23:00 #6334 by JTP
Replied by JTP on topic obj flag
How if i wanted color on it ? @M @n doesnt Work here

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

More
03 Dec 2016 23:20 #6335 by Vatiken
Replied by Vatiken on topic obj flag
"\tM<Champion>\tn "
Would put it in the colour magenta.
Within the code "\t" aka tab takes the place of the "@" for security purposes.

tbaMUD developer/programmer

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

More
03 Dec 2016 23:27 - 07 Dec 2016 21:30 #6336 by JTP
Replied by JTP on topic obj flag
Thanks alot Vatiken, that worked.
Last edit: 07 Dec 2016 21:30 by JTP.

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

More
04 Dec 2016 00:30 #6337 by JTP
Replied by JTP on topic obj flag
How ever vnum doesnt <champion> any ideas how to get it to ?

Do_vnum only seems to be replies if arg doesnt exists.

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

Time to create page: 0.303 seconds