[Circle] [NEWBIE] stupid code question

From: grond (grond@grotl.com)
Date: 08/18/96


Ok I know I've missed something totally idiotic with this one, but....

I'm trying to get the damage you do when you hit a victim to give some
additional clues to the other user on how damaged the victim is.

I've added the following snippet of code to fight.c
------------

int percent;

percent = (GET_HIT(victim) / GET_HIT_MAX(victim)) * 100

followed by a number of if statements on what to do with various percent
levels.

Problem is, it's getting the right GET_HIT and GET_HIT_MAX values but
not doing anything in percent.

Percent continues to show 0 and doesn't change.

Ok, what has the newbie missed here.

Grond

SENT FROM: GAME ROOM ON THE LAKE BBS (GROTL.COM)
YOUR PLACE FOR ONLINE ENTERTAINMENT
PHONE: (704) 664-6742


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+


From osjelson@spinach.mscc.huji.ac.il Sun, 18 Aug 96 16:00:27 +0200
X-SystemInfo: MyE-Mail: EMail
X-Message-No: 3781 (database)
From: jeremy elson <osjelson@spinach.mscc.huji.ac.il>
To: Ryan C. Morrow <rcmorrow@nextel.net>
Subject: Re: [Circle] CircleMUD for Win95 
Date: Sun, 18 Aug 96 15:00:00
Message-ID: <9608181300.AA22483@spinach.mscc.huji.ac.il>
X-POP3-Rcpt: lk4150@per
Return-Path: <@QUCDN.QueensU.CA:owner-circle@cspo.queensu.ca>
Received: from QUCDN.QueensU.CA (QUCDN.QueensU.CA [130.15.126.2]) by per.cybercity.dk (8.6.12/8.6.12) with SMTP id SAA08342 for <lk4150@krull.dk>; Sun, 18 Aug 1996 18:49:54 +0200
Received: from cspo.queensu.ca by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Sun, 18 Aug 96 12:55:56 EDT
Received: by cspo.queensu.ca (SMI-8.6/SMI-SVR4)id MAA01528; Sun, 18 Aug 1996 12:44:30 -0500
Received: from spinach.mscc.huji.ac.il by cspo.queensu.ca (SMI-8.6/SMI-SVR4)
Received: by spinach.mscc.huji.ac.il (AIX 3.2/UCB 5.64/4.03)
Cc: "CircleMUD Mailing List" <circle@cspo.queensu.ca>
Sender: owner-circle@cspo.queensu.ca
Precedence: bulk

> If possible, would someone please post the entire working code of Circle 3.
> bpl 11 ported to Win95 on the FTP site?

There will be an officially supported Win95 binary distribution of Win95
once 3.0 comes out (which will probably be a few weeks after I get back
from vacation, i.e. mid-October).  I'd prefer not to have binary
distributions of beta code floating around, but of course I can't stop
anyone if they want to upload binaries.  Just keep in mind that they won't
be "officially" supported (whatever official means) until Real 3.0. 

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/07/00 PST