Author Topic: Is-Cargo-Known question  (Read 654 times)

0 Members and 1 Guest are viewing this topic.

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
  • A Typhon-class destroyer.
Is-Cargo-Known question
Hey all!

I want to set up an event (to be specific, a show subtitle text event) to occur if the player has failed to scan a certain ship. How can I do this? Setting up an is-event-false condition that refers to an is-cargo-known event does not work.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Is-Cargo-Known question
Failed to scan?
Try has-departed-delay (or destroyed-departed-delay/is-destroyed-delay depending on how the ship can no longer be scanned) *and* not is-cargo-known ?
(´・ω・`)
=============================================================

 
Re: Is-Cargo-Known question
If I recall correctly, your event, PVD_Hope, will turn false just as the mission ends. Until that happens, the event will simply not be true (yet). Droid's right there. That should work.
Mito [PL] - Today at 8:52 PM
I was supposed to make a short presentation about basics of optical fibers and here I am, listening to Eurobeat while reading about quantum cryptography.

 

Offline 0rph3u5

  • 211
  • Reality is the finest flesh...
    • Steam
    • Twitter
Re: Is-Cargo-Known question
I want to set up an event (to be specific, a show subtitle text event) to occur if the player has failed to scan a certain ship. How can I do this? Setting up an is-event-false condition that refers to an is-cargo-known event does not work.

While Droid803's solution should work, I want to point out your mistake here:
the condition you need is not "is-event-false-delay" but "is-event-incomplete" ... "is-event-false-delay" only works if the contion of the event returns as "false", e.g. the ship specified in a "is-destroyed-delay" did depart.

"is-event-incomplete" however triggers if the event did not come either true or false yet by the time it is checked, e.g. the event checks if another event with "is-destroyed-delay" condition has returned true or false, since the ship in the condition has neither been destroyed (true) nor departed (false), the return for the "is-event-incomplete"-check is "true" which triggers the first event. Would the ship have been destroyed or departed, turning the second event either true or false, the first event's "is-event-incomplete"-check returns "false", not triggering the first event.
« Last Edit: November 04, 2016, 06:19:06 pm by 0rph3u5 »
"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Anims: 420, Cutscenes: 10, Mainhalls: 7, Logos: 52
    • Steam
    • Twitter
    • Mix-Hai Productions
Re: Is-Cargo-Known question
I honestly prefer going the...

not
--is-cargo-known-delay

because it makes the SEXP more readable. But either way will work.
Cutscene Upgrade Project - Mainhall Remakes - MixaelANITools - Between the Ashes - MjnMixael's Render Boutique - Mix-Hai Productions
Youtube Channel - P3D Model Box - Photobucket Albums - Model Releases - Downloads
Between the Ashes is looking for committed testers, PM me for details.
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
  • A Typhon-class destroyer.
Re: Is-Cargo-Known question
Whoa, thanks a ton guys!

I didn't even know about the existence of is-event-incomplete. Or the existence of "not".

Yup, noob FREDer here. :rolleyes:

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
  • A Typhon-class destroyer.
Re: Is-Cargo-Known question
not is-cargo-known did not work. Nothing happened. Trying is-event-incomplete...

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
  • A Typhon-class destroyer.
Re: Is-Cargo-Known question
is-event-incomplete worked like a charm! Thanks a bunch!

 

Offline 0rph3u5

  • 211
  • Reality is the finest flesh...
    • Steam
    • Twitter
Re: Is-Cargo-Known question
not is-cargo-known did not work.

conditions containig "not" should (have to?) always be combined with another condition, the use of and-in-sequence might be advised, otherwise the engine checks them as soon as possible (like the first frame of the mission) and sticks with the result
"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
  • A Typhon-class destroyer.
Re: Is-Cargo-Known question
not is-cargo-known did not work.

conditions containig "not" should (have to?) always be combined with another condition, the use of and-in-sequence might be advised, otherwise the engine checks them as soon as possible (like the first frame of the mission) and sticks with the result

It was combined with another condition, an is-event-true-delay. That condition referred to a previous show-subtitle-text, with the delay being 10 seconds.

But if the engine checked, then the subtitle should have displayed (it did not) because the cargo was not yet known...  :confused:

I really don't think it matters as I got it to work the other way. Unless it's important that we hash this out.