YesNoOk
avatar

HitDef (SCTRLs) (Read 38529 times)

Started by Odb718, September 30, 2015, 12:13:58 pm
Share this topic:
Re: HitDef (SCTRLs)
#21  November 04, 2017, 09:47:11 pm
  • ******
  • Loyal to the Game
    • USA
    • http://jesuszilla.trinitymugen.net/
Guard dist for CvS2 is a full screen's width. From what I've seen, that's almost always the case in other games so it's pretty much not something that should be used quite like you expect.
Re: HitDef (SCTRLs)
#22  November 21, 2018, 06:49:01 pm
  • *****
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
Quote
affectteam = team_type (string)  team_type specifies which team's players can be hit by this HitDef. Use B for both teams (all players), E for enemy team (opponents), or F for friendly team (your own team). The default is E.

Unfortunately, the parameter affectteam does not accept expressions.

Stuff like affectteam = IfElse(var(1)>0,B,E) will crash mugen and consider it as Invalid affectteam value.
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!
Last Edit: November 24, 2018, 09:24:52 am by Odb718
Re: HitDef (SCTRLs)
#23  November 24, 2018, 09:25:37 am
  • *****
  • Shame on you!
    • USA
For anyone who comes across the problem XGargoyle pointed out,

To get different AffectTeam = to work, you would need to set up two different hitdefs with the triggerall to check Var(1) for this example.
One hitdef would check,
TriggerAll = Var(1) > 0
the second would check
TriggerAll = Var(1) <=0
Each hitdef would set the affectteam to their needed value.
vVv Wheat Stage Released vVv
Last Edit: November 24, 2018, 09:31:41 am by Odb718