Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ [Code Need?] Give damage numbers in battle.

[Code Need?] Give damage numbers in battle.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Oblisgr   (123 posts)  Bio
Date Mon 30 May 2016 10:10 AM (UTC)
Message
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...
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 30 May 2016 07:42 PM (UTC)
Message
http://www.gammon.com.au/forum/bbshowpost.php?id=3153

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Oblisgr   (123 posts)  Bio
Date Reply #2 on Tue 31 May 2016 08:36 AM (UTC)
Message
Well, i do that, with no errors at compiling but nothing appears in game.

Any thoughts?
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 01 Jun 2016 12:04 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Oblisgr   (123 posts)  Bio
Date Reply #4 on Thu 09 Jun 2016 06:18 PM (UTC)
Message
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?
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #5 on Thu 09 Jun 2016 08:22 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Oblisgr   (123 posts)  Bio
Date Reply #6 on Fri 10 Jun 2016 05:21 PM (UTC)
Message
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?
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #7 on Fri 10 Jun 2016 10:11 PM (UTC)
Message
See: http://www.gammon.com.au/smaug/howtocompile.htm

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #8 on Sun 12 Jun 2016 03:05 AM (UTC)
Message
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.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


27,108 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.