Problems with Grand Stardust

Started by TrinitroRoy, February 11, 2014, 10:17:20 PM

Previous topic - Next topic

TrinitroRoy

Hello again,
just now, I have decided to revisit some of Marisa's old moves, namely her bottle special "Grand Stardust" and her LVL2 spellcard "Orreries Sun", and also some of her old misc animations (like her broom swinging winpose or her Touhou Kobuto intro).
Revisiting all the stuff save for Grand Stardust is extremely easy. I actually have problems with the bottles of Grand Stardust: They wont explode when they hit the opponent. They still explode just fine if they hit the ground, though.
Here is the code, by the way:

;----------------------
;Grand Stardust Bottle X version
[Statedef 1301]
Type = A
Movetype= I
Physics = N
Anim = 1301
Ctrl = 0
Sprpriority = 5
velset = 0,0

[State 1201, HitOverride]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT;,SP
time = -1
stateno = 1303
ignorehitpause = 1

[State 1201, hitby]
type = hitby
trigger1 = 1
value = SCA,AP,SP
time = -1
ignorehitpause = 1

[State 1301]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1

[State 1301]
type = velset
trigger1 = time = 0
X = 1.5
Y = -6

[State 1301]
type = veladd
trigger1 = time > 0
Y = 0.4

[State 1301]
type = AngleDraw
trigger1 = 1
scale = 0.5, 0.5
value = -30 - 10*time
ignorehitpause = 1

[State 1301]
type = Helper
trigger1 = time = 0
name = "Aura"
Stateno = 1302
ID = 1302
postype = p1
pos = 0, 0
ownpal = 1
ignorehitpause = 1

[State 1301]
type = varset
trigger1 = time = 0
fvar(8) = 0.6 + 0.01*ceil(Random%21)

[State 1301]
type = Explod
trigger1 = Random%3 < 2
anim = 1105 + Random%4
ID = 1105
pos = -12+Random%25,-12+Random%25
postype = p1
bindtime = 1
removetime = -2
ownpal = 1
sprpriority = 5
facing = IfElse(Random%2 = 0, 1,-1)
vfacing = IfElse(Random%2 = 0, 1,-1)
scale = fvar(8), fvar(8)
vel = 0, 0
accel = 0, 0
ignorehitpause = 1
trans = add

[State 1301]
type = ChangeState
trigger1 = vel Y > 0 && pos Y >= 0
trigger2 = movecontact
value = 1303
ignorehitpause = 1

Please help me there. Thanks in advance!
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

Red Lunchbox

You move type is set to I and..... Where's the HitDef?

TrinitroRoy

Quote from: RedLuncbox on February 11, 2014, 11:06:04 PM
You move type is set to I and..... Where's the HitDef?
Whoops, must have somehow slipped my radar...changed move type to A, but the problem still persists...
...also, there wasn't supossed to be a hitdef, since only the explosion hurts the player, not the bottle itself.
The bottle will just explode if the player hits it.
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

BaganSmashBros

It must have hitbox to hit target and explode. Put hitdef state with pause time = 0,0. If it must be hit by someone, then it requires blue clns.

TrinitroRoy

Quote from: BaganSmashBros on February 12, 2014, 09:37:21 AM
It must have hitbox to hit target and explode. Put hitdef state with pause time = 0,0. If it must be hit by someone, then it requires blue clns.
Well, I have added both red and blue hitboxes, since I also want it to explode when hit by a projectile (I haven't tested that out though, since the timing for the projectile to actually hit the bottle is way to hard for me, even with Training).
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

BaganSmashBros

Then add hitdef and change trigger1 = 1 to trigger1 = stateno = current state number in hitoverride to prevent bottle from delaying explosion.

TrinitroRoy

Quote from: BaganSmashBros on February 12, 2014, 09:51:53 AM
Then add hitdef and change trigger1 = 1 to trigger1 = stateno = current state number in hitoverride to prevent bottle from delaying explosion.
Uhm...what delay? There is no delay. The bottle doesn't explode when it hits the opponent. Period. It only explodes when it hits the ground and maybe it also explodes when projectiles hit it. However, I would like it, if the bottle would explode when it hits the player as well...
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

BaganSmashBros

Does it disappears or goes through opponent? If goes through - add hitdef, if dissappears - make it turn into explosion and destroy itself after animation ends.

TrinitroRoy

Quote from: BaganSmashBros on February 12, 2014, 10:22:57 AM
Does it disappears or goes through opponent? If goes through - add hitdef, if dissappears - make it turn into explosion and destroy itself after animation ends.
It goes through...
...however, how do I put a hitdef, that doesn't put the opponent into a hitstate? I would really like to know...
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

BaganSmashBros

#9
Bottle itself would hurt, isn`t it? Just make hitpause = 0,0 and it wouldn`t be noticable and in explosion state add hitadd with value -1 if you don`t want to make this bottle hit twice. OR you can make it change to explosion state if p2bodydist X <0 without touching explosion state.

Red Lunchbox

#10
Quote from: Trinitronity on February 12, 2014, 08:07:51 AM
Quote from: RedLuncbox on February 11, 2014, 11:06:04 PM
You move type is set to I and..... Where's the HitDef?
Whoops, must have somehow slipped my radar...changed move type to A, but the problem still persists...
...also, there wasn't supossed to be a hitdef, since only the explosion hurts the player, not the bottle itself.
The bottle will just explode if the player hits it.

HitDef is what defines an attack, AKA, what hurts the player. If there isn't supposed to be a HitDef, then the bottle isn't supposed to come in contact with the player.

If you don't want to put it into a hitstate, simply put pausetime to 0,0, and simply don't add animtype, hittime, and slidetime velocities. It'll put them in a hitstate for exactly one tick (so the damage can be dealt), and then they'll be back to as they weere.

TrinitroRoy

Quote from: RedLuncbox on February 12, 2014, 01:33:50 PM
If you don't want to put it into a hitstate, simply put pausetime to 0,0, and simply don't add animtype, hittime, and slidetime velocities. It'll put them in a hitstate for exactly one tick (so the damage can be dealt), and then they'll be back to as they weere.
So, the hitdef should look something like this?

[State 1301]
type= HitDef
trigger1 = 1;!Movecontact
attr = A, SP
hitflag = MAF
guardflag = MA
damage = 0, 0
animtype = Null
air.animtype = Null
ground.type = Null
priority = 6, Hit
pausetime = 0, 0
sparkno = -1
guard.sparkno = -1
sparkxy = -30+random%10,-28+random%10
hitsound   = -1,0
guardsound = -1,0
ground.slidetime = 0
ground.hittime = 0
guard.hittime = 0
air.hittime = 0
guard.ctrltime = 0
airguard.ctrltime = 0
ground.velocity = 0, 0
guard.velocity = 0
air.velocity = 0,0
airguard.velocity= 0,0
ground.cornerpush.veloff = 0
air.cornerpush.veloff = 0
down.cornerpush.veloff = 0
guard.cornerpush.veloff = 0
airguard.cornerpush.veloff = 0
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

Red Lunchbox

Unless you intend for it to do no damage, I would change the damage = parameter.

The engine doesn't accept 'Null', just leave the params out. They'll default to 'Light' anyways, but it'll be only be for one tic anyways.

You can also simply leave out all the other parameters that you have as zero (ground.slidetime and everything below it), for neatness's sake. They'll all default to zero anyways.

TrinitroRoy

Quote from: RedLuncbox on February 13, 2014, 05:16:17 AM
The engine doesn't accept 'Null', just leave the params out. They'll default to 'Light' anyways, but it'll be only be for one tic anyways.
Well, that's a problem. I don't want the opponent to go to a hitstate when hit by the bottle, not even for 1 tick. I also don't want the MUGEN engine to count that as an actual hit...
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

TrinitroRoy

Sorry to bump, but I really need help there...
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

Sinnesloschen

You've been told multiple times not to bump your own topics like this. Try following said advice in the future.
Quote from: Alpaca-San on December 27, 2014, 08:50:31 AM
Is finding MUGEN to be more enjoyable to play when you're not wearing clothes an underrated opinion?

TrinitroRoy

Yeah, but how is then someone supossed to help me, if the thread isn't in the first page anymore, and only threads in the first page even has a chance to get help?
And I really REALLY need help there.
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

Sinnesloschen

Dude, if nobody has the answer within a week or longer, chances are you aren't going to get help within the topic. Again, quit bumping your own topics like this. It's not rocket science, no matter how much you desperately need the help.
Quote from: Alpaca-San on December 27, 2014, 08:50:31 AM
Is finding MUGEN to be more enjoyable to play when you're not wearing clothes an underrated opinion?

TrinitroRoy

So that means, if my thread gets in the second page, I have to make a new thread with the same problem and delete the old topic then?
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

Sinnesloschen

Missing the point, dude. If you can't get the help, making a new topic won't change that. Try PM'ing somebody for the help instead of bumping newer topics back because you don't know how to simply follow instructions.
Quote from: Alpaca-San on December 27, 2014, 08:50:31 AM
Is finding MUGEN to be more enjoyable to play when you're not wearing clothes an underrated opinion?