Still on a newbieish side.. Would a REAL coder tell me if this is messed up? add_dam = 0; if (GET_STR(ch) == 18) add_dam = int(GET_ADD(ch)/10); damage = ((GET_STR(ch) + add_dam) * GET_LEVEL(ch) * 3); (this depends on if you want to add level to str then multiply or just multiply all of them as above) damage = (((GET_STR(ch) + add_dam) + GET_LEVEL(ch)) * 3); -----Original Message----- From: Circle Discussion List [mailto:CIRCLE@post.queensu.ca]On Behalf Of Slate Sent: Tuesday, February 22, 2000 10:20 AM To: CIRCLE@post.queensu.ca Subject: [CIRCLE] Using player attributes to calculate damage Would someone please give me an example of how to utilize a player's strength or constitution to calculate damage for an ADDED skill? For example, suppose I want the damage for SKILL_CHOKE to equal 3 * the character's strength level. How do I pull that into the code line? (I'm new to dealing with the coding aspects of the game, have found it rather simple to modify the basic bash, kick, etc aggy skills, and aggy spells, but can't get the attributes thing licked. Anyone willing to help me?) James +------------------------------------------------------------+ | 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