mugen chars, rare characters
Mugen | CHAT | Hyper armor coding - Forum | Registration | Login
[New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Hyper armor coding
BabricogurlDate: Saturday, 2009-11-28, 11:36 PM | Message # 1
Hero
Group: contributor
Messages: 429
Awards: 3
Reputation: 7
Reproofs: 0%
Status: Offline
You want to know how to make characters like big bad bosses. This part will teach you how to add Hyper Armor. With this power, your characters will be like a tank.

Go into your CNS file and add this:

[StateDef 44304]
ctrl = 0
physics = N
velset = 0
sprpriority = -5

[State 44304, Follow]
type = BindToRoot
trigger1 = 1
time = -1
facing = 1
pos = 0,0

[State 44304, Mimic]
type = ChangeAnim
trigger1 = SelfAnimExist(Root,Anim)
value = Root,Anim
elem = Root,AnimElemNo(0)

[State 44304, STSS]
type = StateTypeSet
trigger1 = Root,StateType = S
StateType = S

[State 44304, STSC]
type = StateTypeSet
trigger1 = Root,StateType = C
StateType = C

[State 44304, STSA]
type = StateTypeSet
trigger1 = Root,StateType = A
StateType = A

[State 44304, STSL]
type = StateTypeSet
trigger1 = Root,StateType = L
StateType = L

[State 44304, MTSA]
type = StateTypeSet
trigger1 = Root,MoveType = A
MoveType = A

[State 44304, MTSI]
type = StateTypeSet
trigger1 = Root,MoveType = I
MoveType = I

[State 44304, MTSH]
type = StateTypeSet
trigger1 = Root,MoveType = H
MoveType = H

[State 44304, Hide]
type = AssertSpecial
trigger1 = 1
flag = invisible
flag2 = NoShadow

[State 44304, NHB]
type = NotHitBy
trigger1 = 1
value = , AT
time = -1

[State 44304, HO]
type = HitOverride
trigger1 = 1
attr = SCA, AA,AP,AT
time = -1
stateno = 44305

[StateDef 44305]
ctrl = 0
physics = N
velset = 0
sprpriority = -5

[State 44305, PVS]
type = ParentVarSet
trigger1 = 1
var(20) = GetHitVar(damage)

[State 44305, Revert]
type = ChangeState
trigger1 = 1
value = 44304

Then, put this at the top of StateDef -1:

[State -1, Hide]
type = AssertSpecial
trigger1 = IsHelper(44304)
flag = invisible
flag2 = NoShadow
IgnoreHitPause = 1

[State -1, Reset]
type = SelfState
trigger1 = IsHelper(44304)
trigger1 = StateNo != [44304,44305]
value = 44304
IgnoreHitPause = 1

Note: Make sure none of the controllers below these two can ever be triggered for the armor helper.

Next put these in StateDef -3:

[State -3, ArmorHelper]
type = Helper
trigger1 = !NumHelper(44304)
trigger1 = Alive
name = "Armor"
ID = 44304
StateNo = 44304
KeyCtrl = 1
PauseMoveTime = 2147483647
SuperMoveTime = 2147483647

[State -3, Ow]
type = LifeAdd
trigger1 = var(20) && StateNo != [120,155]
value = -var(20)

[State -3, Reset]
type = VarSet
trigger1 = 1
var(20) = 0

Also this into StateDef -2:

[State -2, HandsOff]
type = NotHitBy
trigger1 = 1
value = SCA
time = -1
IgnoreHitPause = 1

tongue


http://www.youtube.com/user/TheBabricogurl
 
buyDate: Sunday, 2009-11-29, 6:00 PM | Message # 2
Angel
Group: Administrators
Messages: 1243
Awards: 2
Reputation: 14
Status: Offline
Nice.
 
BabricogurlDate: Wednesday, 2009-12-02, 5:40 AM | Message # 3
Hero
Group: contributor
Messages: 429
Awards: 3
Reputation: 7
Reproofs: 0%
Status: Offline
Ty cool

http://www.youtube.com/user/TheBabricogurl
 
  • Page 1 of 1
  • 1
Search:

Copyright MyCorp © 2024 Create a free website with uCoz