Aerisetta
Active member
Hi
Spent a few hours trying to do this but couldnt get it to work.
I would like to do this
1. Player spawns a dummy NPC
2. Dummy stays on screen for a few seconds
3. When dummy gets hit, it deals direct damage to the enemy who hit it (not AOE), and a numbered attack (i.e. ATTACK5) and knocks down the opponent
4. This is so that the enemy gets hit with ATTACK5, they will spawn an item.
I it happens, my game crashes, please help
Spent a few hours trying to do this but couldnt get it to work.
I would like to do this
1. Player spawns a dummy NPC
2. Dummy stays on screen for a few seconds
3. When dummy gets hit, it deals direct damage to the enemy who hit it (not AOE), and a numbered attack (i.e. ATTACK5) and knocks down the opponent
4. This is so that the enemy gets hit with ATTACK5, they will spawn an item.
I it happens, my game crashes, please help
Invalid entity parameter.
Script function 'damageentity' returned an exception, check the manual for details.
parameters: <VT_EMPTY> Unitialized, #202862632, 1, 1, 9,
Code:
name Parry
type npc
health 1000
nomove 1
candamage enemy npc obstacle
lifespan 3
animationscript data/scripts/prscript.c
anim idle
delay 1
@cmd spawner "trail" 0 0 0
drawmethod alpha 1
offset 800 620
bbox 750 340 100 280
delay 70
frame data/chars/lucifer/float.png
delay 5
@cmd suicide
frame data/chars/lucifer/float.png
anim pain
@script
void self = getlocalvar("self");
void Opp = getlocalvar("attacker");
if(frame==1)
{
damageentity(Opp, self, 1, 1, openborconstant("ATK_NORMAL5"));
}
@end_script
delay 1
offset 800 620
bbox 750 340 100 280
frame data/chars/lucifer/float.png
delay 100
@cmd suicide
frame data/chars/lucifer/float.png
anim attack5
delay 1
offset 800 620
bbox 750 340 100 280
frame data/chars/lucifer/float.png
attack5 800 353 120 200 1 1 0 0 40 0
delay 100
@cmd suicide
frame data/chars/lucifer/float.png