Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Sogou, Yandex

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
481
3,734
19,366
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » new_dam_message
Forum Rules | Mark all | Recent Posts

new_dam_message
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jan 7, 2005, 7:40 am
Go to the top of the page
Go to the bottom of the page

ayla

GroupMembers
Posts8
JoinedJun 28, 2004

I've searched, and can't find the answers - how do I change new_dam_message to display how much damage is being done during battle?
       
Post is unread #2 Jan 7, 2005, 7:56 am   Last edited Nov 18, 2007, 4:05 pm by Samson
Go to the top of the page
Go to the bottom of the page

frobozz

GroupMembers
Posts8
JoinedNov 16, 2004

Do you mean these, from const.c:

char * s_blade_messages[24] =
{
        "miss", "barely scratch", "scratch", "nick", "cut", "hit", "tear",
        "rip", "gash", "lacerate", "hack", "maul", "rend", "decimate",
        "_mangle_", "_devastate_", "_cleave_", "_butcher_", "DISEMBOWEL",
        "DISFIGURE", "GUT", "EVISCERATE", "* SLAUGHTER *", "*** ANNIHILATE ***"
};

char * p_blade_messages[24] =
{
        "misses", "barely scratches", "scratches", "nicks", "cuts", "hits",
        "tears", "rips", "gashes", "lacerates", "hacks", "mauls", "rends",
        "decimates", "_mangles_", "_devastates_", "_cleaves_", "_butchers_",
        "DISEMBOWELS", "DISFIGURES", "GUTS", "EVISCERATES", "* SLAUGHTERS *",
        "*** ANNIHILATES ***"
};

char * s_blunt_messages[24] =
{
        "miss", "barely scuff", "scuff", "pelt", "bruise", "strike", "thrash",
        "batter", "flog", "pummel", "smash", "maul", "bludgeon", "decimate",
        "_shatter_", "_devastate_", "_maim_", "_cripple_", "MUTILATE", "DISFIGURE",
        "MASSACRE", "PULVERIZE", "* OBLITERATE *", "*** ANNIHILATE ***"
};
       
Post is unread #3 Jan 7, 2005, 6:38 pm
Go to the top of the page
Go to the bottom of the page

Thlundar

GroupMembers
Posts13
JoinedJan 7, 2005

Very simple one.

sprintf( buf1, "$n's %s %s $N%c", attack, vp, punct );
sprintf( buf2, "Your %s %s $N%c.", attack, vp, punct );
sprintf( buf3, "$n's %s %s you%c", attack, vp, punct );

change the second line there to read

sprintf( buf2, "Your %s %s $N%c [%d]", attack, vp, punct, dam );

or you might not want it in square brackets or whatever.

Hope that's what you were after.
       
Post is unread #4 Jan 8, 2005, 6:19 am
Go to the top of the page
Go to the bottom of the page

ayla

GroupMembers
Posts8
JoinedJun 28, 2004

I've already tried that. On compiling, I get the message "warning: int format, double arg (arg 7)"
       
Post is unread #5 Jan 8, 2005, 8:45 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

In which case you can try:

sprintf( buf2, "Your %s %s $N%c [%d]", attack, vp, punct, (int)dam );
       
Pages:<< prev 1 next >>