SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
Thread Tools | Search this Thread | Display Modes |
01-02-17, 08:34 PM | #1 |
Girt by Sea
|
Mission Editor - what do == and != mean?
Hi guys,
This is probably a simple maths/math question - for the triggers for say, damaging a ship by percentage, what do == and ! mean? I have < and > sorted (the crocodile eats the bigger number - thanks primary school!) Cheers Stew |
01-02-17, 08:50 PM | #2 | |
Good Hunting!
|
Quote:
5 == 5 returns true, 5 == 4 returns false a ! b means "is a not b?" So, any two different values will return true, identical values will return false. Hope that helps. Save
__________________
Your friendly neighborhood modern submarine YouTuber. My videos: **Exclusive Look at Modern Naval Warfare!** Dangerous Waters Liu Doctrine (LwAmi Learn to play Dangerous Waters |
|
01-02-17, 09:22 PM | #3 |
Girt by Sea
|
Thanks Chazly for the helpful and speedy reply.
So, just to clarify, in my trigger - I can set it to damage the 'enemy ship' to an equivalent of 50% (==). Do you know what that means in the context of the what the trigger will do? Also, what does != mean in the context of damaging a ship in a trigger? Sorry, that was a typo on the original post Stew |
01-02-17, 09:46 PM | #4 | |
Good Hunting!
|
Quote:
Save
__________________
Your friendly neighborhood modern submarine YouTuber. My videos: **Exclusive Look at Modern Naval Warfare!** Dangerous Waters Liu Doctrine (LwAmi Learn to play Dangerous Waters |
|
01-02-17, 11:50 PM | #5 |
Girt by Sea
|
Thanks Chazly, here is a screen cap - you can see the options in the top right of the picture
|
01-03-17, 07:25 AM | #6 |
Seasoned Skipper
Join Date: Nov 2006
Posts: 742
Downloads: 136
Uploads: 6
|
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 72 > 50 but not equal exactly 50 So better version of this trigger is: Code:
If "platform damage" CVG 16 > 50% then |
01-03-17, 08:07 AM | #7 | |
Good Hunting!
|
Quote:
__________________
Your friendly neighborhood modern submarine YouTuber. My videos: **Exclusive Look at Modern Naval Warfare!** Dangerous Waters Liu Doctrine (LwAmi Learn to play Dangerous Waters |
|
01-03-17, 08:16 AM | #8 |
Girt by Sea
|
Thanks for your help, guys - no wonder == and != aren't taught in primary school math/maths...
|
04-15-17, 04:36 PM | #9 |
Captain
Join Date: Oct 2004
Location: AZ & DC
Posts: 487
Downloads: 48
Uploads: 0
|
I learned something, thank-you. I am having trouble with the Editor, but I will ask in a separate thread.
|
|
|