Welcome to the Builder Academy

Question look_at_char

More
18 Apr 2013 17:10 #1953 by JTP
look_at_char was created by JTP
if (i->player.description)
send_to_char(ch, "%s", i->player.description);
else
act("You see nothing special about $m.", FALSE, i, 0, ch, TO_VICT);
send_to_char() would it be possible to put this after the act, for more info when looking at a char ?

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

More
18 Apr 2013 18:28 #1955 by Rumble
Replied by Rumble on topic look_at_char
Not sure I understand the question.

If a player has set their description... display it.
else "You see nothing special about..."

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

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

More
18 Apr 2013 19:44 #1956 by JTP
Replied by JTP on topic look_at_char
when a player looks at another player line would be You see nothing special....
then below i would like it to display $n belongs to the human race. with GET_RACE(ch) in the code.

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

More
18 Apr 2013 19:56 - 18 Apr 2013 19:56 #1958 by Kewlb
Replied by Kewlb on topic look_at_char
if (i->player.description)
send_to_char(ch, "%s", i->player.description);
else
send_to_char(ch, "You see nothing special about this %s.\r\n", race_names[GET_RACE(i)];

where race_names is whatever string array you have for racial names.

so for a Hobbit it would say You see nothing special about this Hobbit.
Last edit: 18 Apr 2013 19:56 by Kewlb.
The following user(s) said Thank You: JTP

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

More
18 Apr 2013 20:53 #1959 by JTP
Replied by JTP on topic look_at_char
Tnx Kewlb

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

Time to create page: 0.180 seconds