collapse

Author Topic: Add/Take away hits in a move  (Read 618 times)

0 Members and 1 Guest are viewing this topic.

Offline Gaz123

  • New Member
  • *
  • Posts: 9
  • Last Login:April 28, 2015, 07:13:09 PM
Add/Take away hits in a move
« on: March 06, 2010, 07:07:08 PM »
Hi, i want to take away a couple of hits from a charging move atm but i cant figure out how to do so. Any help would be much appreciated.



Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: Add/Take away hits in a move
« Reply #1 on: March 07, 2010, 11:06:53 PM »
First...you will need to find out wich statedef (these is where its coded) the char is using...to find out, you have to turn on the debug mode, wich is the white letters that appears while playing mugen in the left low corner....make the desire attack, and search for the statedef that it says there.

In the statedef, you should have to modify the hitdef.


sig made by shullbocka

Offline Gaz123

  • New Member
  • *
  • Posts: 9
  • Last Login:April 28, 2015, 07:13:09 PM
Re: Add/Take away hits in a move
« Reply #2 on: March 08, 2010, 02:23:54 PM »
Thanks for the reply, how do modify the hitdeff?

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: Add/Take away hits in a move
« Reply #3 on: March 08, 2010, 06:01:12 PM »
the hitdef has some triggers (these defines when does the hitdef will activate), so if the char has a lot of triggers, just remove a couple of thems.

Also you could post here the statedef, and I will tell you exactly what to do


sig made by shullbocka

Offline Gaz123

  • New Member
  • *
  • Posts: 9
  • Last Login:April 28, 2015, 07:13:09 PM
Re: Add/Take away hits in a move
« Reply #4 on: March 09, 2010, 02:44:38 AM »
Here it is,


[State 2010, 8]
type = HitDef
triggerall = EnemyNear, Anim != [5070,5071]
triggerall = EnemyNear, GetHitVar(ChainID) != 779
trigger1 = (var(4) = 0) && (var(16) = 0)
attr = S, HA
damage    = 135,9
priority  = 7
animtype  = hard
hitflag = MAF
guardflag = L
pausetime = 9,9
sparkno = S7000+(random%4)
guard.sparkno = S7009
sparkxy = -30,-57
hitsound   = S1,2
guardsound = S3,1
ground.type = Low
ground.slidetime = 20
ground.hittime  = 20
ground.velocity = -15

Thanks again
air.velocity = -12,-3

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: Add/Take away hits in a move
« Reply #5 on: March 09, 2010, 09:59:28 PM »
The code is a little bit complex...ad I would need to have the complete information (specially the variables).

but there are 2 easy solutions...one is add these:

triggerall = movehit <= x   ;

x is the number of hits you want the char to  make

or you can modify all the triggers, make a trigger for each animelem (number of the sprite in the animation), that you want to make hit


sig made by shullbocka

Offline Gaz123

  • New Member
  • *
  • Posts: 9
  • Last Login:April 28, 2015, 07:13:09 PM
Re: Add/Take away hits in a move
« Reply #6 on: March 10, 2010, 02:10:11 PM »
Where abouts would i add this   triggerall = movehit <= x  ?

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: Add/Take away hits in a move
« Reply #7 on: March 10, 2010, 04:40:15 PM »
[State 2010, 8]
type = HitDef
triggerall= movehit <=3 ; the move will only hit 3 times
triggerall = EnemyNear, Anim != [5070,5071]
triggerall = EnemyNear, GetHitVar(ChainID) != 779
trigger1 = (var(4) = 0) && (var(16) = 0)
attr = S, HA
damage    = 135,9
priority  = 7
animtype  = hard
hitflag = MAF
guardflag = L
pausetime = 9,9
sparkno = S7000+(random%4)
guard.sparkno = S7009
sparkxy = -30,-57
hitsound   = S1,2
guardsound = S3,1
ground.type = Low
ground.slidetime = 20
ground.hittime  = 20
ground.velocity = -15


sig made by shullbocka

Offline MirageAtoli

  • Infinity Faithful
  • ****
  • Posts: 584
  • Last Login:May 13, 2011, 03:25:23 AM
  • Oh, my Paws and Whiskers!
Re: Add/Take away hits in a move
« Reply #8 on: March 11, 2010, 06:56:31 AM »
If you only want to add to the combo counter use hitadd: http://elecbyte.com/mugendocs/sctrls.html#hitadd

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

Classic VS : Athena by ELECTRO
[May 10, 2024, 02:44:09 PM]


Ballroom Hallway (1.1 Only/AIGS) by Vegaz by LightFlare
[May 09, 2024, 11:53:48 AM]


Neon Light Force Demo by kyoman
[May 08, 2024, 12:50:05 PM]


D2TD VS Showcase Thread by D2TD
[May 05, 2024, 10:08:50 AM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[April 21, 2024, 12:09:20 PM]


Ultimate E. Honda + stage by ELECTRO
[April 18, 2024, 09:47:24 PM]


Sunset Beach (1.1 Only/AIGS) by Vegaz by LightFlare
[April 16, 2024, 06:55:00 PM]


Wonder Twins 2.0 by brucewayne74, Shining and Skhsato123 by brucewayne74
[April 05, 2024, 06:07:48 PM]


X-Men Training Room (Bright & Dark) Stage 1.1 & 1.0 by MatreroG
[April 05, 2024, 10:55:29 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[April 01, 2024, 11:03:03 PM]

* IMT Calendar

May 2024
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4
5 6 7 8 9 10 [11]
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

SimplePortal 2.3.5 © 2008-2012, SimplePortal