collapse

Author Topic: Add/Take away hits in a move  (Read 652 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

Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[Today at 11:31:36 AM]


Rooftop Skyline(1.1 Only/AIGS) by Vegaz by LightFlare
[October 21, 2024, 12:13:37 PM]


Secluded Base(1.1 Only/AIGS) by Vegaz by LightFlare
[October 17, 2024, 01:21:06 PM]


Ultimate Balrog + stage by ELECTRO
[October 17, 2024, 05:40:31 AM]


Eternal Lament Stage 1.1 & 1.0 by MatreroG
[October 11, 2024, 05:03:17 PM]


Classic VS : Balrog by ELECTRO
[October 08, 2024, 04:35:53 PM]


IMT Tutorials and Documentation gone? by tehdevil
[October 06, 2024, 04:25:52 AM]


Justice League Themyscira Stage by Vegaz by LightFlare
[October 04, 2024, 08:23:57 AM]


D2TD VS Showcase Thread by D2TD
[September 30, 2024, 12:29:35 AM]


Mugen Of Solitude:Spacestation 1.0 Updated Stage By Supaman2525 & OldGamer by Aumio Khan
[September 29, 2024, 09:12:20 AM]

* IMT Calendar

October 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