• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.
Resource icon

spell damage roller

skeetzoo

Banned User
Joined
Aug 22, 2024
Messages
90
Reaction score
28
Location
theforgottenserver
skeetzoo submitted a new resource:

spell damage roller - spells

LUA:
-- Simulate 25 rolls of damage
    local results = {}
    for i = 1, 25 do
        local roll = math.random(min, max)
        table.insert(results, roll)
    end
    
    -- Compile the results into a string message
    local resultMessage = "Damage Rolls: " .. table.concat(results, ", ")
    player:sendTextMessage(MESSAGE_INFO_DESCR, resultMessage)

this will auto generate 25 times the damage spell will cause just put it in your getFormula value :)
great for creating...

Read more about this resource...
 
Back
Top