Hey all,
I'm at work now, but in a few minutes I'll edit this post to include part of the actual source code I've been working with, but for now let me explain the problem until the email arrives with it so I can copy/paste
I have previously modified the character creation to include a Terms and Conditions and a pet selection .. so it goes like this (I dont have classes any longer, so it was removed btw)
Name -> Confirm Name -> Password -> Confirm Password -> Pet Selection -> Race Selection -> Terms and Conditions -> Press Enter -> MOTD -> into the game
now I'm redesigning it and trying to add some new features .. so I've added 4 new selections .. which actually spread across 9 subroutines .. but I'll explain that quickly
it now goes something like this..
Name -> Confirm Name -> Password -> Confirm Password -> Pet Selection -> Race Selection -> Eye colour -> Hair Colour -> Summon Animal -> Aptitude Question 1 -> Aptitude Questin 2 -> Aptitude Question 3 -> Aptitude Question 4 -> Aptitude Question 5 -> Terms and Conditions -> Press Enter -> MOTD -> into the game
or atleast that's how its supposed to work .. but for some reason it skips all the new content I added and after race selection goes straight to terms and conditions .. it is noteworthy to mention that even tho I've added the 4 new write_to_buffer lines in nanny_get_new_race() they do not display as well.. I thought originally I hadn't configured it properly and it was skipping over everythign w/o a pause .. but no information new is displayed ..
Again, I'll be positng the source code from comm.c as soon as I get it.. but to clarify beforehand, here's the format I've been using...
Add a CON_GET_STATE to mud.h
Add a if( d->connected = CON_GET_STATE )
nanny_get_state( d, argument );
In the subroutine BEFORE the new one, at the end, make d->connected = CON_GET_STATE .. and add the write_to_buffer( d, " ...", 0 ); w/e the question is
then make the new nanny_get_state() subroutine which basically just assigns ch to d->connected does a switch() for the arg[0] of the question .. default: to repeat question .. and if/when they provide a correct answer, just set the ch->variable to what I want, and break out of the switch.. and rinse repeat (ptuting the new question at the bottom .. new con_get_state etc etc
I believe this to be all I need to do .. and again am baffled by why if I modified the information displayed at the end of nanny_get_new_race() to display a new question and not the terms and conditions (which are now at the end of aptitude question 5) .. why it wouldn't affect the game at all..
just to stop you from thinking I'm a complete idiot.. yes I have recompiled .. yes I have shutdown the mud and rebooted .. yes I have triple checked that I was in the right directory and spawning the correct version of the game .. etc etc .. I've gone over my mud.h and comm.c files a million times.. and the order is correct etc etc.. and the CON_STATES exists in mud.h as I think they should.. it compiles fine now.. just doesn't seem to affect the output to the game at all.. no clue why..
if you have any suggestions please feel free.. otherwise I'll be posting the source code in a few minutes.. thanks in advance all !