Hunchman801 wrote: Sat Oct 14, 2023 3:13 pm
Thanks Droolie, that's very useful! One thing, however: a while ago, Robin/bunnieblaster actually helped me with that one pirate on the boat, and he even made a video of it:
https://youtu.be/mv01CWBrMFw
As you can see, this clearly shows that it has 5 HP, not 6. That's where the number on the wiki comes from. Could there be another variable overriding the default value of 6 here?
Well shoot, and I had already gone and changed the wiki!

Better fix it. Is it all right if I include this video as a reference to avoid any future confusion?
Also, the video does show Rayman falling through the boat! My world makes sense again!
Droolie wrote: Sat Oct 14, 2023 9:48 pm
What happened is that for this specific pirate, the developers skipped over the init script. If this is by mistake or on purpose I don't know, but it's a dirty hack... or rather, a feature in CPA that shouldn't exist: for each individual object you can choose to use a different initial script. For some reason, this specific pirate has it set to "ARG_tirs" instead of "ARG_init", which means it skips over the 6HP in ARG_init as well. The current & max HP values of the object before that are 5, so this creates a pirate with 5 HP (that might also be bugged in some way because it skipped all other bits of initialization as well).
Oh man… That feature sounds like a proper footgun all right!

If I had to guess, I'd say they did it to skip over "ARG_AttendRM", which would try to change the music when the Pirate first sees Rayman, and the music in that level was being managed separately. The only side effect seems to be that CustomBit 15 doesn't get set to zero during initialization… And I'm not sure what that does / doesn't do…
Also, this guy is named "MIC_Sbire_Barque" – does that mean Michel Ancel himself put him there and set him up this way?
EDIT: No wait, it's nothing to do with music, that can be disabled by setting UByte_1 to zero. In fact, the reason this was done was because the default behaviour is for this type of pirate to drill up out of the ground when Rayman comes near him. Obviously that's not what they wanted here, hence the override!
EDIT2: I see you fixed it on the wiki and put the video and post in the edit note… How about an inline citation too, or is that too much?