[DiscordArchive] Any reason why you don't just have a timed event tied to the creatures on spawn that checks for thei
[DiscordArchive] Any reason why you don't just have a timed event tied to the creatures on spawn that checks for thei
Archived author: Foe • Posted: 2022-04-24T15:27:09.976000+00:00
Original source
just get the creatures phase on spawn
Archived author: Foe • Posted: 2022-04-24T15:28:43.570000+00:00
Original source
local eventActive[phaseId] = false
statusStore[phaseId][creature:GetGUIDLow()] = 0
statusStore[phaseId][creature:GetGUIDLow()] = 1
for _, creatureStatus in pairs(statusStore[phaseId]) do
Archived author: Honey • Posted: 2022-04-24T15:29:35.641000+00:00
Original source
aight, that's something along the line that i thought of. Thanks!
Archived author: Foe • Posted: 2022-04-24T15:30:30.587000+00:00
Original source
You just have to use the phase ID as reference in your other functions and registers etc, then it should be fine
Archived author: Honey • Posted: 2022-04-24T15:31:06.627000+00:00
Original source
Still a total re-write. But i like your approach without referencing all the event IDs. Less messy
Archived author: Foe • Posted: 2022-04-24T15:31:13.031000+00:00
Original source
For sure
Archived author: Honey • Posted: 2022-04-24T15:31:17.799000+00:00
Original source
I think it's worth it.
Archived author: Foe • Posted: 2022-04-24T15:31:21.944000+00:00
Original source
I would say so
![[Image: unknown.png?ex=690c16bb&is=690ac53b&hm=e...11108f9d5&]](https://cdn.discordapp.com/attachments/448835144564867094/967810194300076082/unknown.png?ex=690c16bb&is=690ac53b&hm=e43f39204d17ea5ecbbf82fbb1c1196e0aa08edd40cf579592e875611108f9d5&)
Archived author: Honey • Posted: 2022-04-24T15:32:11.563000+00:00
Original source
Again
![[Image: unknown.png?ex=690c16bb&is=690ac53b&hm=e...11108f9d5&]](https://cdn.discordapp.com/attachments/448835144564867094/967810194300076082/unknown.png?ex=690c16bb&is=690ac53b&hm=e43f39204d17ea5ecbbf82fbb1c1196e0aa08edd40cf579592e875611108f9d5&)
Archived author: Foe • Posted: 2022-04-24T15:32:21.611000+00:00
Original source