Ok, so I'm developing a combat system, where you choice your attack from a list, and your enemy chooses a counter-action. ie You pick left punch and your oppenent choices block high.
How would you check to see if your oppenent choice block high or any other defensive action?
ID:161722
![]() Apr 7 2008, 11:57 am
|
|
![]() Apr 8 2008, 3:33 am
|
|
Well... the same as when you check what the attacking player chose? Where are you initiating the choosing from? You can show your code and we'll see.
|
Kaioken wrote:
Well... the same as when you check what the attacking player chose? Where are you initiating the choosing from? You can show your code and we'll see. Well, I don't have a basic code, but pretty much i have a physicalattack = list("Left Punch","Right Punch","Elbow","Knee","Right Kick","Left Kick") Person chooses the attack, and then I don't know how to check to see if the enemy AI chooses a skills that would be in physicaldefense = list("Block High","Block Low","Duck") |
I dunno, maybe something like this?
matrix or this? proc |