Subj : help needed To : Leonard Erickson From : Dennis Collins Date : Thu Oct 12 2000 08:38 am LE> DC> I am working on a game currently and have come to a LE> DC> section that is causing me a small amount of LE> DC> grief...... the routine has to return a boolean based LE> DC> on a percentage ie TRUE = hit, FALSE = miss, and there LE> DC> weapons used. example: weapon 1 has 1% chance of LE> DC> hitting target weapon 2 has 13% chance of hitting LE> DC> target etc weapon 10 thanks for the assist. LE> I'm not entirely clear what you want to routine to *do*. LE> Yes, I understand that you want it to return true or false. LE> What I'm *not* clear on is how it is supposed to *do* that. if the player uses weapon 1 which has for example an accuracy of 3% then if he uses it 100 times then he will randomly hit the target only 3 times, if the player uses another weapon with an accuracy of 38% and plays 100 times again he would hit the target 38 times, however if he only plays 50 turns then he will only achive a hit 19 times. cheers .... <> --- FMail 1.48 * Origin: Midi-Maze BBS... Christchurch... 64-3-385-5391 (3:770/355) .