Damage Output from <messages> file

  • soth
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 months 5 days ago #10277 by soth
Hi,
Just wondering if it is possible without heavily modifying the code to show the damage ouptput of a spell.  I currently show the damage output from regular attacks which was no big deal, but curious how hard it would be to show it for spells.

Thanks!

Please Log in or Create an account to join the conversation.

  • soth
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 months 4 days ago - 2 months 4 days ago #10279 by soth
Replied by soth on topic Damage Output from <messages> file
Figured out how to do it on damaging spells.
In Magic.c
[code]case SPELL_VAMPIRIC_TOUCH:
[code]     dam = dice(1,7) + 2;
     if (GET_HIT(ch) <= GET_MAX_HIT(ch) * 1.2)
          GET_HIT(ch) += dam;
     
     send_to_char(ch, "[\tG%d\tn] ", dam);
          break;[/code]
[/code]

 
Last edit: 2 months 4 days ago by soth.

Please Log in or Create an account to join the conversation.

  • soth
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 months 4 days ago #10280 by soth
Replied by soth on topic Damage Output from <messages> file
Now to try and find out where to add that line of code for skills suck as kick, etc...

:)

Please Log in or Create an account to join the conversation.

More
2 months 4 days ago #10281 by thomas
Replied by thomas on topic Damage Output from <messages> file
have a look in the damage() function. I'd add it there for everything.

Please Log in or Create an account to join the conversation.

  • soth
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 months 4 days ago #10282 by soth
Replied by soth on topic Damage Output from <messages> file
Hi Thomas,
Found the spot to just add the one line. Ty !

Kevin

Please Log in or Create an account to join the conversation.

Time to create page: 0.092 seconds