View Single Post
Old 01-03-17, 07:25 AM   #6
p7p8
Seasoned Skipper
 
Join Date: Nov 2006
Posts: 742
Downloads: 136
Uploads: 6
Default

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
p7p8 is offline   Reply With Quote