Opywang
Member
Hi I am trying to make random base damage for both min, and max so it doesn't mess up like too much min, and not enough max. I borrow this scripts for pet base damage it only upgrade if there is enough max damage, but it cannot pass more than that.
Code:
if(MaxDamage < MinDamage && MaxDamage < 100)
{
MaxDamage = Utility.RandomMinMax( 17, 100);
//from.SendMessage("You have reinforced your pet by 1 point of Damage Max. Total: [{0}]", t.DamageMax);
//m_Potion.Delete();
}
else
{
//from.SendMessage("Your pet have a maximum Damage Max.");
//return;
}
}
}