Thread:Endercreeper9999/@comment-27921370-20160612222059/@comment-24808209-20160613184345

FourthRhyme wrote: What type of coding did you use to make Undyne continue attacking even when damaged? I'm trying something similar for Sans...?, but nothing seems to work. (I want him to feel similar to the enemies in the game, he can't be knocked around but takes damage anyway.) It either deals no damage or doesn't block at all. Any help or tips you could give? I built Undyne the Undying (I'll just call her UndyneX from now on) off my unreleased Mettaton NEO, so they use the same coding, albeit modified so UndyneX doesn't die in one hit. Onto technically stuff, the code is in two parts. First, the hitoverride which goes in state -3:

[State -3, Hitstate]

type = HitOverride

trigger1 = 1

attr = SCA,AA,AT,AP

slot = 1

stateno = 2

time = 100

And then the hitstate coding (The PalFX makes UndyneX flash red upon being hit and the PlaySND plays the hit sound, but both of these can be removed and you can change Statedef 2 to whatever you want, as long as you change it in 'stateno = 2' of the hitoverride state):

[Statedef 2]

type    = S movetype = H  physics  = N juggle   = 0 ctrl    = 0 poweradd = 0 anim = 3

sprpriority = 0

[State 2, 1]

type = VarSet

trigger1 = Time = 0

v = 1

value = 0

[State 2, 2]

type = Varset

trigger1 = time = 0

trigger1 = random >= 500

v = 1

value = 1

[State 2, 3]

type = PalFX

trigger1 = time = 0

trigger1 = Var(1) = 0

time = 2

add = 0,0,0

mul = 256,64,64

sinadd = 256,256,256,10

invertall = 0

color = 256

[State 2, SND]

type = playsnd

trigger1 = time = 1

value = S11,3

[State 2, 4]

type = PalFX

trigger1 = time = 0

trigger1 = Var(1) = 1

time = 2

add = 0,0,0

mul = 64,256,64

sinadd = 256,256,256,10

invertall = 0

color = 256

[State 2, 5]

type = changestate

trigger1 = time = 0

trigger1 = Var(1) = 1

value = 0

[State 2, 6]

type = changestate

trigger1 = time >= 1

value = 0

I don't know if this code works for regular character since UndyneX and MTT-NEO are both boss characters, but feel free to try this code. If you need anything else, feel free to ask me.

Also, thanks for giving me Glitch Sans' internal name. I put a ton of names in Sans' winquote state just to make sure it'd work. Also, if you want to do anything with my Sans, use these:

Sans by Endercreeper (Though I saw that internal name in Papyrus's code, so I guess you knew what it was, eh? )

And also this...

SANESSSSS by Endercreeper (He'll be the same as Sans, he just has voices from Undepants Genocide, sprites resembling SANESSSSS and changed winquotes, but won't be released until after Sans is done)

And take a wild guess of what UndyneX's internal name is :P