YesNoOk
avatar

Is there a trigger that is of a Custom state?  (Read 21993 times)

Started by TheDragon, February 03, 2023, 12:02:02 am
Share this topic:
Is there a trigger that is of a Custom state?
#1  February 03, 2023, 12:02:02 am
  • **
I mean, I have a character who has a helper, like Captain America. He has his shield helper, this one has a changestate that is where he would be lying on the ground, but I need to know if there is a trigger that can do this. I mean;

Type = changestate
Trigger1 = (the trigger you allow or specify when the cap is in a Custom state)

Because if I place, root, movetype = H that would imply that with any hit he would throw the shield.

Is there a trigger? Can I explain? If anyone knows of any I would be very grateful if they explain it to me, thank you!
Re: Is there a trigger that is of a Custom state?
#2  February 03, 2023, 04:46:42 pm
  • ******
    • Portugal
    • network.mugenguild.com/pots/
In Ikemen GO, there's the "incustomstate" trigger.

But I assume you're working with Mugen. Since you have one negative state that is processed during custom states (state -2) and another that isn't (-3), you can do something like this:

Code:
[State -3, Gametime Var]
type = varset
trigger1 = 1
var(x) = gametime
ignorehitpause = 1

Then for the helper, if "gametime > root, var(x)" the root is in a custom state. This only works if the helper isn't attacking, I think, but that lines up with what you need.
You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.
Last Edit: February 03, 2023, 04:54:09 pm by PotS
Re: Is there a trigger that is of a Custom state?
#3  February 06, 2023, 05:53:37 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
Just to mention that the above code can also be used to detect enemy's superpauses as well
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: Is there a trigger that is of a Custom state?
#4  February 08, 2023, 09:04:33 am
  • avatar
    • Latvia
Can't you just use root, stateno = "any ground state" ?
Should work fine.

type = changestate
Trigger1 = root, stateno = 5100
Trigger2 = root, stateno = 5110
..

or maybe just

type = changestate
Trigger1 = root, statetype = L
..
Re: Is there a trigger that is of a Custom state?
#5  February 09, 2023, 10:40:58 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
no, because I can put the enemy in my custom state 6969 and your code will not detect it
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: Is there a trigger that is of a Custom state?
#6  February 10, 2023, 12:06:01 pm
  • avatar
    • Latvia
no, because I can put the enemy in my custom state 6969 and your code will not detect it

What about?
 
Trigger1 = root, stateno = 6969
trigger2 = root, stateno != 6969
trigger2 = root, statetype = L
Re: Is there a trigger that is of a Custom state?
#7  February 15, 2023, 09:36:22 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
again, unless you are working on a full closed game, you don't know which states the enemy will place your character in a custom state.
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!