openwf/Scripts/samples/Increase Damage.pluto
2025-10-06 18:27:00 +08:00

9 lines
428 B
Plaintext

-- Modifications to sample scripts will be lost the next time you start the game.
if weapon := gRegion:GetLocalPlayerAvatar():InventoryControl():GetWeaponInHand(0) then
local impactBehavior = weapon:GetActiveImpactBehavior()
impactBehavior.criticalHitChance = 10000
impactBehavior.criticalHitDamageMultiplier = 10000
print("Your weapon damage has been increased!")
else
print("You don't seem to have a weapon in hand.")
end