YesNoOk
avatar

Stage Interaction on WinMugen. (Read 429 times)

Started by Sheng Long, December 13, 2012, 06:44:33 pm
Share this topic:
Stage Interaction on WinMugen.
#1  December 13, 2012, 06:44:33 pm
  • *****
  • Video Game Veteran
    • USA
    • gcnmario.free.fr
I read somewhere that in Mugen 1.0, stage interaction can be done through StageVar, or something like that (never worked with it before, so not that familiar with it). But I'm wondering if there is a way to do it in WinMugen? I remember in the old days there was something like a Z Offset, which kind of could act like a stage var in some cases (if done right). But I read that this was removed. I can't remember if this was removed since WinMugen, or Mugen 1.0. Anyway, I need to be able to detect when the player is on their own stage, for WinMugen.

Any help would be appreciated. :)

"You must defeat my flaming
dragon punch to stand a chance."
Re: Stage Interaction on WinMugen.
#2  December 13, 2012, 07:28:27 pm
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/

  • Online
Re: Stage Interaction on WinMugen.
#3  December 13, 2012, 10:00:23 pm
  • *****
  • Video Game Veteran
    • USA
    • gcnmario.free.fr
Okay so the Z-Offset still does exist in WinMugen. nice. :)
Unfortunately, my memory is not what it used to be, how do you check fro Z-Offset?  Is there something like trigger1 = Pos Z? or is there a different way to check for the Z Offset?

"You must defeat my flaming
dragon punch to stand a chance."
Re: Stage Interaction on WinMugen.
#4  December 14, 2012, 01:21:36 am
  • ****
  • Accomplished many things you can't comprehend.
    • USA
    • http://clubsyn-x-treme.com
triggerall = roundstate <= 2
trigger1 = floor(pos z = 1) ; <------- replace 1 with whatever start z value in whatever stage def you want your character to detect.
Re: Stage Interaction on WinMugen.
#5  December 14, 2012, 04:55:29 am
  • *****
  • Video Game Veteran
    • USA
    • gcnmario.free.fr
So, why the roundstate <= 2? That will result only when round states 2 or lower are currently running. Are you sure that 'trigger1 = floor(pos z = 1)' is the only one that I would need in this case?

"You must defeat my flaming
dragon punch to stand a chance."
Re: Stage Interaction on WinMugen.
#6  December 14, 2012, 10:09:10 pm
  • **
  • NvP!

Code:
[State 0, 0] 
type = VarSet
trigger1 = ScreenPos Y = (Zoffset of the stage)
var(0) = 1

Put this in the 5900 state, thats how i always did my interaction in winmugen.

So you just have to put a trigger with the var on the helper or whatever you are using.
example:
Code:
trigger1/all = var(0) = 1

The bad thing about this is that's its coded with the zoffset.. so if the zoffset of a stage is 210, then every stage that has the same zoffset will be infected with the interaction.
Re: Stage Interaction on WinMugen.
#7  December 15, 2012, 01:05:00 am
  • *****
  • Video Game Veteran
    • USA
    • gcnmario.free.fr
Why would you want to waste a variable when you can just do floor(pos z = __#__) for every trigger needed?

"You must defeat my flaming
dragon punch to stand a chance."
Re: Stage Interaction on WinMugen.
#8  December 15, 2012, 10:55:18 am
  • ****
  • Accomplished many things you can't comprehend.
    • USA
    • http://clubsyn-x-treme.com
Thats why I use a helper instead and it activates with the triggers I posted. Once the helper is present, that acts as an indicator. I never use a variable since I normally make my works compatible with all characters that are properly coded. Using a var outside of a helper can cause problems unless this method is for a single character that you are working on, but for universal compatibility, create a blank helper for detection purposes.

Also the 1.0 stage detection Sctrl replaces this method and is alot cleaner and more reliable unlike winmugen that only works on the first few ticks when an intro or round starts.