Variable carry over

Posted by Elvshire on Thu 06 Mar 2003 05:16 PM — 2 posts, 10,268 views.

#0
Before I even begin, I'd like to point out that I'm a kid and have virtually no real programming experience, so some of my questions may seem pretty basic. Well, here goes:

I'm trying to find a way to make a spell "chant" or put out a message, wait a second or two, put out another message and fire the spell. I was able to implement this with word of recall, as it simply points the the do_recall function by doing the following:

ch_ret spell_word_of_recall( int sn, int level, CHAR_DATA *ch, void *vo )
{
	send_to_char( "You raise your arms in the air and begin to weave an intricate pattern of magic.\n\r", ch );
	add_timer ( ch , TIMER_DO_FUN , 3 , do_recall , 1 );
    return rNONE;
}

What I'm trying to do now is make a spell that will do the same thing, but damage an opponent. In this attempt I created an equivalent skill to the spell and made the timer target that skill. The difficulty that I am having is getting the victim to deal damage to to carry over from the spell to the skill... can anyone help me here?
Australia Forum Administrator #1
This question gets asked many times - "how do I pause the output to the player?".

It isn't easy, because a genuine pause in the server would pause all players, not just that one. You need to do something like you posted, add a timer. Without knowing the details of what you want, you could do your own function, like do_recall, to do what you want, and add a timer to call it in a second or so.