Author Topic: How do I have anybody say a message?  (Read 1676 times)

0 Members and 1 Guest are viewing this topic.

Offline Socio

  • 23
How do I have anybody say a message?
For example, I want the player, Alpha 1 to say something. Or maybe a character that isn't even there. How do I do this? I get errors if I try Alpha 1 or a ship that doesn't exist.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: How do I have anybody say a message?
Just put a # in front of the name like this:  #Alpha 1
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: How do I have anybody say a message?
In the message sexp, where it asks for message originator /sender. Not the ship editor before you ask :)
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline Socio

  • 23
Re: How do I have anybody say a message?
Another question: How do I set an event to happen after a message? I want ships to jump in after someone finishes talking (long series of messages).

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: How do I have anybody say a message?
A couple of ways to do it.  The most basic would be just using is-event-true-delay in the arrival cue of the ship. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Socio

  • 23
Re: How do I have anybody say a message?
I have my messages set up right now as "when time elapsed" 3 seconds to start going through the messages. If I set the arrival of the news to that event, they end up jumping in after three seconds. How do I set it after the final message? Am I doing it wrong?

thanks for the speedy help by the way.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: How do I have anybody say a message?
Are you using send-message or send-message-list?  If you are using send-message-list what you already know how long the messages are going to take.  Just put something bigger in the delay for the is-event-true-delay.  Note send-message-list delays are in milliseconds while is-event-true-delay is in seconds.  If you are using multiple events to send the messages then set it to the last event that sends the message.  If you have all the messages in one event using just send-message you are probably doing something you shouldn't be. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Socio

  • 23
Re: How do I have anybody say a message?
Sounds like I'm doing it wrong. I guess I'll separate the last message into another event and see if that works out.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: How do I have anybody say a message?
If there's no chance of the ships in the conversation being destroyed send-message-list would work just fine. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Re: How do I have anybody say a message?
Your problem is timing.
The send-message-list turns true the second the messages start sending. What you need to do is time (in your head) how long it takes for the whole conversation to finish (you should know..just add up the (mili)seconds in the send-message-list event + how long it takes to speak out the last message )and put that in the delay for the wing/ship.

Example

EVENT Chat
When
+has-arrived-delay
--GTC Orff
--0
+send-message-list
--GTC Orff
--High
--Chat1   <---- "GTC Orff here. We're now on station" (takes about 4 seconds to say slowly)
--0
--Alpha2
--High
--Chat2   <--------"Finally. What took you so long? We waited for an eternity."
--4000        <----will be sent 4 seconds after the Chat 1 message
--GTC Orff
--High
--Chat3   <------"Engine trouble Alpha2. Couldn't be helped."
--7000    <------ will be send 7 seconds after Chat 2 message


So, if you want a enemy wing to jump in after the conversation is done, you'd set it's arrival cue as

When is-event-true
-- Chat
--15   (4000+700+4000 for the last message = 15 seconds)
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!