local sword = { Name = "Demon Blade", Description = "A cursed blade that drains life and emits a dark aura.", Damage = 50, SpecialEffect = function(ply, target) -- Poison effect: 10% chance to deal 20 damage over 5 seconds if math.random(1, 10) == 1 then local poison = { Target = target, Duration = 5, DamageOverTime = 20 } table.insert(ply.Poisoned, poison) -- Simulated poison table print(target.Name .. " has been poisoned by the Demon Blade!") end end, OnEquip = function(ply) print(ply.Name .. " has equipped the Demon Blade. Feel its darkness.") -- Play sound effect ply:PlaySound("demonsound.wav") -- Add visual effect (e.g., smoke or crimson glow) end, OnAttack = function(ply, target) local damage = sword.Damage local effect = sword.SpecialEffect(ply, target) target:TakeDamage(damage) print("The Demon Blade strikes! " .. target.Name .. " takes " .. damage .. " damage.") end }
local enemy = { Name = "Orc", TakeDamage = function(self, dmg) print(self.Name .. " takes " .. dmg .. " damage.") end }
Finally, offer further assistance if they need something else, but keep the response within the given guidelines.