Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: adding super armour to a char  (Read 1364 times)

Offline Thunder Wolf

  • ***
  • Posts: 129
  • Referrals: 0
adding super armour to a char
« on: May 17, 2009, 09:27:41 AM »
how do i add the super armour? the kind juggernaut has? i wanted it for savage hulk and kal elvis and hannibles superman, if theres a tutorial out there or u know how please let me know.
thanks

Offline Bowasiel

  • Sprite Artist/ Creator
  • ***
  • Posts: 93
  • He's coming...
  • Referrals: 0

Offline Thunder Wolf

  • ***
  • Posts: 129
  • Referrals: 0
Re: adding super armour to a char
« Reply #2 on: May 17, 2009, 03:30:16 PM »
ah yes iv seen that before when i googled it but for the life of me i cant figure out where to punch all that in.

where do i place that information?
« Last Edit: May 19, 2009, 11:05:55 PM by Thunder Wolf »

Offline Thunder Wolf

  • ***
  • Posts: 129
  • Referrals: 0
Re: adding super armour to a char
« Reply #3 on: May 22, 2009, 07:10:32 AM »
does anyone know how to use that?

Offline Bowasiel

  • Sprite Artist/ Creator
  • ***
  • Posts: 93
  • He's coming...
  • Referrals: 0
Re: adding super armour to a char
« Reply #4 on: May 22, 2009, 09:55:00 AM »
it has got instructions..do u know how to use fighter factory? Open the char, go to CNS add the state and the states -1,-2 and -3 in the states with the same name

Offline Thunder Wolf

  • ***
  • Posts: 129
  • Referrals: 0
Re: adding super armour to a char
« Reply #5 on: May 22, 2009, 07:00:34 PM »
im still totally confuzed, that doesnt make sense. which cns file? where do i put it, those files have a ton of text, where do i put the first statdef, i really dont understand

Offline YD

  • ******
  • Posts: 3085
  • Country: 00
  • Referrals: 0
Re: adding super armour to a char
« Reply #6 on: May 27, 2009, 07:03:46 PM »
im still totally confuzed, that doesnt make sense. which cns file? where do i put it, those files have a ton of text, where do i put the first statdef, i really dont understand

;CNS
;-----------------------------------
;
[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

The above you type or copy and paste into in cns perferably at the end and in which ever cns file has the standard coding like walking, punching and that sort of stuff.

Then below you put in the CMD file that list the move and definitions and such. Use fighter factory.

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


Then finally copy and paste or type this in the cns file again where ever you see the spot that says.
;---------------------------------------------------------------------------
; States that are executed when in self's state file (use statedef -3)
;---------------------------------------------------------------------------
[Statedef -3]


Then after put, type , copy or whatever, this.



[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


and  where it has this in the cns file.

;---------------------------------------------------------------------------
; States that are always executed (use statedef -2)
;---------------------------------------------------------------------------

[Statedef -2]

After that you type or paste this.


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



Hope that clears it up for you.

Offline hyperion76

  • CC In Absentia
  • ****
  • Posts: 162
  • Referrals: 0
Re: adding super armour to a char
« Reply #7 on: May 27, 2009, 09:27:21 PM »
 8) wow great walkthrough 8)

Offline YD

  • ******
  • Posts: 3085
  • Country: 00
  • Referrals: 0
Re: adding super armour to a char
« Reply #8 on: May 27, 2009, 10:36:25 PM »
8) wow great walkthrough 8)

It was nothing I just hope I helped TW to understand, I tried to keep it simple and to the point. But thank you for the comment. * YoungDragun takes a bow * :)

Offline Thunder Wolf

  • ***
  • Posts: 129
  • Referrals: 0
Re: adding super armour to a char
« Reply #9 on: June 05, 2009, 09:25:22 AM »
lol it kinda worked, my superman doesnt even get hit anymore, he still takes damage but theres no reaction what so ever, i think i messed up somewhere, oh well thanks for the help

Offline YD

  • ******
  • Posts: 3085
  • Country: 00
  • Referrals: 0
Re: adding super armour to a char
« Reply #10 on: June 05, 2009, 01:05:25 PM »
lol it kinda worked, my superman doesnt even get hit anymore, he still takes damage but theres no reaction what so ever, i think i messed up somewhere, oh well thanks for the help

Thats exactly what super armor is suppose to do. What are you trying to accomplish, invinceabliity? If so then super armor is not the code to use. Super armor makes your character un-phased (will not budge nor fall) by attacks and will never get dazed.

Offline Sparticus2299

  • ****
  • Posts: 292
  • All who wage war know my name
  • Referrals: 0
    • Finish 'Em fightwear
Re: adding super armour to a char
« Reply #11 on: July 04, 2009, 01:57:17 PM »
theres no statedef-3 with venom for some reason
EVIL WOULD WIN IN REAL LIFE nuf said

Offline YD

  • ******
  • Posts: 3085
  • Country: 00
  • Referrals: 0
Re: adding super armour to a char
« Reply #12 on: July 04, 2009, 02:02:53 PM »
theres no statedef-3 with venom for some reason

Add it in yourself right after statedef -2

Add this line of code:

;---------------------------------------------------------------------------
; States that are executed when in self's state file (use statedef -3)
;---------------------------------------------------------------------------
[Statedef -3]


Just copy and paste the text above into the .cns just below the end of Statedef -2's coding and then add whatever coding you want that has to be in statedef -3.