- Posts: 32
- Thank you received: 1
Damage Output from <messages> file
- soth
- Topic Author
- Offline
- Junior Member
-
Less
More
2 months 5 days ago #10277
by soth
Damage Output from <messages> file was created 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!
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
-
Less
More
- Posts: 32
- Thank you received: 1
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 break;[/code]
[/code]
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);
[/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
-
Less
More
- Posts: 32
- Thank you received: 1
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.
- thomas
-
- Offline
- Administrator
-
Less
More
- Posts: 816
- Thank you received: 159
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
-
Less
More
- Posts: 32
- Thank you received: 1
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
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