Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: THE Phreak on April 25, 2007, 04:03:54 am

Title: I'm having a problem with my messages. I can't get htem to come out in order.
Post by: THE Phreak on April 25, 2007, 04:03:54 am
i get all of my messages to show up, but they show up in a wierd order, almost randomly. Another thing that bothers me is that a ship that is leaving the docks repeats one of the lines from the space station.

Is there a way I can get them in order? I'll post a pic in a minute.
Title: Re: I'm having a problem with my messages. I can't get htem to come out in order.
Post by: Admiral Edivad on April 25, 2007, 04:30:10 am
if you use the sexp "send message list", be sure you put the right delay in milliseconds between the messages. if the delay is too short, the messages may come in a different order form the one you have chosen.
if you create single chained "send message" sexps, be sure you have enough chain-delay time for the message to be read.
Title: Re: I'm having a problem with my messages. I can't get htem to come out in orde
Post by: THE Phreak on April 25, 2007, 04:55:05 am
Ha, it worked  :nervous:

I had single send-message sexps, I chained them up and added the delay and it worked. Wierd...

<3 Thanks man
Title: Re: I'm having a problem with my messages. I can't get htem to come out in order.
Post by: karajorma on April 25, 2007, 05:01:58 am
The problem with send-message-list is people make two mistakes with it.

1) The Delay is in milliseconds not seconds so people type in numbers that are a thousand times too small.
2) The Delay is the time since the last message on the list was supposed to play not the overall delay (The SEXP works that one out itself internally).
Title: Re: I'm having a problem with my messages. I can't get htem to come out in order.
Post by: diceman111 on April 25, 2007, 05:24:37 am
The problem with send-message-list is people make two mistakes with it.
2) The Delay is the time since the last message on the list was supposed to play not the overall delay (The SEXP works that one out itself internally).

Ok so in the send-message-list SEXP its

  send-message-list:
      -- GTD Battleaxe
      -- High
      -- BA - Giving orders
      -- 0                                                   <- Here I am telling it not to wait to send the msg after the event has become true
      -- Pirate Base
      -- High
      -- PB - Distress Call msg 1
      -- 5000                                             <- Here I am telling it to wait 5sec after the previuos msg has been sent
      -- GTD Battleaxe
      -- High
      -- BA - Distress Call msg 2
      -- 10000                                            <- But here I am telling it to wait 10sec after the previous message was sent and not from when the message "BA -                                                                                Giving orders" was sent

Have i understood this correctly??????
Title: Re: I'm having a problem with my messages. I can't get htem to come out in order.
Post by: karajorma on April 25, 2007, 11:21:08 am
Yep. Your messages will play at 0, 5 and 15 seconds after the event came true (as long as nothing else is queued up waiting to play).
Title: Re: I'm having a problem with my messages. I can't get htem to come out in order.
Post by: diceman111 on April 25, 2007, 11:36:45 am
Ok thx
Title: Re: I'm having a problem with my messages. I can't get htem to come out in order.
Post by: Mobius on April 25, 2007, 02:04:32 pm
Now join the Karajorma Fan Club!!!