![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Girt by Sea
|
![]()
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 |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
#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 |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
#5 |
Girt by Sea
|
![]()
Thanks Chazly, here is a screen cap - you can see the options in the top right of the picture
![]() ![]() |
![]() |
![]() |
![]() |
#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 |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
#8 |
Girt by Sea
|
![]()
Thanks for your help, guys - no wonder == and != aren't taught in primary school math/maths...
![]() |
![]() |
![]() |
![]() |
#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.
|
![]() |
![]() |
![]() |
|
|