Quote:
Originally Posted by p7p8
Using < or > is much safer in DW editor than == because it gives you wider range for success.
Example:
If you want to send message (S.O.S. - my ship is sinking!) when CVG have half or less health with code:
Code:
If "platform damage" CVG 16 == 50% then
and your opponent hit CVG 16 two times for 36% - trigger sometimes can't be launch because 36+36=72
72 > 50 but not equal exactly 50
So better version of this trigger is:
Code:
If "platform damage" CVG 16 > 50% then
< or > are also better to time event activation
|
I concur.
I think < and > are sufficient for these purposes, == is too specific and is unlikely to be true. You could have, for example, damage != 100 % to say that "if it's not 100% damaged, do this" but you could accomplish that just as easily with damage < 100%.