Hey all, I've asked questions a couple of times around here and now I'm back again.
Recently I've been working on some systems that have been... difficult to wrap my head around, but it seems that some changes I'm doing for some reason crashes the editor when I try to save them. I was hoping this was a problem that some of you have encountered as well.
It seems to be this specific section because if I paste this in from Visual Studio Code it crashes the editor upon saving.
Recently I've been working on some systems that have been... difficult to wrap my head around, but it seems that some changes I'm doing for some reason crashes the editor when I try to save them. I was hoping this was a problem that some of you have encountered as well.
It seems to be this specific section because if I paste this in from Visual Studio Code it crashes the editor upon saving.
Lua:
function UpdateItemDesc(i)
local it = GetItemTypeId(i)
local s = "|c00ffff00Class:|r " .. Item_Type[it].name
for x = 1, STAT_COUNT, 1 do
if Item_Bonus_Stats[x][i] > 0 then
s = string.format(s .. "\n|cffffffff%%d %%s%%s|r", math.floor(Item_Bonus_Stats[x][i] + 0.5), Stats[x].color, Stats[x].name)
end
if Item_Multipliers[x][i] > 0 then
s = string.format(s .. "\n|cffffffff%%.1f%%%% %%s%%s|r", (Item_Multipliers[x][i] * 100), Stats[x].color, Stats[x].name)
end
end
if Item_Custom_Description[it] ~= nil then
s = string.format(s .. "\n%s", Item_Custom_Description[it])
end
for x = 1, STAT_COUNT, 1 do
if Item_Minor_Stats[x][i] > 0 then
s = string.format(s .. "\n|c00808080+%%.1f%%%% %%s|r", Item_Minor_Stats[x][i], Stats[x].name)
end
end
BlzSetItemExtendedTooltip(i, s)
BlzSetItemDescription(i, s)
end