|
Quintus Newbie
Joined: 29 Aug 2013 Posts: 4
|
Posted: Tue Sep 10, 2013 10:19 pm
Catching a special combat action |
This may seem complex. I hope I'm explaining it to the best of my ability.
We have a martial arts class that uses a combination of four unique martial arts actions (kick, punch, roundhouse, uppercut) to deal damage. Certain combinations of these (example: punch-kick-uppercut) will combo together to do something special, i.e. cast a spell automatically.
The problem lays within the punch martial art action. It looks identical to a normal combat damage round hit when they miss. I have two examples to show you. The first is a normal, properly executed combo of punch-kick-uppercut.
Your punch <<< ERADICATES >>> A Street Urchin! -=272=-
Your punch <<< ERADICATES >>> A Street Urchin! -=217=-
Your punch <<< ERADICATES >>> A Street Urchin! -=232=-
Your punch >-> DESTROYS <-< A Street Urchin! -=302=-
Your punch misses A Street Urchin. -=0=-
Your punch <<< ERADICATES >>> A Street Urchin! -=194=-
Your punch <<< ERADICATES >>> A Street Urchin! -=188=-
Your punch <<< ERADICATES >>> A Street Urchin! -=260=-
You dodge A Street Urchin's attack.
A Street Urchin is barely breaking a sweat. [96%]
4979h 3365m 15q 13j 1000a>>> punch
Your shattering punch to the stomach >-> DESTROYS <-< A Street Urchin! -=341=-
A Street Urchin is barely breaking a sweat. [96%]
4979h 3365m 15q 13j 1000a>>> kick
Your punch >-> DESTROYS <-< A Street Urchin! -=332=-
Your punch <<< ERADICATES >>> A Street Urchin! -=228=-
A Street Urchin dodges your attack.
Your punch <<< ERADICATES >>> A Street Urchin! -=215=-
Your punch <<< ERADICATES >>> A Street Urchin! -=251=-
Your punch misses A Street Urchin. -=0=-
Your punch <<< ERADICATES >>> A Street Urchin! -=253=-
You dodge A Street Urchin's attack.
You hear in the distance a church bell toll midnight.
You are starving.
Eat something or die.
A Street Urchin is barely breaking a sweat. [96%]
4960h 3371m 14q 12j 1000a>>>
You string your attacks into a combo!
Your crippling kick to the arm -+- DESSICATES -+- A Street Urchin! -=515=-
A Street Urchin is barely breaking a sweat. [96%]
4960h 3371m 14q 12j 1000a>>> uppercut
Your shattering uppercut to the chest COMPLETELY TRASHES A Street Urchin! -=1067=-
You performed a COMBO MOVE!
You slam into A Street Urchin, and send him flying!
A Street Urchin is barely breaking a sweat. [96%]
4960h 3371m 14q 12j 1000a>>>
Easy to trigger on. You see the punch when it lands has a different format ("shattering punch" and a location such as "stomach") than the normal in-round punches. However now look at the same example, where I miss the punch:
Your punch <<< ERADICATES >>> A Street Urchin! -=272=-
Your punch <<< ERADICATES >>> A Street Urchin! -=217=-
Your punch <<< ERADICATES >>> A Street Urchin! -=232=-
Your punch >-> DESTROYS <-< A Street Urchin! -=302=-
Your punch misses A Street Urchin. -=0=-
Your punch <<< ERADICATES >>> A Street Urchin! -=194=-
Your punch <<< ERADICATES >>> A Street Urchin! -=188=-
Your punch <<< ERADICATES >>> A Street Urchin! -=260=-
You dodge A Street Urchin's attack.
A Street Urchin is barely breaking a sweat. [96%]
4979h 3365m 15q 13j 1000a>>> punch
Your punch misses A Street Urchin. -=0=-
A Street Urchin is barely breaking a sweat. [96%]
4979h 3365m 15q 13j 1000a>>> kick
Your punch >-> DESTROYS <-< A Street Urchin! -=332=-
Your punch <<< ERADICATES >>> A Street Urchin! -=228=-
A Street Urchin dodges your attack.
Your punch <<< ERADICATES >>> A Street Urchin! -=215=-
Your punch <<< ERADICATES >>> A Street Urchin! -=251=-
Your punch misses A Street Urchin. -=0=-
Your punch <<< ERADICATES >>> A Street Urchin! -=253=-
You dodge A Street Urchin's attack.
You hear in the distance a church bell toll midnight.
You are starving.
Eat something or die.
A Street Urchin is barely breaking a sweat. [96%]
4960h 3371m 14q 12j 1000a>>>
Your crippling kick to the arm -+- DESSICATES -+- A Street Urchin! -=515=-
A Street Urchin is barely breaking a sweat. [96%]
4960h 3371m 14q 12j 1000a>>> uppercut
You don't have the momentum for this move!
A Street Urchin is barely breaking a sweat. [96%]
4960h 3371m 14q 12j 1000a>>>
Notice the bold olive lines. They look identical.
What I'm trying to do is set up a group of triggers that will constantly loop the combo. I'm having trouble figuring out how to detect the punch line that is "all alone" so to speak. Anyone have advice here? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Sep 15, 2013 11:43 pm |
You could use a three-state trigger where each state is a command-input type. First state would be for the punch command, second would be for the kick command, and the third would be for the uppercut command. This would at least guarantee the looping, but you'd have no good way to track hits/misses or stop the loop.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|