R: Re: [CIRCLE] stats limit

From: razor (drbwana@tin.it)
Date: 06/21/00


>   else if (GET_DEX(ch) <= 17)
>     strcat(buf, "Very Good");
>   else if ((GET_DEX(ch) = 25))
>     strcat(buf, "Godlike!");
>   else strcat(buf, "Superb");
> since I am obviously missing something here, what is wrong with
comparing the
> stat this way and how should I compare if it is 25 without making
numbers
> between 19-24 jump up?
Typical error =)
((GET_DEX(ch) = 25)) is an assignation, it should be (GET_DEX(ch) ==
25)
Remember, == is for compare, = is for assign =)
--
Razor [Chief of Darkmud: Breed of Darkness @ darkmud.gamersrevolt.com
4000]
If it happens once, it's a bug.
If it happens twice, it's a feature.
If it happens more than twice, it's a design philosophy.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT