hi!
i tried to make the score show text based alignment instead of the number,
so i wrote this piece of code, i'm not any good at it, and got
declaration terminated incorrectly on every if and else if..
I have checked the archive and ftp, but i didn't find anything similar..
this is what the piece looks like..
char align[MAX_INPUT_LENGTH];
if (GET_ALIGNMENT(ch) >= 750 && !IS_NPC(ch))
align == "Saintly";
if (GET_ALIGNMENT(ch) <= 749 && !IS_NPC(ch))
align == "Beatific";
else if (GET_ALIGNMENT(ch) <= 499 && !IS_NPC(ch))
align == "Good";
else if (GET_ALIGNMENT(ch) <= 249 && !IS_NPC(ch))
align == "Neutral";
else if (GET_ALIGNMENT(ch) <= -250 && !IS_NPC(ch))
align == "Evil";
else if (GET_ALIGNMENT(ch) <= -500 && !IS_NPC(ch))
align == "Diabolic";
else //(GET_ALIGNMENT(ch) <= -750 && !IS_NPC(ch))
align == "Demonic";
I know this looks amateurish.. but it's the best i can do without taking
help from someone or something..
please correct my errors.. :)
// Peter
_________________________________________________________________
Chatta med kompisar online, prova MSN Messenger: http://messenger.msn.com
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
| Newbie List: http://groups.yahoo.com/group/circle-newbies/ |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT