Okay, let's see, I've been looking into making a class, well actually I am making a class... I looked through the WTFAQ intro to adding a class, and it didn't say anything about the saving throws.... Anyways, I was thinking wouldn't it be smarter to make an array with all the saving throws for each class and level instead of a truckload of switch statements.... ? -Spike For example: saving_throws[4][5][40] = { /*4 classes, 5 saves, 40 levels*/ /*spell1 spell2 spell3 spell4, spell5 */ /* Magic User */ { { 100, 100, 100, 100, 100 }, { 98, 98, 98, 98, 98 }, { 80, 80, 80, 80, 80 }, { ............. }, { 0, 0, 0, 0, 0} }, /*cleric */ { { 100, 100, 100, 100, 100 }, { 98, 98, 98, 98, 98 }, { 80, 80, 80, 80, 80 }, { ............. }, { 0, 0, 0, 0, 0} }, { { rest of them } } }; _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.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/24/03 PDT