void xxx()
{
void self = getlocalvar("self");
void vAniID = getentityproperty(self,"animationID");
int iPIndex = getlocalvar("player");
int mp = getentityproperty(self, "mp");
int cost = 15;
if(playerkeys(iPIndex, 1, "attack3")){
if(mp >= cost){
if(vAniID == openborconstant("ANI_IDLE") || vAniID == openborconstant("ANI_WALK") || vAniID == openborconstant("ANI_RUN")){
changeentityproperty(self, "mp", mp-cost);
changeentityproperty(self, "velocity", 0, 0, 0);
performattack(self, openborconstant("ANI_FREESPECIAL1"), 0);
}
}
}
}
anim follow1
loop 0
delay 15
offset 72 131
bbox 64 122 16 10
jumpframe 0 3 0 0
@cmd jump 1
frame data/chars/mboss05/jump.gif
do you have this jump script?@cmd jump 1
do you have this jump script?
I've gotten jump scripts before because I needed them.void jump(int flag)
{//Turns jumping status
void self = getlocalvar("self");
if(flag == 1){
changeentityproperty(self, "aiflag", "jumping", 1);
changeentityproperty(self, "takeaction", "common_jump");
}else{
changeentityproperty(self, "aiflag", "jumping", 0);
}
}
Can you record a video so I can see what's going on.void main()
{
void self = getlocalvar("self");
void vAniID = getentityproperty(self,"animationID");
int iPIndex = getlocalvar("player");
int mp = getentityproperty(self, "mp");
int cost = 0;
if(playerkeys(iPIndex, 1, "jump")){
if(mp >= cost){
if(vAniID == openborconstant("ANI_attack1")){
changeentityproperty(self, "mp", mp-cost);
changeentityproperty(self, "velocity", 0, 0, 0);
performattack(self, openborconstant("ANI_follow1"), 0);
}
}
}
}
I finally succeeded. Switches to jumping while attacking.
But there is something I want to get rid of here. It's Mp. If I touch it, an error occurs, so I want to ask you to fix it.
void main()
{
void self = getlocalvar("self");
void vAniID = getentityproperty(self,"animationID");
int iPIndex = getlocalvar("player");
int mp = getentityproperty(self, "mp");
int cost = 0;
if(playerkeys(iPIndex, 1, "jump")){
if(mp >= cost){
if(vAniID == openborconstant("ANI_attack1")){
changeentityproperty(self, "mp", mp-cost);
changeentityproperty(self, "velocity", 0, 0, 0);
performattack(self, openborconstant("ANI_follow1"), 0);
}
}
}
}
I finally succeeded. Switches to jumping while attacking.
But there is something I want to get rid of here. It's Mp. If I touch it, an error occurs, so I want to ask you to fix it.
void main()
{
void self = getlocalvar("self");
void vAniID = getentityproperty(self, "animationID");
int iPIndex = getlocalvar("player");
int mp = getentityproperty(self, "mp");
int cost = 0;
if (playerkeys(iPIndex, 1, "jump")) {
if (mp >= cost) {
if (vAniID == openborconstant("ANI_attack1")) {
changeentityproperty(self, "mp", mp - cost);
changeentityproperty(self, "velocity", 0, 0, 0);
performattack(self, openborconstant("ANI_follow1"), 0);
}
}
}
}
Can you record a video so I can see what's going on.
void main()
{
void self = getlocalvar("self");
void vAniID = getentityproperty(self,"animationID");
int iPIndex = getlocalvar("player");
if(playerkeys(iPIndex, 1, "jump")){
if(vAniID == openborconstant("ANI_attack1")){
performattack(self, openborconstant("ANI_follow1"), 0);
}
}
}