[Code Need?] Give damage numbers in battle.

Posted by Oblisgr on Mon 30 May 2016 10:10 AM — 9 posts, 38,720 views.

#0
Hello,
Is there any ready code to make smaug give the damage numbers dealt by both sides in normal hits incide the battle?

Example:
Player hits Mob for [9] points of damage
Mod hits Player for [6] points of damage.

etc...
Australia Forum Administrator #1
http://www.gammon.com.au/forum/bbshowpost.php?id=3153
#2
Well, i do that, with no errors at compiling but nothing appears in game.

Any thoughts?
Australia Forum Administrator #3
Not enough information to say. You made the changes, you compile and link, and you execute the new version? Maybe add some debugging lines to see if you changed the right spot.
#4
I wander if I make changes to the code I have to recompile the mud as well to take effect?

I use the compiled .exe file to start the mud and whatever changes i make, nothing really affects my mud. I start believe to I do somehing wrong.

My first thought is that i need to recompile it but i dont know how to make this, and secondly if i use the .exe will the mud continue run at previous complile set?
Australia Forum Administrator #5
Yes you have to get a new .exe file (if you are using Windows). Changing the source file isn't enough.

Quote:

if i use the .exe will the mud continue run at previous complile set


I don't understand that question.
#6
It means that with the old .exe file, the changed files will not be recognized.

And is there any way to make that new .exe file?
What can be done?
Australia Forum Administrator #7
See: http://www.gammon.com.au/smaug/howtocompile.htm
USA #8
Also, I'm pretty sure the code in the other thread is missing an argument to display the damage number and was crashing because the output was overloaded.