So I've been working on a stand mechanic for one of the characters in my mugen project, and I'm at a bit of a brick wall at the moment. Basically, I've gotten my Stand into the scene by pressing a button ("a" in my case), I just have no idea how to get them out of the scene when I press the same button. The Stand is a Helper and so far I've tried:
.Sending the Stand into a second custom state in which it would destroy itself
.Having the Stand destroy itself when the button that created it is pressed again
.Having the Stand be destroyed when a Variable is set at a certain value
.Having the Stand be destroyed when both a button press and the same variable is set to a certain value
I've also tried looking at various HFTF characters without much luck. Most of the code is uncommented, and any comments that are there are in Japanese. There was a Part 4 Jotaro that did help put me in the right direction, but now I seem to be stuck here. I've looked around on various sites and there doesn't seem to be any documentation or tutorials on the subject.
To help give you a better idea of where I left off, here's the code:
CNS: ;Star Platinum Summon [Statedef 700] type = S ;State-type: S-stand, C-crouch, A-air, L-liedown movetype= I ;Move-type: A-attack, I-idle, H-gethit physics = S ctrl = 0 ;Set ctrl (Def: no change) anim = 1 poweradd = 0
[State 1065, 3] type = bindtoparent trigger1 = 1 pos = 25,0 time = 1
[State 0, ChangeState] type = ChangeState trigger1 = command = "a" value = 0 (I set this to 0 because I read that in a different forum that setting the Helpers state to zero would destroy it using code set in State 0) ctrl = 0 ;anim = ;ignorehitpause = ;persistent = [State 0, ParentVarSet] type = ParentVarSet trigger1 = command = "a" v = 10 ;fv = 10 value = 0
[State 701, 2] type = destroyself trigger1 = command = "a"
;Desummon [Statedef 702] type = A movetype= I physics = N velset = 0,0 sprpriority = 3 ;anim = 9999
[State 702, 2] type = destroyself triggerall = time = 0 trigger1 = 1
So I am a bit lost as to what to do here. I didn't want to ask for help and it feels like it should be really simple but I'm honestly lost right now. Would really appreciate any help.
Oh and I mention code in state 0 used to destroy the helper (Which also didn't work). Here's that: