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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ fprompt %c

fprompt %c

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


Posted by Hatespyware   (10 posts)  Bio
Date Fri 03 Jan 2003 05:38 PM (UTC)
Message
I'm interested in having opponents' health listed in the fighting prompt. It appears that there is code for this in the display_prompt() of comm.c, but:
fprompt ~&G<&Y%hhp &C%mm &G%vmv &W%Xxp &G| &C%C&G~>
results in a fighting prompt of:
<39hp 106m 109mv 6418xp | >
(no damage listing)

Any ideas?
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #1 on Fri 03 Jan 2003 05:57 PM (UTC)

Amended on Fri 03 Jan 2003 05:58 PM (UTC) by Meerclar

Message
Is that your normal prompt or your prompt during combat? Typically opponent info only displays if there is actually info to be displayed.

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

Posted by Hatespyware   (10 posts)  Bio
Date Reply #2 on Fri 03 Jan 2003 06:21 PM (UTC)
Message
Like I stated, I set that prompt w/ fprompt.
Top

Posted by Loki   (44 posts)  Bio
Date Reply #3 on Fri 03 Jan 2003 10:42 PM (UTC)

Amended on Sat 04 Jan 2003 05:47 AM (UTC) by Loki

Message
I can't help to notice that a lot of people
that post for other's assistance don't seem to
understand that a reply to their predicament is a
courtesy. What happen to manners? Have they
faded away?

Example:
=======================================
I need Help! I am trying to get my buffer to print on
My Lexmark color jet printer.

Reply:
Did you make sure you printer was on ?
=======================================
Notice how the person who replied asked the first question
That you would ask to give this person assistance.(printer
Won’t work unless it is on right?

Now there is a few ways one may reply to the replier

Example:
=======================================
No Crap do you think I am stupid!
or
Like I said, blah blah blah( this makes it
look like you are saying that the replier
is blind or stupid. It is another way
of saying "What Didn't you understand"
=======================================

And here is the way that one should reply to the replier:

Example:
=======================================
Thank you Meer for the swift reply. Yes I do have the printer
on but it is still not printing like it should

=======================================

I hope that this does help in someway, hopefully
In the future you will use this. And if you do
I promise that someone might actually be more willing
To help you with your problem.

-LºKi_
Founder
Endless Dreams
Top

Posted by Kris   USA  (198 posts)  Bio
Date Reply #4 on Sat 04 Jan 2003 09:09 AM (UTC)
Message
Preaches of mannerism aside, what exactly are you trying to do with your fighting prompt? You say the problem is "(no damage listing)". What do you mean by that? Do you mean how much damage you've done to your opponent, how much damage you've taken by a hit, how much damage you've taken overall, etc?

Just clarify for me a bit what you're trying to do exactly, and it shouldn't be a problem to do :)
Top

Posted by Hatespyware   (10 posts)  Bio
Date Reply #5 on Sat 04 Jan 2003 10:30 AM (UTC)
Message
I posted 2 questions to this board looking for answers. If you don't have answers, you shouldn't respond, since it just confuses the issue.

>what exactly are you trying to do with your fighting prompt?

I stated very clearly that I was looking to have opponents' health displayed. As the %c in the thread title indicated. If you still don't understand what I'm trying to do, you have no business posting (IMNSHO).
Top

Posted by Boborak   USA  (228 posts)  Bio
Date Reply #6 on Sat 04 Jan 2003 01:02 PM (UTC)
Message
If you can't carry a conversation without a level of appreciation and courtesy, you have no business posting at all! Questions or otherwise.. (IMNSHO)

I could help you with your problem, as I imagine many that read these forums could, but why would we want to help someone who has no appreciation?....

Now, if you notice in your example you used a %C not %c
The %C is YOUR health not your opponents. Secondly, if that was merely a typo on your part and you did use a %c, then you should provide us with more info, like what you were fighting in your tests and how long it took you to kill it (which both could potentially play a part in what you saw on your prompt)
Top

Posted by Kris   USA  (198 posts)  Bio
Date Reply #7 on Sat 04 Jan 2003 06:00 PM (UTC)
Message
I think I found your problem. Are you testing this fprompt with a mortal character? If so, then it won't display the %c part, and here's why:

case 'c':
if ( !IS_IMMORTAL( ch ) ) break;
if ( !ch->fighting || ( victim = ch->fighting->who ) == NULL )
strcpy( pbuf, "N/A" );


That's taken from display_prompt in comm.c. Notice the line "if ( !IS_IMMORTAL( ch ) ) break;"

The SMAUG ppl put that in for who-knows-what-reason. Basically says that, if you're not an immortal, you can't see that prompt stat. To fix it, simply remove that line of code, so you should be left with:

case 'c':
if ( !ch->fighting || ( victim = ch->fighting->who ) == NULL )
strcpy( pbuf, "N/A" );


I think that should take care of ur problem =)
Top

Posted by Hatespyware   (10 posts)  Bio
Date Reply #8 on Sun 05 Jan 2003 10:58 AM (UTC)
Message
That was exactly the problem. Thank you.
Top

Posted by Kris   USA  (198 posts)  Bio
Date Reply #9 on Sun 05 Jan 2003 07:59 PM (UTC)
Message
You're welcome =)
Top

Posted by Loki   (44 posts)  Bio
Date Reply #10 on Sun 05 Jan 2003 08:53 PM (UTC)

Amended on Sun 05 Jan 2003 08:58 PM (UTC) by Loki

Message
==================================
I posted 2 questions to this board looking for answers. If you don't have answers, you shouldn't respond, since it just confuses the issue.

>what exactly are you trying to do with your fighting prompt?

I stated very clearly that I was looking to have opponents' health displayed. As the %c in the thread title indicated. If you still don't understand what I'm trying to do, you have no business posting (IMNSHO).
=================================

An example of “Poor Mannerisms”….
or just not educated?

What we see above may be interpreted as a statement
made by someone who believes that they are too good or
hold a higher stature then others to articulate even a trifling
amount of apologetic expression for their impolite, unappreciative,
out right bad-mannerism.

This may not be the case. Could it be possible that this person
may not have been taught manners?

Maybe, what this person was trying to express is that he was
sorry and that he did not intend for his/her comments to be taken
in such a manner. Or this might just be, in fact, a case of
“ I am better then everyone else and I incapable of admitting
to my wrongs’.

Either way I am happy to see that this person’s mannerisms do
seem to improve towards the end. After he is given what he wants
he does show some form of appreciation.

“That was exactly the problem. Thank you.”

There is hope after all!! :)

Just rember that it is not just "Please" and "Thank You"
It is everything between aswell.




-LºKi_
Founder
Endless Dreams
Top

Posted by Hatespyware   (10 posts)  Bio
Date Reply #11 on Sat 01 Nov 2003 11:39 AM (UTC)
Message
If I offended you, Loki - Good! You've made several responses to my posts, and none of them offerered anything other than moral commentary. I already hear enough commentary from people who have nothing else to offer.
Top

Posted by Gatewaysysop2   USA  (146 posts)  Bio
Date Reply #12 on Sat 01 Nov 2003 05:59 PM (UTC)
Message
Quote:

"I already hear enough commentary from people who have nothing else to offer."


Not a surprise.

Maybe if you weren't so rude and showed a bit more courtesy and respect for the people trying to help you, they'd comment more on your questions and less on your childish behavior. Just a thought. ;)



"The world of men is dreaming, it has gone mad in its sleep, and a snake is strangling it, but it can't wake up." -D.H. Lawrence
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #13 on Sat 01 Nov 2003 10:31 PM (UTC)
Message
For what it's worth, your problems are amongst the simplest out there, Hatespyware, but your attitude doesn't exactly make me want to help you.

The reason we ask seemingly simple questions is that many people don't exactly know what they're doing (otherwise they'd fix it themselves, right?) so we have to start at square 1 (or even square 0...) in order to make sure we know what's going on, and where the person is.

Being snotty in your replies will just drive people away.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #14 on Sun 02 Nov 2003 09:12 PM (UTC)
Message
OK, thanks everyone. :)

So far this forum has stayed reasonably calm and helpful and I would like it to stay that way. I have been on other mailing lists in the past where the abuse and counter-abuse had grown so high that actual problems and their solutions gradually dwindled to about 10% of the postings.

Please leave it alone now. I would comment however that some of us tend to skim (when reading messages), so forgive us if we ask questions, the answer to which are buried in the post somewhere.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


37,571 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.