News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Attack Help..

Started by tetsuo9999, October 17, 2007, 11:03:00 PM

Previous topic - Next topic

tetsuo9999

I want this attack to posion p2 and kill/damage him/her in 100 secs..but it doesn't.. ???

[Statedef 15200]
type    = S            ;State-type: S-stand, C-crouch, A-air, L-liedown
movetype= A            ;Move-type: A-attack, I-idle, H-gethit
physics = S            ;Physics: S-stand, C-crouch, A-air
juggle  = 1            ;Number of air juggle points move takes
;Commonly-used controllers:
velset = 0,0         ;Set velocity (x,y) (Def: no change)
ctrl = 0            ;Set ctrl (Def: no change)
anim = 5142            ;Change animation (Def: no change)
poweradd = 20         ;Power to add (Def: 0)
sprpriority = 2         ;Set layering priority to 2 (in front)


[State 5142, 1]
type = HitDef
trigger1 = Time = 0
attr = S, NA
damage = 23, 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 0, 8
sparkno = S9010                      ;Spark anim no (Def: set above)
sparkxy = -10, -75              ;X-offset for the "hit spark" rel. to p2,
hitsound = S5, 1
guardsound = 6, 0
ground.type = High
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -1
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-0
air.hittime = 12
ground.cornerpush.veloff = 0
air.cornerpush.veloff = 0
down.cornerpush.veloff = 0
guard.cornerpush.veloff = 0
airguard.cornerpush.veloff = 0
palfx.time = 30
palfx.add = 100,0,100
palfx.mul = 120,20,124
palfx.sinadd = 85,110,55,10

[State 0, TargetLifeAdd]
type = TargetLifeAdd
triggerall = Movehit = 1
trigger1 = time = 100
value = -100
ignorehitpause = 1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 4
value = S9,2
volume = 800

[State 0, HitOverride]
type = HitOverride
trigger1 = time = 0
attr = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
stateno = 1520004067
time = -1

[State 0, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 15000
ctrl = 1
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx

Bastard Mami

the target lifeadd will be wrong most of the time, it seems.

first, movehit =1 means that it will only trigger one tick after p2 has been hit, that does not seem to bode well with having to wait 100 ticks to trigger as well. and is not like a damage of 100 can kill most oponents.

Cyanide

#2
No he wants it to do the damage 100 seconds (!!!!!!!) later.

Aside from 100 seconds being most of a fight, this can't be done in mugen. Poison attacks like this have a couple of big issues

1 they should always hit, full screen unblockable hitbox.
2 you can't damage p2 unless he's in a gethit state/custom state
3 to put him in a gethit/custom state you have to hit him first
4 hitting him at the 100 second mark with your unblockable full screen hitbox will knock him out of any move he happens to be doing.

You can't use a he was hit by X and will take damage later on because of this. Can't be done.


Bah didn't read code.

Reanswering, now with code reading abilities applied

100 ticks occurs probably not only after you've left the state but after p2 has stopped being a target as well. Your hittime is only 12 ticks. You need to keep p2 as a target before you can use targetlifeadd. If you leave the state your sctrl will no longer function as well. Some of my strikethrough shit does apply here.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Bastard Mami

yeah, code and concept don't go hand by hand, not to mention that 100 ticks is too short for poisoning and 100 seconds is too long for one round.

the way i would do this, is create a helper, then have said helper follow p2 and deliver the ending blow once the amount of seconds have passed.

tetsuo9999

Nvm its an helper that attacks more than once so it probably wouldn't work right..
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx

ZzEzZ

well, if this helper attacks more than once, have it create an invisible helper that does the poison damage... so the helper that attacks more than once can go on about its business, and u still get your poison damage effect

Cybaster

Sort of like Reu's Evil Ryu once he has performed Denjin Hadoken on the opponent. He gets struck by lightning every 3 or 4 seconds.