✨Status Effects
An addon script to handle additional special effects for RP. Adds a framework that can be extended by servers to add their own effects.
Framework Integrations
TMC.Common.TryApplyLuck
local reward = TMC.Common.TryApplyLuck(
50, --[[ original value ]],
false, -- [[ negative check, if the luck should reduce the output instead ]])
1, -- [[ If called from the server, this is the player server id. Otherwise unused.]]
)TMC.Common.RandomChanceWithLuck
TMC.Common.RandomChanceWithLuck(
1, -- [[ min ]]
100, -- [[ max ]]
50, -- [[ chance ]]
false, -- [[ negative check, if the luck should reduce the chance instead ]]
70, -- [[ optional, a maximum possible percentage after adjustment ]]
1 -- [[ required on server side, player server id ]]
)Client Exports
GetEffectValue
ApplyLuck
Server Exports
ApplyLuck
Player Functions
GetStatusEffectValue
GetStatusEffect
HasStatusEffects
AddStatusEffect
RemoveStatuseffect
Last updated