I Need Help With Simple Combat :/

Hello everyone,

I am working on a game that requires simple combat skills, so I am thinking of adding about 3 different animations for the basic attack but what i can’t achieve is the random choosing part. I don’t know how to make it pick from the 3 different attacks by random so I’m looking for some one who could help me. Please tell me how to do it exactly and if a script is needed please give it to me.

Thanks! :slight_smile:

http://www.dreamincode.net/code/snippet1863.htm

this may be of use, i dont know much about python yet, but i do know from my game maker days that you basically need to make dice that rolls on say “x click” and what ever rolls, that attack is played. this script shows something like that. in addition to this you may want to program a delay so the player dosent just keep attacking

import random
property = randint(1,2,3)