Aerisetta
Active member
Hi,
I am currently creating a feature where the player needs to press a button to get up after getting knocked down. If the player does not press anything, the player will stay on the ground, and enemies could grab them into a strangle hold.
I am using riseattack as the way for the player to get back up.
Here is the header
riseinv 1 1
risetime -99999 0
riseattacktype 0
makeinv 2 0
One issue I am having is in this way, the player is immediately vulnerable to attack when they get back up because the riseinv does not apply to risattack.
Is there a way for me to create this feature and get riseinv to still work?
I am currently creating a feature where the player needs to press a button to get up after getting knocked down. If the player does not press anything, the player will stay on the ground, and enemies could grab them into a strangle hold.
I am using riseattack as the way for the player to get back up.
Code:
anim rise
@script
if(frame==1){
void self = getlocalvar("self");
int DedSt = getentityvar(self, "DedSt");
if(DedSt!=0){
performattack(self, openborconstant("ANI_FOLLOW25"));
}
}
@end_script
delay 6
offset 800 650
frame data/chars/Aerisetta/fall203.png
move 10
@cmd setglobalvar "zoomentity" NULL()
frame data/chars/Aerisetta/fall203.png
move -10
frame data/chars/Aerisetta/fall203.png
move 10
frame data/chars/Aerisetta/fall203.png
move -10
frame data/chars/Aerisetta/fall203.png
move 10
@cmd setglobalvar "zoomentity" NULL()
frame data/chars/Aerisetta/fall203.png
move -10
anim riseattack
@script
if(frame==1){
void self = getlocalvar("self");
int DedSt = getentityvar(self, "DedSt");
if(DedSt!=0){
performattack(self, openborconstant("ANI_FOLLOW25"));
}
}
@end_script
delay 6
offset 800 650
frame data/chars/Aerisetta/fall203.png
move 10
@cmd setglobalvar "zoomentity" NULL()
frame data/chars/Aerisetta/fall203.png
move -10
frame data/chars/Aerisetta/fall203.png
move 10
frame data/chars/Aerisetta/fall203.png
move -10
frame data/chars/Aerisetta/fall203.png
move 10
@cmd setglobalvar "zoomentity" NULL()
frame data/chars/Aerisetta/fall203.png
move -10
Here is the header
riseinv 1 1
risetime -99999 0
riseattacktype 0
makeinv 2 0
One issue I am having is in this way, the player is immediately vulnerable to attack when they get back up because the riseinv does not apply to risattack.
Is there a way for me to create this feature and get riseinv to still work?