YesNoOk
avatar

chaining supermoves which are using helpers to damage p2 (SOLVED !) (Read 402 times)

Started by Zodiac Uchiha, October 10, 2010, 05:33:12 am
Share this topic:
chaining supermoves which are using helpers to damage p2 (SOLVED !)
#1  October 10, 2010, 05:33:12 am
  • **
    • Germany
oh man...i have to ask another important question, although another one of mine isnt solved yet ...
well this problem is about chaining supermoves to another. i already know , that its done by writing this in the cmd part:
[state -1, Shoryureppa]   ; i love this example dont I ?  XD
type = changestate
value = 3000
triggerall = statetype != A
triggerall = command = "shoryureppa"
triggerall = power >= 1000
trigger1 = ctrl
TRIGGER2 = ( STATENO = 3005) && movecontact

the important part is trigger2. thats why i used caps. well i have to use an additional trigger this way right ? but the states like Shinkuu Hadoken from ryuuse a helper to damage the opponent. and of course, the hitdef is only included in the helper state, since the beam should damage p2. so i f i write this one as a trigger in the cmd part, considering state 3000 to be the supermove where the char uses the helper(i.e. no hitdef is present), it wont work
 
trigger2 = (stateno = 3000) && movecontact

but why? how can i chain a supermove  to another which is using a helper? btw, i tried using the the trigger numhelper.
Last Edit: October 11, 2010, 12:47:11 pm by Zodiac Uchiha

2OS

Re: chaining supermoves which are using helpers to damage p2
#2  October 10, 2010, 06:22:25 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
[State 2OS]
type=helper
trigger1=1
ID=3006
stateno=3006
.  .  .


[state -1, Shoryureppa]
type = changestate
value = 3000
triggerall = statetype != A
triggerall = command = "shoryureppa"
triggerall = power >= 1000
trigger1 = ctrl
TRIGGER2 = ( STATENO = 3005) && helper(3006),movecontact


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: chaining supermoves which are using helpers to damage p2
#3  October 10, 2010, 10:05:29 pm
  • **
    • Germany
thank you. that worked fine. but this " , " after helper... i have seen it in many ways. such as parent, alive
or something like that. can you explain how to use this "," in general ? dont know if i am going too much off topic, but that would be very interesting to know.
btw..i am from germany and dont know if the expression is the same. i would call this Comma in english .

2OS

Re: chaining supermoves which are using helpers to damage p2
#4  October 11, 2010, 12:56:42 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
It is a comma


You use that to refer to it's conditions


enemy,movetype=a  ;;  player 2s movetype is attack

enemy(enemy,teammode=simul),movetype=a  ;;  player 4s movetype is attack

target,ishelper  ;;  target [ if one exists ] is a helper

helper,movetype=a  ;;  any helpers movetype is attack

helper(2000),movetype=a  ;;  helper(s) with ID number 2000 movetype is attack

parent,movetype=a  ;; helpers parent [ parent being what the helper spawned from, can be the player, or another helper ] movetype is attack

root,movetype=a  ;;  helpers root [ root being the player it spawned from, If a helpertype=player and it spawns a helper, and that helper spawns ANOTHER helper, the 3rd helpers parent is the 2nd helper, the 2nd helpers parent is the player helper ( which is also the root ), the 3rd and 2nd helpers root is the player helper ]  movetype is attack


Pretty much it, hope you have a better understanding


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: chaining supermoves which are using helpers to damage p2
#5  October 11, 2010, 02:29:00 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Known commonly as a redirect. You are redirecting to another object. Above info is right.

That comma should not be confused with things like ifelse or ranged statements.

ifelse(trigger, value, value) or time = [#,#]

acts very differently.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: chaining supermoves which are using helpers to damage p2
#6  October 11, 2010, 12:46:35 pm
  • **
    • Germany
Yes . Thanks to both of you . I have a better understanding of using the comma in cns coding AND we solved the problem.
Re: chaining supermoves which are using helpers to damage p2 (SOLVED !)
#7  October 14, 2010, 08:58:01 pm
  • *****
  • Mega Klinklang confirmed
    • USA
    • ricepigeon.webs.com
I know the issue is resolved and all, but I felt I had to point out that multiple redirection isnt possible yet (iirc, Elecbyte is planning on having multiple redirection support in future updates, I just cant recall if it was 1.1 or 2.0)

<<-- Updated 09/14/14

You limit yourself so badly when you try to avoid variables. When you get over your fear of the "complexity" of variables, you will find yourself in a better place: A beautiful world where coding is actually fun.
Re: chaining supermoves which are using helpers to damage p2 (SOLVED !)
#8  October 14, 2010, 09:19:12 pm
  • **
    • Germany
Thanx. in that case, i hope elecbyte will tel us all the changes in detail when they update Mugen to 1.1 or whatever it will be. but i am pretty sure they will describe it understandable with an example as they did great in the past as well.