Welcome to the Builder Academy

Question Damage Output from <messages> file

More
27 Mar 2023 00:49 #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.

More
27 Mar 2023 16:39 - 27 Mar 2023 16:42 #10279 by soth
Figured out how to do it on damaging spells.
In Magic.c
Code:
[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: 27 Mar 2023 16:42 by soth.

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

More
27 Mar 2023 16:50 #10280 by soth
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
27 Mar 2023 20:18 #10281 by thomas
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.

More
27 Mar 2023 20:41 #10282 by soth
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.220 seconds