I want the damage to show at the end of each hit of a weapon
or attack. For example :
Your slash hits the wolf! (15)
Where is the code that would deal with this?
Or if someone knows of a snippet that would do this
that would help.
Thanks
See
Fighting system. Searching this forum can usually find some useful results. In this case I searched on 'damage hp' in the SMAUG section.
Ok I looked over that topic. I was able to add the damage
to most of the attacks. But on spells and skills it doesnt work right. for my weapons it does this
Your slash hits Icingdeath. (5)
which is what i want
but i added the exact same thing to all these that were in the new_dam_message function
sprintf( buf1, "$n's %s %s $N%c test7(%w)", attack, vp, punct, dam );
And when a spell or skill is used it shows no number instead its like this -
Your suspiric grasp wounds Icingdeath! ()
showing dam to be null i guess
What could I be doing wrong? Shouldnt dam hold the damage
even if its a spell or skill? I even tried putting test numbers in the sprintf's and enumerated them, and found the ones that deal with skills, and dam was in there, just no number in dam. Its really bothering me.
thanks again.
Thanks for all the help. I figured it out. just needed %i
Would you mind sharing your code please, I'm just not exactly sure how you implemented that into your source.