[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  [Code Need?] Give damage numbers in battle.
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

[Code Need?] Give damage numbers in battle.

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


Posted by Oblisgr   (26 posts)  [Biography] 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...
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

Posted by Oblisgr   (26 posts)  [Biography] 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?
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

Posted by Oblisgr   (26 posts)  [Biography] 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?
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

Posted by Oblisgr   (26 posts)  [Biography] 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?
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

Posted by Meerclar   USA  (733 posts)  [Biography] 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
[Go to top] 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.


3,350 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]