Welcome to the Builder Academy

Question Mob Flags not saving.

More
11 Sep 2012 14:37 #785 by Liko
Mob Flags not saving. was created by Liko
I added a new MOB_QM flag. It seems not to be saving/working correctly.

I want it to display

(QM) Bob stands here.

I defined all the right stuff in structs.h, constants.h, and act.informative.c. It just won't work. It displays nothing. I can set the flag. It shows the mob having the flag displayed. It just won't output the above example. Any suggestions?

Randian(0.0.0)
Owner/Developer

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

More
11 Sep 2012 15:43 - 11 Sep 2012 15:44 #786 by Rumble
Replied by Rumble on topic Re: Mob Flags not saving.
Can you do a diff of your addition?

This might help:
www.tbamud.com/forum/4-development/17-how-to-add-a-mob-flag

Though it replaces a flag and doesn't add a new one. Did you increment the total number of flags?

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com
Last edit: 11 Sep 2012 15:44 by Rumble.

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

More
11 Sep 2012 15:49 #787 by Liko
Replied by Liko on topic Re: Mob Flags not saving.

Rumble wrote: Can you do a diff of your addition?

This might help:
www.tbamud.com/forum/4-development/17-how-to-add-a-mob-flag

Though it replaces a flag and doesn't add a new one. Did you increment the total number of flags?


Yes I also increased num_mob_flags

Randian(0.0.0)
Owner/Developer

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

More
11 Sep 2012 15:55 #788 by Liko
Replied by Liko on topic Re: Mob Flags not saving.

Liko wrote:

Rumble wrote: Can you do a diff of your addition?

This might help:
www.tbamud.com/forum/4-development/17-how-to-add-a-mob-flag

Though it replaces a flag and doesn't add a new one. Did you increment the total number of flags?


Yes I also increased num_mob_flags


Okay, its saving correctly, it just doesn't want to output the QM when a player looks.

Randian(0.0.0)
Owner/Developer

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

More
11 Sep 2012 16:19 #789 by Liko
Replied by Liko on topic Re: Mob Flags not saving.
Here is what I'm using in list_one_char
Code:
if (IS_NPC(i)) { if(MOB_FLAGGED(i, MOB_QM)) send_to_char(ch, "(QM) "); }

It should be outputting, but it's not. The QM flag is registering as being set. Any ideas?

Randian(0.0.0)
Owner/Developer

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

More
11 Sep 2012 17:27 #790 by Vatiken
Replied by Vatiken on topic Re: Mob Flags not saving.
You placed the "QM" in the wrong spot. Keep in mind that npcs have 2 types of displays, 1) full long description "MobX is standing here looking your way." and altered description. "MobX is (position) here." I'm betting if you force your questmaster to sit or sleep you will see the flag. Just a guess though without seeing the whole list_one_char function.

tbaMUD developer/programmer

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

Time to create page: 0.208 seconds