View Single Post
Old 01-03-17, 08:07 AM   #7
FPSchazly
Good Hunting!
 
FPSchazly's Avatar
 
Join Date: Apr 2014
Location: Maryland
Posts: 771
Downloads: 15
Uploads: 1


Default

Quote:
Originally Posted by p7p8 View Post
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%.
__________________
Your friendly neighborhood modern submarine YouTuber.

My videos:
**Exclusive Look at Modern Naval Warfare!**
Dangerous Waters Liu Doctrine (LwAmi
Learn to play Dangerous Waters
FPSchazly is offline   Reply With Quote