• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

How to duplicate Marh/Ike's Counter?

SaxMeister13

Smash Rookie
Joined
Nov 8, 2009
Messages
22
I'm trying to add a counter attack that roughly mimics Marth's and Ike's Down-B counters. The problem is that I have absolutely no idea what's causing the actual "counter" effect. I've gone over both of their files line-by-line and feel like I understand what's going on, except that there's nothing telling them to jump to a different sub-action when they're hit. Somehow they do that on their own. Based on some searching, it looks like people have completely duplicated the code without getting the counter as well.

Is this possible to duplicate, or is it hard-coded for these two?
 

[TSON]

Hella.
Joined
May 7, 2008
Messages
3,422
Location
Macomb, MI
NNID
oTSONo
Not 100% how to duplicate it but RA-Bit[17] is what sets the counter window and tells it to jump to the next sequential subaction.
 

Eldiran

Smash Lord
Joined
Jan 8, 2008
Messages
1,707
Location
Pennsylvania
I believe it is hard-coded. I investigated it a while back and could find nothing unique about their counter Actions or Subactions. RA-Bit[17] does control when they can counter, but it doesn't work for others.
 

God of Humility

Smash Journeyman
Joined
Jul 28, 2009
Messages
321
Isn't there a "if hit' requierment? Maybe you could do a "if hit, do this subaction".
 

shanus

Smash Hero
Joined
Nov 17, 2005
Messages
6,055
Really! That sounds quite useful. Do we know any of 1C's details?
1C: Value = article of interest

Its how olimar stops plucking after 6 pikmin, snake's nade count, among other things.

We haven't probed any more than that.
 

SaxMeister13

Smash Rookie
Joined
Nov 8, 2009
Messages
22
So if 1C is about articles, does that mean we don't know of an "if hit" requirement after all?

What about Lucario's counter? I've tried to look at it, but the code is a lot messier and I can't follow it.

*cowers in a corner for interrupting*
 

Eldiran

Smash Lord
Joined
Jan 8, 2008
Messages
1,707
Location
Pennsylvania
The only possible way I can think to implement a counter would be to track your character's percentage during the move, give him super armor, and make him attack if it increases.

Damage % is tracked by IC-Basic[2].
 

shanus

Smash Hero
Joined
Nov 17, 2005
Messages
6,055
Set super armor
Set IC-Basic[2] = some RA-Float or basic.

Do a change action to the next special in the series wherein the req is if IC-Basic[2] > RA-Float you assigned at the start.
 

Eldiran

Smash Lord
Joined
Jan 8, 2008
Messages
1,707
Location
Pennsylvania
Set super armor
Set IC-Basic[2] = some RA-Float or basic.

Do a change action to the next special in the series wherein the req is if IC-Basic[2] > RA-Float you assigned at the start.
Actually you'd want

Set RA-Float or basic = IC-Basic[2].

But I get what you meant.
 

SaxMeister13

Smash Rookie
Joined
Nov 8, 2009
Messages
22
The only possible way I can think to implement a counter would be to track your character's percentage during the move, give him super armor, and make him attack if it increases.

Damage % is tracked by IC-Basic[2].
I wouldn't have thought of that, but it makes perfect sense. Thank you! I appreciate you helping out a rookie like me.

Edit: I meant "you" plural. :)
 
Top Bottom