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:
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?
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?