Newagemugen
Newagemugen
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Newagemugen

We're The Best At What We Do - Runnin' The Mugen Underground Since 2010. Underground M.U.G.E.N community specializing in advanced Quality Mugen content, Fanart, Graphics, Fighting Games & more.

You are not connected. Please login or register

ReversalDef (SCTRLs)

2 posters

Go down  Message [Page 1 of 1]

1Tool ReversalDef (SCTRLs) Sat Jul 30, 2011 7:30 am

SaiyanCyborg97

SaiyanCyborg97

ReversalDef (SCTRLs) 49283851498_0631820187_o
Death Note (Wood)
Created Your first Forum Topic
★★Dark Master Of Fists★★
Newagemugen Member for over 10 Years

Defines a reversal. If one of P2's Clns1 boxes comes in contact with one of P1's Clsn1 boxes and a ReversalDef is active, then P1 will reverse P2's attack. Use with p1stateno (and optionally p2stateno) for creating reversal attacks.

ReversalDefs take the HitDef parameters pausetime, sparkno, hitsound, p1stateno, and p2stateno, plus:

Required parameters:
reversal.attr = attr_string
attr_string specifies the list of attack attributes that can be reversed by this ReversalDef. It is a standard hit attribute string. For instance, reversal.attr = SA,NA,SA means stand+air, normal attack, special attack.

Optional parameters:
sparkno = S1500, Overrides P2 hitspark

sparkxy = 0,0 The sparkxy parameter is treated as an offset to P2's hitdef's sparkxy. The MoveHit trigger can be used to detect if P1 successfully reversed P2

hitsound = S1,0 Sound upon hit

p1stateno = The stateno P1 changes to on hit

p2stateno = The stateno P2 changes to on hit

Code:
    [State 0, ReversalDef]
    type = ReversalDef
    trigger1 = 1
    reversal.attr = S,NA          ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
    pausetime = 0 ,0
    sparkno = S3000
    sparkxy = 0,0
    hitsound = S1,0
    p1sprpriority = 2
    p2sprpriority = 1
    p1stateno = 0
    p2stateno = 5000
    numhits = 1
    Id = 0
    hitflag = MAF        ;HLAFD+-
    ignorehitpause = 1
    ;persistent =

Additional Notes:
There is an undocumented "attr" parameter for the ReversalDef SCTRL, which should not be confused with the required "reversal.attr" parameter. This works similar to the attr parameter for the HitDef controller in that it will define attributes of the Reversal occuring from the ReversalDef, allowing the Reversal to be affected by an opponent's HitOverride controller if the Reversal's attributes match that of Player2's HitOverride. If omitted, the Reversal will have no attributes assigned to it, and thus will ignore the effects of Player2's HitOverrides.

You can also use the "ID" parameter for reversaldefs. Useful with gethitvar(chainid).

Additionally, there is a glitch in the Reversaldef controller which causes Player1 to retain Player2's target information even after Player2 returns to an Idle state. This allows Player1 to use target-based state controllers such as TargetState and TargetLifeAdd, as well as the Target redirection trigger, when they would normally not be allowed to. Through specific coding, it is possible to utilize this glitch to replicate a "damage-over-time" effect such as Poison.

Another good note about applying this SCTRL to helpers


________________________________________________________________________________________________________________________________________________________________________
Kamehame -404ERR
ReversalDef (SCTRLs) 110619113534f0_0

2Tool Re: ReversalDef (SCTRLs) Sat Jul 30, 2011 2:55 pm

G

G

ReversalDef (SCTRLs) OjtZ7W5
★★Thousand Dragon★★
Posted over 1000 Messages
★★Dark Master Of Fists★★
Newagemugen Member for over 10 Years
The Greatest Showman (Platinum)
Created 40 or more Unique Topics
★★Pot Of Prosperity★★
Commissioned/Donated to support Newagemugen
卍♆★Divine Overseer★♆卍
Verified Senior Forum support/assistant/curator
Lord Of War (Gold)
Obtained The Highest Tier 3 Warlord Class Rank
Fanservice (Bronze)
Recieved 20 or more likes from other Members

Interesting.


________________________________________________________________________________________________________________________________________________________________________

ReversalDef (SCTRLs) XqZWtLC
https://www.newagemugen.com/

3Tool Re: ReversalDef (SCTRLs) Sun Jul 31, 2011 12:01 pm

SaiyanCyborg97

SaiyanCyborg97

ReversalDef (SCTRLs) 49283851498_0631820187_o
Death Note (Wood)
Created Your first Forum Topic
★★Dark Master Of Fists★★
Newagemugen Member for over 10 Years

hopefully this is useful to somebody wanting to make parries and auto counters


________________________________________________________________________________________________________________________________________________________________________
Kamehame -404ERR
ReversalDef (SCTRLs) 110619113534f0_0

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum