[Newbie Sort of] Hidden Exits/ Hidden Doors/ Hidden Rooms

From: Griffin Hernandez (griffent@SOFTCOM.NET)
Date: 01/03/01


Hello again.
I was adding the hidden exits code i found on the website and it didnt give
really clear description on how to add exits flags to olc
I dont know how to add exit flags, I tried and i acomplished something but
not what i wanted. It made all doors hidden, I Fixed that.

In  case REDIT_EXIT_DOORFLAGS: , where
OLC_EXIT(d)->exit_info = (number == 0 ? 0 :
(number == 1 ? EX_ISDOOR :
(number == 2 ? EX_ISDOOR | EX_PICKPROOF : 0));

are, I try to add another line to it so it would be

OLC_EXIT(d)->exit_info = (number == 0 ? 0 :
(number == 1 ? EX_ISDOOR :
(number == 2 ? EX_ISDOOR | EX_PICKPROOF : 0)
(number == 3 ? EX_ISDOOR | EX_HIDDEN    : 0));

and i get the error

C:\WINDOWS\Desktop\src\redit.c(698) : error C2064: term does not evaluate
to a function

I have defined EX_HIDDEN in Structs as #define EX_HIDDEN (1 << 4) already
I dont know what to do... Can anyone help me?

Thx
Griffin

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/03/01 PST