[DiscordArchive] alright brilliant friends, i'm a lot of the way there but Scarlet Monastery is specifically giving m
[DiscordArchive] alright brilliant friends, i'm a lot of the way there but Scarlet Monastery is specifically giving m
Archived author: KJack • Posted: 2023-05-27T05:51:06.751000+00:00
Original source
alright brilliant friends, i'm a lot of the way there but Scarlet Monastery is specifically giving me fits. I am collecting all the creatures of a dungeon when they are added to the world via `OnCreatureAddWorld`. This works great , and I can figure out an average creature level to scale to, perfect.
SM is special. Although it only runs `OnCreatureAddWorld` for the creatures in the current wing you're in, the map ID and instance ID are the same between all four wings. That means if you enter graveyard first, you get the right average creature level for graveyard. But if you enter cathedral next, you get the average of all the creatures in graveyard plus the ones in cathedral.
You can fix this by resetting the instance before you enter, but that's not a great solution, I don't think. Is there any way to programatically detect which wing of SM the player entered? Or is there a better way to solve this?
Archived author: KJack • Posted: 2023-05-27T05:52:00.471000+00:00
Original source
let me know if i should move this to <#353919176714354698> , now that i think about it. it's asking how core works, but working on `mod-autobalance`.
Archived author: Honey • Posted: 2023-05-27T06:20:44.793000+00:00
Original source
You can fetch the player's area Id on top of the map.
Archived author: Honey • Posted: 2023-05-27T06:22:10.704000+00:00
Original source
Zone as well.
Archived author: KJack • Posted: 2023-05-27T06:23:56.148000+00:00
Original source
ooo, i don't know how those work. let me see what i can figure out!
![[Image: image.png?ex=690c3f63&is=690aede3&hm=24e...636ecdce1&]](https://cdn.discordapp.com/attachments/284323424032129024/1111903024948985856/image.png?ex=690c3f63&is=690aede3&hm=24e1db25408fd7657ca5df5b665d0ae8c7bdc8570c4ccff1ec80c67636ecdce1&)
Archived author: KJack • Posted: 2023-05-27T06:25:39.329000+00:00
Original source
no dice, same values in two different wings.
![[Image: image.png?ex=690c3f63&is=690aede3&hm=24e...636ecdce1&]](https://cdn.discordapp.com/attachments/284323424032129024/1111903024948985856/image.png?ex=690c3f63&is=690aede3&hm=24e1db25408fd7657ca5df5b665d0ae8c7bdc8570c4ccff1ec80c67636ecdce1&)
Archived author: Rymercyble • Posted: 2023-05-27T06:26:42.875000+00:00
Original source
i mean u could use coords
Archived author: KJack • Posted: 2023-05-27T06:27:15.268000+00:00
Original source
true, or grid/cell IDs. that's going to be super hackish to make work and to keep the creature lists separate. not saying it can't be done though.
Archived author: KJack • Posted: 2023-05-27T06:27:47.601000+00:00
Original source
I can just drop a message to the player to reset the instance when changing wings for best scaling.
Archived author: Honey • Posted: 2023-05-27T06:28:58.816000+00:00
Original source
I'd go with a bunch of checks for x and z variables. The entry spots are declared in the db iirc.