[DiscordArchive] So how does phasing work anyway? I have two separate quests that end, individually, with their quest
[DiscordArchive] So how does phasing work anyway? I have two separate quests that end, individually, with their quest
Archived author: whatwere • Posted: 2022-07-18T19:41:12.280000+00:00
Original source
So how does phasing work anyway? I have two separate quests that end, individually, with their quest givers, who are right next to each other, disappearing. Is there an efficient way to avoid using auras?
Archived author: <o> • Posted: 2022-07-18T19:49:00.434000+00:00
Original source
`WorldObject::SetPhaseMask` is the function you work with. Phasing is just a 32-bit integer stored on the world object. If two objects have a single bit overlapping, they are in the same phase, otherwise they are not
Archived author: whatwere • Posted: 2022-07-18T19:49:33.053000+00:00
Original source
Isn't 32 bits a very small amount of phases?
Archived author: <o> • Posted: 2022-07-18T19:49:47.703000+00:00
Original source
yes, that's why it's usually done with auras
Archived author: <o> • Posted: 2022-07-18T19:50:00.925000+00:00
Original source
you need to be aware of the other phase bits used in the same area that you are creating quests in
Archived author: whatwere • Posted: 2022-07-18T19:51:29.045000+00:00
Original source
Do you think replacing the system with an std::map would be worthwhile?
Archived author: <o> • Posted: 2022-07-18T19:51:32.684000+00:00
Original source
no
Archived author: <o> • Posted: 2022-07-18T19:51:39.831000+00:00
Original source
if you need a ridiculous amount of phases in the same place, you need to extend the phase field with something like a discrete integer. We have this in tswow if you need a reference