I made a combat system where, there are some basic attacks and blocks. The problem is I have no clue how to design them so mobs can block and attack against players. I want to make it so combat starts when you click the mob. The basic combat commands are:
Sweep
Punch(left/right)
Roundhouse
Parry High(Blocks Punches, Roundhouse)
Parry Low (blocks sweep)
I need to know how to make it so mobs will have a good chance of blocking then attacking the player.
ID:166072
Sep 28 2006, 12:29 am
|
|
Sep 28 2006, 12:43 am
|
|
Use rand() to determine wether or not they get hit.
|
In response to Dice1989
|
|
i know, but like me try to break it down easier
You click the sweep button okay, and it will send a input message to you like this You begin a low motion sweep...... Now The player or mob has 3 seconds to click parry low so that it blocks that attack IE If they parried on time You parry [M]'s Sweep. and if they dont hit it rigt [M]'s sweep hits you for [1,000] damage. I just need to no a Mob system that lets them chance to block and how to make them to attack. |
In response to Rikishi
|
|
^bump
|
In response to Rikishi
|
|
This is untested and since I'm about to go to school, not enough time. use this only as an example
mob/var/sweeping=0 |
In response to Enfini-Desu
|
|
that works..but i still need a way to make combat start for NPC like a click button that makes them not able to move or anything.
|
In response to Rikishi
|
|
^
|