I can see it when hitting enemies, I have the damage points visible.
Can you show me how to get around that bug? I noticed that base damage is actually increasing but it’s not showing it. I’m going to look into that takedamagescript after work in an hour.Ah just as I thought. It's a bug with entity's takedamagescript. Damage value which the script could acquire doesn't include modified offense factor.
Ex: base damage is 2 and offense is multiplied by 3. If the damage is taken by entity, takedamagescript will only return 2 damage, even though the actual damage is 6.
Can you show me how to get around that bug? I noticed that base damage is actually increasing but it’s not showing it. I’m going to look into that takedamagescript after work in an hour.
void main()
{
void self = getlocalvar("self");
void Opp = getlocalvar("attacker"); //Get attacker
int Buff = getentityproperty(Opp, "offense", openborconstant("ATK_NORMAL"));
int damage = getlocalvar("damage");
int x, z, y, t;
void f;
damage = Intego(damage*Buff);
if(damage){
x = getentityproperty(self, "x");
z = getentityproperty(self, "z")+1;
y = getentityproperty(self, "y")+50;
setspawnentry("name", "numflash");
while(damage){
t = damage % 10;
f = spawn();
changeentityproperty(f, "position", x,z,y);
updateframe(f, t);
damage/=10;
x -= 8;
}
f = spawn();
changeentityproperty(f, "position", x,z,y);
updateframe(f, 10);
}
}
void Intego(int Value)
{
int i = 0;
while(i < Value){
i = i+1;
}
return i;
}