Capn_Zed
Posts : 5 Join date : 2017-10-26
| Subject: 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. | |
|
Doom
Posts : 10512 Join date : 2014-08-22
| |
Werewood
Posts : 5691 Join date : 2014-08-11
| Subject: 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? 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... 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 : https://web.archive.org/web/20150506064514/http://elecbyte.com/wiki/index.php/Superarmor | |
|
Capn_Zed
Posts : 5 Join date : 2017-10-26
| Subject: 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. | |
|
Werewood
Posts : 5691 Join date : 2014-08-11
| Subject: 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............. | |
|
Sponsored content
| Subject: Re: Super Armor Won't go away | |
| |
|