A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» CAPCOMNATOR CPS2 STAGEPACK 2 wip
by TheRedBeast Yesterday at 11:04 pm

» Dormammu Remake
by skhsato123 Yesterday at 10:18 pm

» Ada Wong
by yolomate Yesterday at 9:26 pm

» Street Fighter V discussion topic
by 2dover3d Yesterday at 5:45 pm

» NEW Yolomate's palettes blind man creator!
by yolomate Yesterday at 5:34 pm

» The MMV News
by yolomate Yesterday at 5:34 pm

Special Features at MMV






Chat on MMV w/ Discord


Share | 
 

 Super Armor Won't go away

View previous topic View next topic Go down 
AuthorMessage
Capn_Zed



Posts : 2
Join date : 2017-10-26

PostSubject: Super Armor Won't go away   November 12th 2017, 7:47 am


I wanted to add armor to some moves on this character : G6_Raikage_Ay, that I downloaded because some of his moves are really slow and are easy to interrupt. I got the super armor coding from a post by Noctis named Super Armor (Guarding Disabled).

Code:
Code:
[State -2, Helper] ;This does NOT have to be in your [Statedef -2]. It can be wherever. It's just most effective in your [Statedef -2] when spawning it through vars.
type = Helper
;Feel free to add as many triggers as you want. The triggers below are just required to prevent errors.
trigger1 = NumHelper(800) = 0 ;This is so it will only spawn if the helper doesn't already exist.
trigger1 = alive ;This is so it will only spawn if you're not dead.
stateno = 800
id = 800
name = "Super Armor"
keyctrl = 0

If this stays as is then the character just spawns with armor and is completely untouchable. He also takes no damage.

Code:
Code:
[State -2, Helper] ;This does NOT have to be in your [Statedef -2]. It can be wherever. It's just most effective in your [Statedef -2] when spawning it through vars.
type = Helper
;Feel free to add as many triggers as you want. The triggers below are just required to prevent errors.
[b]triggerall = NumHelper(800) = 0 ;This is so it will only spawn if the helper doesn't already exist.
triggerall = alive ;This is so it will only spawn if you're not dead.
trigger1 = stateno = 200 [/b]
stateno = 800
id = 800
name = "Super Armor"
keyctrl = 0

If I change it to this then the character spawns normally until I enter state 200. Afterwards he is covered in armor and doesn't take any damage nor responds to being hit.

What I want is for his to have armor only on certain animations like 200 but what happens is he has armor during 200 and the entire duration of the rest of the game meaning it doesn't disappear. I've tried adding stuff to this code:

Code:
Code:
[State 800, 5]
type = ChangeState ;This is so when you die or when more than one of these helpers exists, it'll destroy itself. You can add more triggers if you want. For example, a burst mode with super armor that is activated when var(50)=1. The burst mode and super armor deactivate when var(50)=0. You would want to put a "trigger3 = var(50)=0".
trigger1 = parent,life = 0
trigger2 = parent,numhelper(800) > 1
value = 802

but nothing happens. The changes I tried were to add trigger3 = stateno = 0 (default standing state) then when that failed stateno = 200 && time = 10. Neither of those worked so there must be something else that should be done to terminate the helper. Any help would be greatly appreciated.
Back to top Go down
View user profile
Kylo

avatar

Posts : 5750
Join date : 2014-08-22

PostSubject: Re: Super Armor Won't go away   November 12th 2017, 1:08 pm

Welcome Capn_Zed ...
Back to top Go down
View user profile
borewood2013

avatar

Posts : 5226
Join date : 2014-08-11

PostSubject: Re: Super Armor Won't go away   November 14th 2017, 12:36 pm

Why did you (or Noctis) use Statedef 800 for the MUGEN Helper Statedef? scratch Statedef 800 is the common state for the main MUGEN Player's throw start-up state.........anyway, if you want your MUGEN Helper "Super Armor" to disappear when your main MUGEN Player is not in the Statedef 200 or is not using Animation Action #200, then you may need to add this MUGEN Trigger to the [State 800, 5]:
Code:
trigger3 = Parent, StateNo != 200 || Parent, Anim != 200

* I personally prefer to use the "Root, " MUGEN Trigger Redirection for the main MUGEN Player though... geek

By the way, I recommend you to use Seravy's MUGEN Superarmor code as it is more straight-forward and easier to add to your main MUGEN Player without too much editing Arrowhttps://web.archive.org/web/20150506064514/http://elecbyte.com/wiki/index.php/Superarmor
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Capn_Zed



Posts : 2
Join date : 2017-10-26

PostSubject: Re: Super Armor Won't go away   November 18th 2017, 8:22 am

Thanks for the help. I tried Your trigger and it worked. I was looking for Seravy's guide but I couldn't find it anywhere. Noctics actually made adjustments based on Seravy's feedback and Seravy made a link but the Page didn't seem to still be up and running.
Back to top Go down
View user profile
borewood2013

avatar

Posts : 5226
Join date : 2014-08-11

PostSubject: Re: Super Armor Won't go away   November 18th 2017, 10:45 am

Oh I see Noctics' was based on Seravy's, too bad MUGEN itself does not have a built-in super armor feature for characters............. Neutral
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
 
Super Armor Won't go away
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Mugen Multiverse :: Mugen :: Mugen Help-
Jump to: