Author Topic: Need assistance with Jump Markers  (Read 4546 times)

KuruptU4Fun

  • Guest
Need assistance with Jump Markers
« on: November 11, 2016, 12:55:12 PM »
I've got a conditional I'm finding problematic below:

Set small int (condition) [SF Flight Check] value as random from 1 to 2
Begin Integer Compare : [Straight response] Equals 1
    Marker: Straight response
    Play random sound (4 items - suppress repeats)
End Condition - Exit when condition met
Set small int (condition) [Confirm Response] value to 2
Play random sound (13 items - suppress repeats)
Jump to Marker: Straight response

What I'm trying to do is get the first integer to give me a straight answer to a statement.

The second integer is to confirm my command, then move into the straight response.

So if I say "Run pre-flight Checks" the response should either be similar to "Running pre-flight checks now" under integer 1 or "Yes Captain" under integer 2 then jump up to "Running pre-flight checks now" then ending.

However what I seem to be getting is a loop with multiple sound files running at once. Any suggestions on how to fix it please?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Need assistance with Jump Markers
« Reply #1 on: November 11, 2016, 01:49:56 PM »
what I seem to be getting is a loop with multiple sound files running at once. Any suggestions on how to fix it please?
Because you're jumping into a condition, the comparison is never done. Because of this, the command will not exit when the condition is met, and the jump will be executed in an infinite loop.


Is that the actual command you're listing here? You're using three different variables of two different types, I'm not sure what it's supposed to be doing.

If I understand correctly, and you just want an optional sound file to be played randomly, you can do it this way:
Code: [Select]
Set small int (condition) [Play optional response] value as random from 0 to 1
Begin Small Integer Compare : [Play optional response] Equals 1
    Play random sound (4 items - suppress repeats)
End Condition
Play random sound (13 items - suppress repeats)

KuruptU4Fun

  • Guest
Re: Need assistance with Jump Markers
« Reply #2 on: November 11, 2016, 02:12:46 PM »
Yes that was the actual command I had built, thanks for streamlining it down Pfeil, however it seems to only play the random sounds from the group of 13 and none from the group of 4 sounds.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Need assistance with Jump Markers
« Reply #3 on: November 11, 2016, 02:31:27 PM »
There should be a 50/50 chance for the optional sound to play. Can you list the actions you have set up on your end?

KuruptU4Fun

  • Guest
Re: Need assistance with Jump Markers
« Reply #4 on: November 11, 2016, 03:03:09 PM »
Actually i just recreated what you used as an example.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Need assistance with Jump Markers
« Reply #5 on: November 11, 2016, 03:09:07 PM »
The example works fine on my end. I've exported it so you can import it directly. I don't have access to the sounds you have, so it uses "Write to log" actions as a placeholder.

KuruptU4Fun

  • Guest
Re: Need assistance with Jump Markers
« Reply #6 on: November 11, 2016, 03:51:18 PM »
Had to move some sound files but I got it to work, Thank you.