Okay, this is just more of an aesthetic thing, but I'm trying to have some text (a small storyline) appear to the character, but I don't want the bloody thing to spam it up all at once. I tried using WAIT_STATE from do_delay function, but it's having no effect. I tried every variation of the delay time, please note, and 80 is just my latest futile attempt. Here's the relevant code:
/* Now that we're done with some standard ifchecks, let's get to the transformation coding */
send_to_char( "You start to feel a strange sensation in your body....\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nWhat the bloody hell?!\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\n\n\nA vast, open field flashes before your eyes....\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nYou are standing in this field....\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nYour ears perk-up, your eyes focus, and you crouch down low in the grass....\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nPatience is a virtue.... You wait calmly....\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\n\nYou *LEAP* out of your hiding place, and land upon your unsuspecting victim!!\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nYour prey tries to escape, but to no avail!\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nThe helpless mouse struggles as you bat it around playfully....\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\n\nThe rodent bolts!\n", victim );
send_to_char( "\nYour spring-loaded legs ZIP into action! The chase is on....\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nYour superior dexterity is no match for the mouse, and you swiftly overtake it!\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nWith a quick bite to the neck, you kill your prey.\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nYou take your catch deep into the woods, where hundreds of cats are waiting for your arrival....\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\n\nAn orange-yellow tabby steps forth from the group.\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nYou open your mouth and let the mouse fall upon the ground for the tabby to see....\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nThe tabby nods approvingly.\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nThe tabby says: You came to know our ways and our tongue. You have found much more than that. You have the heart of a tiger within you.... You are one of us.... We shall always be with you, my friend.... My brother....\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nThe tabby purrs. Soon, the rest of the group starts purring as well.... The sound resonates your ears, and your heart....\n", victim );
WAIT_STATE( victim, 80 );
send_to_char( "\nThe tabby lovingly rubs his cheek against yours, and disappears, along with the rest of the vision....\n", victim );
victim->race = RACE_CAT;
/* Then back to the same code as before */
I'm calling it up the same exact way it's called in other functions, at least as far as I can tell. *sigh* What am I doing wrong with this one? =) |