Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Wait, there can be 32 phases?

[DiscordArchive] Wait, there can be 32 phases?

[DiscordArchive] Wait, there can be 32 phases?

Pages (3): Previous 1 2 3 Next
rektbyfaith
Administrator
0
07-15-2021, 09:37 AM
#11
Archived author: bandysc • Posted: 2021-07-15T09:37:22.128000+00:00
Original source

since wrath blizzard introduced "phasing" that is - in the same place of world you can see different set of NPCs
rektbyfaith
07-15-2021, 09:37 AM #11

Archived author: bandysc • Posted: 2021-07-15T09:37:22.128000+00:00
Original source

since wrath blizzard introduced "phasing" that is - in the same place of world you can see different set of NPCs

rektbyfaith
Administrator
0
07-15-2021, 09:38 AM
#12
Archived author: bandysc • Posted: 2021-07-15T09:38:47.368000+00:00
Original source

in core it is achieved using "object phase mask" - object in the world (including player) can be in specific phase (and you can use all 32 bits of integer for that), player can only see the object if one is in the same phasemask as object
rektbyfaith
07-15-2021, 09:38 AM #12

Archived author: bandysc • Posted: 2021-07-15T09:38:47.368000+00:00
Original source

in core it is achieved using "object phase mask" - object in the world (including player) can be in specific phase (and you can use all 32 bits of integer for that), player can only see the object if one is in the same phasemask as object

rektbyfaith
Administrator
0
07-15-2021, 09:40 AM
#13
Archived author: bandysc • Posted: 2021-07-15T09:40:21.761000+00:00
Original source

SAI has event phase mask - this is the same math (because, well you can't change the maths rule, this is the most efficient way to keep different values in a single number), but has completely different purpose - SAI script can be in specific "event phase", that you can switch to using actions
rektbyfaith
07-15-2021, 09:40 AM #13

Archived author: bandysc • Posted: 2021-07-15T09:40:21.761000+00:00
Original source

SAI has event phase mask - this is the same math (because, well you can't change the maths rule, this is the most efficient way to keep different values in a single number), but has completely different purpose - SAI script can be in specific "event phase", that you can switch to using actions

rektbyfaith
Administrator
0
07-15-2021, 09:40 AM
#14
Archived author: bandysc • Posted: 2021-07-15T09:40:46.225000+00:00
Original source

and you can restrict particular event to be played only if the script is in particular event phase mask
rektbyfaith
07-15-2021, 09:40 AM #14

Archived author: bandysc • Posted: 2021-07-15T09:40:46.225000+00:00
Original source

and you can restrict particular event to be played only if the script is in particular event phase mask

rektbyfaith
Administrator
0
07-15-2021, 09:40 AM
#15
Archived author: bandysc • Posted: 2021-07-15T09:40:57.884000+00:00
Original source

completely unrelated to object phase mask
rektbyfaith
07-15-2021, 09:40 AM #15

Archived author: bandysc • Posted: 2021-07-15T09:40:57.884000+00:00
Original source

completely unrelated to object phase mask

rektbyfaith
Administrator
0
07-15-2021, 09:42 AM
#16
Archived author: bandysc • Posted: 2021-07-15T09:42:17.024000+00:00
Original source

yes, currently SAI offers only up to 12 event phases (but it could support all 32 event phases, simply someone thought 12 will be enough).

But when it comes to object phase mask, you can use all phases no matter if npc has sai or not
rektbyfaith
07-15-2021, 09:42 AM #16

Archived author: bandysc • Posted: 2021-07-15T09:42:17.024000+00:00
Original source

yes, currently SAI offers only up to 12 event phases (but it could support all 32 event phases, simply someone thought 12 will be enough).

But when it comes to object phase mask, you can use all phases no matter if npc has sai or not

rektbyfaith
Administrator
0
07-15-2021, 09:42 AM
#17
Archived author: Honey • Posted: 2021-07-15T09:42:43.103000+00:00
Original source

Makes even more sense now. Thanks for clarifying!
rektbyfaith
07-15-2021, 09:42 AM #17

Archived author: Honey • Posted: 2021-07-15T09:42:43.103000+00:00
Original source

Makes even more sense now. Thanks for clarifying!

rektbyfaith
Administrator
0
07-15-2021, 09:43 AM
#18
Archived author: Kitzunu • Posted: 2021-07-15T09:43:12.345000+00:00
Original source

fuck sai and fuck the wiki
> Event will only be able to occur if creature/GO is in this phase.

This is why I rarely script lmao
rektbyfaith
07-15-2021, 09:43 AM #18

Archived author: Kitzunu • Posted: 2021-07-15T09:43:12.345000+00:00
Original source

fuck sai and fuck the wiki
> Event will only be able to occur if creature/GO is in this phase.

This is why I rarely script lmao

rektbyfaith
Administrator
0
07-15-2021, 09:44 AM
#19
Archived author: bandysc • Posted: 2021-07-15T09:44:50.482000+00:00
Original source

nope, 4294967296 needs 33 bits, it is outside of range of int32. Highest "phase" is phase 31, which means phasemask `2147483648`. You can use phasemask `4294967295` (your number minus 1), but it effectively means "in all phases".
rektbyfaith
07-15-2021, 09:44 AM #19

Archived author: bandysc • Posted: 2021-07-15T09:44:50.482000+00:00
Original source

nope, 4294967296 needs 33 bits, it is outside of range of int32. Highest "phase" is phase 31, which means phasemask `2147483648`. You can use phasemask `4294967295` (your number minus 1), but it effectively means "in all phases".

rektbyfaith
Administrator
0
07-15-2021, 09:47 AM
#20
Archived author: bandysc • Posted: 2021-07-15T09:47:29.551000+00:00
Original source

yeah, this sentence is technically correct, but can be confusing
rektbyfaith
07-15-2021, 09:47 AM #20

Archived author: bandysc • Posted: 2021-07-15T09:47:29.551000+00:00
Original source

yeah, this sentence is technically correct, but can be confusing

Pages (3): Previous 1 2 3 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)