[DiscordArchive] What's the error you keep seeing anyway?
[DiscordArchive] What's the error you keep seeing anyway?
Archived author: Honey • Posted: 2024-04-24T15:02:55.935000+00:00
Original source
What's the error you keep seeing anyway?
Archived author: Foe • Posted: 2024-04-24T15:23:31.138000+00:00
Original source
No, it does not
Archived author: Foe • Posted: 2024-04-24T15:23:43.642000+00:00
Original source
That's some ChatGPT right there
Archived author: Honey • Posted: 2024-04-24T15:30:52.917000+00:00
Original source
Guessed as much.
Feel free to write a function.like that:
<https://github.com/55Honey/Acore_eventScripts/blob/cf6fda247600104a049416cf3ed7feb0340f700a/scripts/custom_boss_events/eventBosses.lua#L160>
Archived author: Foe • Posted: 2024-04-24T15:36:11.192000+00:00
Original source
```Lua
local t = {1, 2, 3}
function table.contains(tb, var)
for _, v in pairs(tb) do
if(v == var) then
return true
end
end
return false
end
print(table.contains(t, 1))```
Archived author: Foe • Posted: 2024-04-24T15:36:24.019000+00:00
Original source
Though this should really be written C side and not through Lua
Archived author: Foe • Posted: 2024-04-24T15:39:18.505000+00:00
Original source
Iterating over the table is pretty slow compared to doing it C side