kimduck
New member
void main(){
void self = getlocalvar("self");
void vAniID = getentityproperty(self,"애니메이션ID")
int MP = getentityproperty(자기 자신, "mp");
if(vAniID != openborconstant("ANI_SPECIAL")){
changeentityproperty(self, "mp", MP + 1);
}
}
I’ve asked this question before, and I got a helpful answer from Bloodbane. Thank you so much!
It works well when I attack directly, but now I want it to work with projectiles like fireballs too.
So instead of applying the effect to myself, I want to apply it to a specific entity by name.
For example, I want to increase the MP of an entity named "baba".
Could you please show me how to modify the code so that MP +1 is applied to the entity named "baba" instead of to self?
I would really appreciate it.
P.S.: I’ve asked ChatGPT several times before, but I’ve never received a clear or accurate answer.
void self = getlocalvar("self");
void vAniID = getentityproperty(self,"애니메이션ID")
int MP = getentityproperty(자기 자신, "mp");
if(vAniID != openborconstant("ANI_SPECIAL")){
changeentityproperty(self, "mp", MP + 1);
}
}
I’ve asked this question before, and I got a helpful answer from Bloodbane. Thank you so much!
It works well when I attack directly, but now I want it to work with projectiles like fireballs too.
So instead of applying the effect to myself, I want to apply it to a specific entity by name.
For example, I want to increase the MP of an entity named "baba".
Could you please show me how to modify the code so that MP +1 is applied to the entity named "baba" instead of to self?
I would really appreciate it.
P.S.: I’ve asked ChatGPT several times before, but I’ve never received a clear or accurate answer.
Last edited: