Wall-like NPC behavior?

Hello there, developers.

I'm trying to create a skill for one of my characters, where he summons a wall-like object; immobile, blocks damage and prevents walkthrough. I've tried to create a NPC object for it, but it's behaving weirdly; enemies aren't trying to attack it (even with hostile including npcs) and it dies as long as it takes any damage (even with many hit points).

Could someone help me with it?

Code:
name Dogwall
type npc
health 150
shadow 5
lifespan 10
antigravity 100
nomove 1

# anim spawn
# loop 0
# delay 5
# offset 48 93
# frame data/NPCs/Dogwall_00.png
# frame data/NPCs/Dogwall_01.png
# frame data/NPCs/Dogwall_02.png
# bbox	13  36 70 52
# frame data/NPCs/Dogwall_03.png
# frame data/NPCs/Dogwall_03.png

anim idle
loop 1 3 4
delay 5
offset 48 93
bbox	13  36 70 52
frame data/NPCs/Dogwall_00.png
frame data/NPCs/Dogwall_01.png
frame data/NPCs/Dogwall_02.png
bbox	13  36 70 52
frame data/NPCs/Dogwall_03.png
frame data/NPCs/Dogwall_03.png

anim pain
loop 0
delay 5
offset 48 93
bbox	13  36 70 52
frame data/NPCs/Dogwall_03.png

anim death
loop 0
delay 5
offset 48 93
frame data/NPCs/Dogwall_03.png
frame data/NPCs/Dogwall_02.png
frame data/NPCs/Dogwall_01.png
frame data/NPCs/Dogwall_00.png
 
I'm not sure how this Dogwall could work as a wall since it's missing platform

enemies aren't trying to attack it (even with hostile including npcs)

Well, that's strange. Try setting hostile npc to enemies to see if they try to attack this wall

it dies as long as it takes any damage (even with many hit points).

Dogwall is missing FALL animation that's why when it's knocked down, it gets instant death
If you don't want this Dogwall to be knocked down, set nodrop 2
 
I'm not sure how this Dogwall could work as a wall since it's missing platform
Added it, wasn't finding it before on the manual. Seems like a really complicated command, gonna study it further.

Well, that's strange. Try setting hostile npc to enemies to see if they try to attack this wall
I've changed the order from hostile player npc to hostile npc player and now it works fine, thanks!

Dogwall is missing FALL animation that's why when it's knocked down, it gets instant death
If you don't want this Dogwall to be knocked down, set nodrop 2
tried it already, one single punch and the dogwall vanishes instantly
 
I had helped him at FB. He was using a bomb behaviour and lifespan.

But what is strange is: the same entity works on my game. And if he spawns it on stage, it works. But if he spawns it using the projectile function, it bugs.
 
Back
Top Bottom