YesNoOk
avatar

A.I. Keeps guarding my special move (Read 3080 times)

Started by mkfreak89, November 02, 2020, 05:11:44 am
Share this topic:
A.I. Keeps guarding my special move
#1  November 02, 2020, 05:11:44 am
  • avatar
  • **
Whenever the CPU blocks a certain special attack from my Char than it suddenly freezes in Guard stance until I hit the CPU again.
Is there any way to solve this ? All the other Special attacks work just fine but this particular special I perform with my Char seem to have an issue.
If anyone knows a solution please let me know I would like to get it fixed somehow.

Here is the code
Spoiler, click to toggle visibilty
Last Edit: November 03, 2020, 09:20:44 pm by mkfreak89
Re: A.I. Keeps being in guarded stance
#2  November 02, 2020, 08:20:55 am
  • avatar
  • ***
    • https://sites.google.com/site/mgmurrow/
You should just null the state out or better yet just remove the targetstate. If you want it to act like a normal block then removing it should be all you need to do

Hope this helps

MGMURROW
Re: A.I. Keeps being in guarded stance
#3  November 03, 2020, 12:54:55 am
  • avatar
  • **
You should just null the state out or better yet just remove the targetstate. If you want it to act like a normal block then removing it should be all you need to do

Hope this helps

MGMURROW

I realized now that I have another problem within the fix, I saw that whenever I perform the special move the A.I always successfully guards it which makes the move pretty useless for the most part, I tried your suggestion out but none of the 2 seems to fix the issue which I have now.

Is there any other way to make the A.I guard it less ? Please to anyone help.
Last Edit: November 03, 2020, 01:03:27 am by mkfreak89
Re: A.I. Keeps being in guarded stance
#4  November 03, 2020, 01:26:25 am
  • avatar
  • ***
    • https://sites.google.com/site/mgmurrow/
the state 1040 does not have a hitflag in the def, put this in and define what hits

hitflag = MAF

triggerall = !movecontact && animelem = 4  <----also you dont need the !movecontact
trigger1 = !movecontact

just use

trigger1 = animelem = 4



[State ]
type = Hitdef
triggerall = !movecontact && animelem = 4
trigger1 = !movecontact

damage = 120,20
pausetime = 1,6
attr = S,SA
guardflag = M
hitflag = MAF  <----this here
animtype = high
air.animtype = back
priority = 4, hit
sparkno = -1
guard.sparkno = -1
sparkxy = 0, 0
hitsound = 5,106
guardsound = 5,14
ground.type = high
air.type = high
ground.slidetime = 12
ground.hittime = 20
ground.hittime = 16
ground.velocity = 0, 0
guard.velocity = -4
air.velocity = -5, -3
air.cornerpush.veloff = 0
ground.cornerpush.veloff = 0
yaccel = .5
air.fall = 1
fall.recover = 0
fall.xvelocity = 0
fall.yvelocity = 0
kill       = (Var(9) = 0)
fall.kill  = (Var(9) = 0)
guard.kill = (Var(9) = 0)
forcestand = 1
Re: A.I. Keeps being in guarded stance
#5  November 03, 2020, 02:17:14 am
  • avatar
  • **
the state 1040 does not have a hitflag in the def, put this in and define what hits

hitflag = MAF

triggerall = !movecontact && animelem = 4  <----also you dont need the !movecontact
trigger1 = !movecontact

just use

trigger1 = animelem = 4




I exchanged some things but it still doesnt succesfully  hit the opponent like the other special moves in the first or second try.

What do you mean with "put this in and define what hits" you mean I need to add something further within the "hitflag = MAF" ?

Thank you in between for helping me out.
Re: A.I. Keeps guarding my special move
#6  November 08, 2020, 04:06:20 am
  • avatar
  • ***
    • https://sites.google.com/site/mgmurrow/
this

hitflags: What stances will the character hit P2

H = High
L = Low
M = Mid (High and Low)
A = Air (Not falling)
F = Falling
D = Downed (OTG, ignored if F is not used)
+ = Only works when comboed into
- = Can't be comboed into

Guardflags
H = Block High
L = Block Low
M = Block mid (both high and low)
A = Air
leaving the guardflag blank or not specifying it = Unblockable

define how you want the move to hit and put in the Letter(s)

MGMURROW