Armor mode code

Started by -_Shadow_-, April 21, 2010, 02:33:53 AM

Previous topic - Next topic

-_Shadow_-

i need a armor code, normal armor mode like in kof 2000

nothing i do seems to make it work -_-''

can someone gimme a hand on this? :p

Cyanide

If this is anything super armour like, it's in the code library.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

-_Shadow_-

super armor or armor mode from kof 2000 like :p

can you link me please? i can't find it in the code library  :P

Sam


GT

The Super Armor mode. I think it was in 99-2000-2001. I'm not really sure though. Ignored 1 hit and gave infinite supers+super cancels or something of the sort.

-_Shadow_-

http://www.youtube.com/watch?v=r0MAH1JX2o0

that armor mode :p

i want add it to a char im editing

Cyanide

It IS in the code library. It took me 2 minutes without the search button.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

-_Shadow_-

Cool found it, and it works but only in specific states, i mean it works alone in statedef 100 (not in  armor mode but normal mode)

but i want it to know in all states when armor mode gets triggered

cant make it work.... yet -_-''

Noctis

-2 statedef?
trigger1 = stateno = [0,9999]
?

(Youtube) (WIP) (Mediafire) (New Anime Shop) My Manga Reviews! Personal favorite Patreon! Check her out!

"There is nothing either good or bad, but thinking makes it so."

-_Shadow_-

im using this

Spoiler (click to show)
Quote from: SorrowEdge on May 29, 2005, 04:05:38 AM
The increase of a character's resistance. This particular code also gives the character a special trait: He/She will not be able to be knocked down as easily, giving some sort of a "brick wall" feel.


This will require several things:

1.) In the StateDef of all of your character's states, (excluding getting hit states) add in:

velset = (prevstateno = 9000)* X,(prevstateno = 9000)* Y

X is the character's horizontal velocity, and Y is the character's Y velocity.

facep2 = !(prevstateno = 9000)

facep2 causes your character to face the opponent at the beginning of the state.

ctrl = 1

The ctrl parameter is only required in state 0, (standing state) and in state 11, (crouching state) as you want to retain control when getting hit.

2.) Next, the required animation parameter:

[State ***, ChangeAnim]
type = ChangeAnim
trigger1 = Time = 0 && Anim != ***
value = ***


3.) The required -2/-3 states:

;The armor effect only occurs when your character not in his/her basic states.
(standing, walking, etc...)
[State -3, VarSet]
type = VarSet
trigger1= (StateNo >= 200) && (MoveType != H)
var(0) = StateNo

[State -3, Armor2]
type = HitOverride
trigger1= (StateNo >= 200) && (MoveType != H)
time = 1
slot = 2
attr = SCA, AA
stateno = 9000

4.) Lastly, the armor state!

[Statedef 9000]
MoveType = H?

[State 9000, PosFreeze]
type = PosFreeze
trigger1 = 1
value = 1

[State 9000, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA, AA, AP
time = 1

[State 9000, LifeAdd]
type = LifeAdd
trigger1 = Time = 0
value = - floor(gethitvar(damage) / 2)

[State 9000, ChangeAnim]
type = ChangeAnim
trigger1 = Time < floor(gethitvar(hittime) * 0.8)
value = Anim
elem? = AnimElemNo(0)

[State 9000, End]
type = ChangeState
trigger1 = Time >= floor(gethitvar(hittime) * 0.8)
value = Var(0)


the states i put armor on it gets armor in normal also in armor mode, i just want armor state in armor mode

this is my armor mode

Spoiler (click to show)
[Statedef 990]
type    = S
movetype= A
physics = S
anim = 990
velset = 0,0
ctrl = 0
poweradd = 0
velset = (prevstateno = 90000)* 3.4,(prevstateno = 90000)* 0
facep2 = !(prevstateno = 90000)


[State -3, VarSet]
type = VarSet
trigger1= (StateNo >= 0) && (MoveType != H)
var(0) = StateNo

[State -3, Armor2]
type = HitOverride
trigger1= (StateNo >= 100) && (MoveType != H)
time = 1
slot = 2
attr = SCA, AA
stateno = 90000

~ explods ~

[State 1531, 5]
type = varset
trigger1 = 1
var(14) = 1200


[State 1531, 5]
type = varset
trigger1 = 1
var(42) = 1200

[State 1531, 5]
type = varset
trigger1 = animtime = 0
var(11) = 2

[State 1531, 5]
type = varset
trigger1 = animtime = 0
var(41) = 0

[State 990,1]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

mah -_-'' this codes are making me feel dizzy -_-''

Cyanide

You're already using var(0) as an on/off switch. What's the problem with using it for the super armour too?

Short answer, there isn't one, use it.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

-_Shadow_-

i tryed in a few states the code and i get armor mode when i get hit  but i get armor mode in normal mode (in armor mode too of course), i only want armor mode in armor mode state -_-'' this thing is driving me crazy xP