[PRPL Assistance Requested] SetLandBulk firing when it shouldn't

Started by Dark Ambition, November 02, 2021, 12:03:30 AM

Previous topic - Next topic

Dark Ambition

<-ShipFound if
<-Martyr getshipisdestroyed neq0 if
# "ship dead" trace
        114 180 0 10 1 setlandbulk
60 delay
"PilotKilled" showconversation
        90 delay
winmission
self 0 destroyunit
endif
endif


There is a stationary ship that can be destroyed to get one of the endings in a mission. I have painted land under the ship to prevent players from warp bombing it for an instant victory. I want to make sure that land is deleted with the ship, so that the out of place land is not left behind. It's a purely visual thing, visible for only a few seconds at the very end of the map, but I still would like it to work this way.

This part of the script checks when the ship is destroyed. The other code delaying and displaying the conversation works correctly, but the setlandbulk code does not wait. It is instantly firing and removing the land without checking for the ship's status. I know next to nothing about PRPL, I pretty much just shoved setlandbulk into a pre-existing script, so I have no clue what could be causing that or how to fix it/if it can be fixed.

Can someone help fix this, or find an alternative?

EDIT: NEVERMIND! I FIGURED OUT A FAR SUPERIOR SOLUTION TO WARP BOMBING: GUILT TRIPPING VIA LIMERICK!