YesNoOk
avatar

Run Attack (Read 2198 times)

Started by AkatsukiDude15, September 23, 2007, 06:53:07 am
Share this topic:
Run Attack
#1  September 23, 2007, 06:53:07 am
  • *
    • www.freewebs.com/samboy1234567890
Can someone make or find me vid on how to make a run attack for a char. PLZZZZ!!!!!
(btw can a mod close my other Run Attack thread in request)
Re: Run Attack
#2  September 23, 2007, 11:27:36 am
  • ****
  • "Moyashi tsuku shite yaru..."
What do you mean by run attack? Just normal punch while running? In that case all you need to edit is .CMD. Check ChangeState controller for the attack you need. See if there's Ctrl = 1 trigger. You see, when you're running normally your Ctrl = 0. So all you need to do is to add another condition: triggerall = Ctrl || StateNo = 100 || StateNo = 101; 100 is a Run state, 101 is a stop running state
Re: Run Attack
#3  September 23, 2007, 11:37:07 am
  • ******
    • Portugal
    • network.mugenguild.com/pots/
For a running attack it'd actually be better to use just "StateNo = 100 || StateNo = 101" as condition and leave out ctrl, so that the char can't do it when not running. Either that or:

triggerall = Ctrl && (StateNo = 100 || StateNo = 101)
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.

Bea

Re: Run Attack
#4  September 23, 2007, 12:54:46 pm
  • *****
  • MUGEN Grandma
    • Brazil
    • www.smeenet.org
You see, it's far more effective in mugen standards to code it like this:

triggerall = ctrl
triggerall = stateno = [100,101]

Mugen expressions aren't short circuited.
That means that the above trigger set will not test the second condition if the first trigger is false, but the ones you two posted will test the whole condition, wasting CPU cycles.

And here I thought it was common knowledge already... :(
Princess Adora: "My friend saw She-Ra take her dress off in the shower. She said she has an 8 pack. She said She-Ra is shredded."

SF2NES is dead. Long live SF2NES.
Re: Run Attack
#5  September 23, 2007, 01:59:45 pm
  • ****
  • "Moyashi tsuku shite yaru..."
Thank you for remembering that, but I think in this case the result will be FALSE. Statedef 100 has ctrl = 0. So the first trigger checked will turn false, turning off the controller. Isn't it obvious?

And I though it's only natural for mugen to behave like this, in the case oftriggerall = Ctrl || StateNo = 100 || StateNo = 101
1) Check Ctrl, if true, proceed with the next trigger, if false,
2) Check StateNo = 100, if true, proceed with the next trigger, if false,
3) Check StateNo = 101, if true, proceed with the next trigger, if false, render the whole controller false.
It's only natural, I wonder if MUGEN engine does it differently.
Last Edit: September 23, 2007, 02:04:41 pm by Elix
Re: Run Attack
#6  September 23, 2007, 03:21:27 pm
  • ******
  • [E]
    • Mexico
elix: you expression and vbia's are different anyway so there is no point to comparing.

Bea

Re: Run Attack
#7  September 23, 2007, 03:54:31 pm
  • *****
  • MUGEN Grandma
    • Brazil
    • www.smeenet.org
Thank you for remembering that, but I think in this case the result will be FALSE. Statedef 100 has ctrl = 0. So the first trigger checked will turn false, turning off the controller. Isn't it obvious?

And I though it's only natural for mugen to behave like this, in the case oftriggerall = Ctrl || StateNo = 100 || StateNo = 101
1) Check Ctrl, if true, proceed with the next trigger, if false,
2) Check StateNo = 100, if true, proceed with the next trigger, if false,
3) Check StateNo = 101, if true, proceed with the next trigger, if false, render the whole controller false.
It's only natural, I wonder if MUGEN engine does it differently.

Fact is, mugen expressions aren't short cirtuited.
It will always process a whole expression, no matter what.

You can prove it by adding a sctrl like this to your -2 states:

[State -2, Debug Flood]
Type = Null
trigger1 = 0 && Target, Pos y = 0

The above expression will flood your debug screen whenever you don't have a target. Note that 0 makes a trigger return sFalse.

[State -2, Without Debug Flood]
Type = Null
trigger1 = 0
trigger1 = Target, Pos y = 0

The above trigger set won't cause debug flood as the first trigger in the set always return sfalse, preventing the triggers of the same id below it to be processed.

Such information can be found at exp.html under mugen doc folders.
Princess Adora: "My friend saw She-Ra take her dress off in the shower. She said she has an 8 pack. She said She-Ra is shredded."

SF2NES is dead. Long live SF2NES.
Re: Run Attack
#8  September 23, 2007, 05:24:15 pm
  • ****
  • "Moyashi tsuku shite yaru..."
Thank a lot, Bia. Such examples really prove that you were right.
Still our triggerall examples are different, as R[E]ika said.
Re: Run Attack
#9  September 23, 2007, 06:33:30 pm
  • *
    • www.freewebs.com/samboy1234567890
ok thanks but i meant a tutorial ;D