collapse

Author Topic: Random HitDef. Help please :(  (Read 1342 times)

0 Members and 1 Guest are viewing this topic.

Offline AensleigheR

  • Initiate
  • **
  • Posts: 24
  • Last Login:February 11, 2019, 11:48:30 PM
  • ShakeDownMixer!
    • Email
Random HitDef. Help please :(
« on: April 19, 2017, 07:57:42 AM »
Heey guys.  :rules:
I know it is possible to randomize the hitdefs of a character. But would anyone mind teaching me how to do that stuff?
I have to get 2 random hitdefs for a single attack.

- One that would either cause the opponent to simply get hurt. (The normal stuff)  %-(
- or one that would cause the opponent to explode upon contact with the said attack. :o

Can somebody please help me with this?  :'(

Thank you!  XD||



Offline MGMURROW

  • IMT Content Architect
  • *
  • Posts: 161
  • Country: United States us
  • Last Login:November 15, 2024, 05:08:32 AM
    • MGMURROW
Re: Random HitDef. Help please :(
« Reply #1 on: April 19, 2017, 02:04:21 PM »
put this before the hitdef code

[State 1000]
type = VarRandom
trigger1 = !time
v = 3
range = 0,1

then put the hitdef with the code

[State 1000] <----custom hit
type=HitDef
trigger1=Var(3)=1
trigger1=Animelem=2
priority=3,Hit
attr=S,NA
guardflag=MA
hitflag=MAF
damage=25
animtype=Light
air.animtype=Back
fall.animtype=Back
ground.type=High
air.type=Low
getpower=10,5
givepower=11,8
pausetime=8,8
sparkno=S-1
p2stateno = 1001 <----this state will need to have the explodes in it


[State 1000] <----regular hit
type=HitDef
trigger1=Var(3)=0
trigger1=Animelem=2
priority=3,Hit
attr=S,NA
guardflag=MA
hitflag=MAF
damage=25
animtype=Light
air.animtype=Back
fall.animtype=Back
ground.type=High
air.type=Low
getpower=10,5
givepower=11,8
pausetime=8,8
sparkno=S-1


hope this helps

MGMURROW

Offline AensleigheR

  • Initiate
  • **
  • Posts: 24
  • Last Login:February 11, 2019, 11:48:30 PM
  • ShakeDownMixer!
    • Email
Re: Random HitDef. Help please :(
« Reply #2 on: April 20, 2017, 05:47:57 AM »
put this before the hitdef code

[State 1000]
type = VarRandom
trigger1 = !time
v = 3
range = 0,1

then put the hitdef with the code

[State 1000] <----custom hit
type=HitDef
trigger1=Var(3)=1
trigger1=Animelem=2
priority=3,Hit
attr=S,NA
guardflag=MA
hitflag=MAF
damage=25
animtype=Light
air.animtype=Back
fall.animtype=Back
ground.type=High
air.type=Low
getpower=10,5
givepower=11,8
pausetime=8,8
sparkno=S-1
p2stateno = 1001 <----this state will need to have the explodes in it


[State 1000] <----regular hit
type=HitDef
trigger1=Var(3)=0
trigger1=Animelem=2
priority=3,Hit
attr=S,NA
guardflag=MA
hitflag=MAF
damage=25
animtype=Light
air.animtype=Back
fall.animtype=Back
ground.type=High
air.type=Low
getpower=10,5
givepower=11,8
pausetime=8,8
sparkno=S-1


hope this helps

MGMURROW

Thank you bro! For the state of the p2, I would also like him to have a pallete change into red/orange one and an explod. can I do it under the p2stateno code?

Offline AensleigheR

  • Initiate
  • **
  • Posts: 24
  • Last Login:February 11, 2019, 11:48:30 PM
  • ShakeDownMixer!
    • Email
Re: Random HitDef. Help please :(
« Reply #3 on: April 20, 2017, 06:00:54 AM »
..and also a different PlaySnd state. sorry I wasn't precise on my 1st post.  %-(

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Random HitDef. Help please :(
« Reply #4 on: April 21, 2017, 05:36:49 AM »
You can use the palfx parameters on the special hitdef to assign different colours. You can just use the variable to play the different sounds. If it's active, that hitdef is the one that will make contact so playing sounds etc can trigger off that variable as well.

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

D2TD VS Showcase Thread by D2TD
[November 24, 2024, 09:12:03 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by LightFlare
[November 21, 2024, 09:44:09 PM]


Terrordrome: Rise of the Boogeymen Extended Version ( jeepers creepers) version by leonardo
[November 19, 2024, 10:22:47 PM]


Hill of the Nameless(1.1 Only) by Vegaz by LightFlare
[November 19, 2024, 10:50:39 AM]


Golden Axe Returns by gokudo99
[November 19, 2024, 03:59:31 AM]


Barkley Shut Up and Jam! Stages by Vegaz by LightFlare
[November 12, 2024, 11:26:21 AM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[November 11, 2024, 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[November 11, 2024, 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[November 11, 2024, 07:00:56 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]

* IMT Calendar

November 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

SimplePortal 2.3.5 © 2008-2012, SimplePortal