Difference between revisions of "Percent-ships-destroyed"
From FreeSpace Wiki
(notes) |
m (→Notes: formatting fix (copy/paste somehow went wrong)) |
||
Line 9: | Line 9: | ||
==Notes== | ==Notes== | ||
− | *Pay special attention to this bit: "For wings, all ships of all waves are used for calculation for the total possible | + | *Pay special attention to this bit: "For wings, all ships of all waves are used for calculation for the total possible ships to be destroyed." |
− | ships to be destroyed." | ||
*If you want to emulate a nonexistent percent-ships-destroyed-delay, you need two events. The first one which has the percent-ships-destroyed SEXP in it, the second with an [[is-event-true]], with the first event specified as the event that must be [[true]]. | *If you want to emulate a nonexistent percent-ships-destroyed-delay, you need two events. The first one which has the percent-ships-destroyed SEXP in it, the second with an [[is-event-true]], with the first event specified as the event that must be [[true]]. | ||
[[Category:Retail SEXPs]] | [[Category:Retail SEXPs]] |
Latest revision as of 21:16, 15 April 2010
percent-ships-destroyed Boolean function which returns true if the percentage of ships in the listed ships and wings which have been destroyed is greater or equal to the given percentage. For wings, all ships of all waves are used for calculation for the total possible ships to be destroyed. Takes 2 or more arguments: 1: Percentge of destroyed ships at which this function will return true. 2+: List of ships/wing whose destroyed status should be determined.
Notes
- Pay special attention to this bit: "For wings, all ships of all waves are used for calculation for the total possible ships to be destroyed."
- If you want to emulate a nonexistent percent-ships-destroyed-delay, you need two events. The first one which has the percent-ships-destroyed SEXP in it, the second with an is-event-true, with the first event specified as the event that must be true.