Welcome to the Builder Academy

Question Permanently infravision for a race

More
29 Mar 2016 18:17 #5700 by JTP
Is that possible to make fairly easy or will it take alot of Work ?

Any ideas pls post how.

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

More
29 Mar 2016 21:27 #5703 by thomas
Just change the "CAN_SEE_IN_DARK" macro to make the race see in the dark: github.com/tbamud/tbamud/blob/d245d0e6b2...aff/src/utils.h#L654

Also, perhaps add the race check the few places where AFF_INFRAVISION is checked.

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

More
29 Mar 2016 22:12 #5705 by JTP
Code:
#define CAN_SEE_IN_DARK(ch) \ (AFF_FLAGGED(ch, AFF_INFRAVISION) || (GET_RACE(ch) == RACE_DWARF), AFF_INFRAVISION) || (!IS_NPC(ch && PRF_FLAGGED(ch, PRF_HOLYLIGHT)))

this didnt compile...got loads of errors..ideas ?

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

More
29 Mar 2016 22:19 #5706 by thomas
erhm, what were you expecting this to do?
Code:
(GET_RACE(ch) == RACE_DWARF), AFF_INFRAVISION)

Ditch the extra ", AFF_INFRAVISION)" and it might help.

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

More
29 Mar 2016 22:41 - 30 Mar 2016 16:30 #5711 by JTP
That Works, how can i set the AFF_INFRA flag ?

Can see in rooms, but not see mobs, inventory, eq etc. Maybe they comes if AFF_INFRA flag is set ?

If AFF_INFRA cant be set. Then it seems ALOT of Places needs RACE_DWARF added, also Places that havent got anything to do with infra. So pls let me know how to add AFF_INFRA. Seems that will be easier, and my daughter will be happy, im trying to make her a mud. She is very into D&D. But my coding skills is not very high. But what dont you do for your kids haha.
Last edit: 30 Mar 2016 16:30 by JTP.

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

More
30 Mar 2016 19:32 #5713 by thomas
According to this search, there's really only a few places to add that check (there are 4 hits, and you've already changed one of them and one of them don't need changing)

github.com/tbamud/tbamud/search?utf8=%E2...93&q=AFF_INFRAVISION

Adding AFF_INFRA on dwarves on login would open another can of worms - how to handle dispel magic, for instance.

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

Time to create page: 0.193 seconds