Post
by Cypress » Sat Aug 03, 2024 4:01 pm
Awesome find Nagahaku! This is what I found based on your information:
•Seems unrelated to baseid and monstats ID, so not given to the bonewall monster through monstats.txt (unfortunate since I was hoping to transfer partydead through a baseid, which could result in some funny monster designs)
•Bone Wall and Bone Prison srvdofuncs transfer partydead to created segments
•These skills have two types of segments: main segments and side segments
•If a main segment dies, the creator will also die if the creator is a monster
•If a side segment dies, all other segments die, including the main segment, but if the main segment dies this way, it does not kill the creator
•So a hierarchy forms: creator > main segment > side segment
•For Bone Wall, the main segment is the first middle segment created, if only one segment is made it will always be a main segment; all other segments are side segments
•For Bone Prison, segments are arranged in a clock, with 1'oclock being the main segment, and all others being side segments
•If time runs out for segments, all segments die simultaneously, and thus the creator will also always die
•Main segments will kill the creator even if the creator is already dead, meaning the creator can die multiple times, dropping items as many times as main segments die (this is easily seen if you make the creator cast a bunch of bone walls, as the duration starts to elapse, it will start re-dying a bunch and dropping tons of loot)
•The creator dying to a main segment's death will not count as your kill, so magic find, gold find and kill effects do not apply
Also, if you want to prevent a monster from dying while casting Bone Wall or Bone Prison, you'd have to make them summon an intangible, invisible monster that casts Bone Wall or Bone Prison once, as otherwise your monster will die whenever the main segment dies before or at the same time as the side segments.