[DiscordArchive] I feel like `haveHealed` is applying across the board; across all instances forever?
[DiscordArchive] I feel like `haveHealed` is applying across the board; across all instances forever?
Archived author: Michael Crilly • Posted: 2024-05-12T11:57:10.023000+00:00
Original source
I feel like `haveHealed` is applying across the board; across all instances forever?
Archived author: Anchy • Posted: 2024-05-12T12:04:33.438000+00:00
Original source
yes
Archived author: Michael Crilly • Posted: 2024-05-12T12:05:14.557000+00:00
Original source
Makes sense. The variable is loaded into memory. Is there a way I can make it per-creature without using the DB?
Archived author: Anchy • Posted: 2024-05-12T12:15:00.929000+00:00
Original source
use a lua table maybe, i dont know much about eluna lua states but i would just create a table and reference some settings using the creatures guid as key
Archived author: Foe • Posted: 2024-05-12T12:15:35.500000+00:00
Original source
SetData and GetData
Archived author: Anchy • Posted: 2024-05-12T12:15:51.037000+00:00
Original source
that sounds a lot more elegant lol
Archived author: Foe • Posted: 2024-05-12T12:16:14.526000+00:00
Original source
So creature:SetData(key, val) and creature:GetData(key)
Archived author: Anchy • Posted: 2024-05-12T12:16:29.595000+00:00
Original source
is that part of Object
Archived author: Foe • Posted: 2024-05-12T12:17:26.220000+00:00
Original source
Nah, it's just an extension, in the background it's essentially a table for the specific object, it just gives you easy ambiguation without having to do all the creation and null referencing yourself
Archived author: Foe • Posted: 2024-05-12T12:17:49.339000+00:00
Original source
https://github.com/ElunaLuaEngine/Eluna/...iables.ext
[Embed: Eluna/extensions/ObjectVariables.ext at master · ElunaLuaEngine/Eluna]
Eluna Lua Engine © for WoW Emulators. Contribute to ElunaLuaEngine/Eluna development by creating an account on GitHub.
https://github.com/ElunaLuaEngine/Eluna/...iables.ext