A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »conversation problem

Author Topic: conversation problem (6 messages, Page 1 of 1)
Moderators: Dennis

Glitcherguy
Joined: Jan 28, 2008

I should really put a clever quote here...


Posted: Apr 7, 2010 05:34 PM    Msg. 1 of 6       
I'm working on a single player map and want to use conversations between marines, but how to I make several conversations follow eachother in the same script?

I want to make jhonson use two of the dialogs used in a10, but I can't figure out how I make him say both after eachother.

help?


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Apr 7, 2010 06:38 PM    Msg. 2 of 6       
(sleep (sound_impulse_time [SOUND TAG]))


Glitcherguy
Joined: Jan 28, 2008

I should really put a clever quote here...


Posted: Apr 8, 2010 10:08 AM    Msg. 3 of 6       
It still only plays the first sound.

here is the script I used

(script startup insertion
(begin
(ai_place insert_marines)
(wake get_prepared)
(ai_allegiance player human)
(ai_conversation jhonson)
(sleep (sound_impulse_time "sound\dialog\x10\sgt05"))
(ai_conversation jhonson_right)
)
)


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Apr 8, 2010 08:46 PM    Msg. 4 of 6       
Quote: --- Original message by: Glitcherguy
(script startup insertion
(begin
(ai_place insert_marines)
(wake get_prepared)
(ai_allegiance player human)
(ai_conversation jhonson)
(sleep (sound_impulse_time "sound\dialog\x10\sgt05"))
(ai_conversation jhonson_right)
)
)


He's not playing sound tags, he's using the AI conversations from the scenario.

You can check the status of a conversation:

(ai_conversation_status [conversation])

returns the status of a conversation (0=none, 1=trying to begin, 2=waiting for guys to get in position, 3=playing, 4=waiting to advance, 5=could not begin, 6=finished successfully, 7=aborted midway)

So if you want to wait until 'jhonson' finishes successfully (6), you can use (sleep_until) like so:

(sleep_until (= (ai_conversation_status jhonson) 6) 1)

But I would recommend checking for 7 and 5 as well, because if either of those end up happening then the script will hang there permanently since it won't finish successfully, so this is what I would do:


(sleep_until (or
(= (ai_conversation_status jhonson) 6)
(= (ai_conversation_status jhonson) 5)
(= (ai_conversation_status jhonson) 7)
) 1)


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Apr 8, 2010 09:02 PM    Msg. 5 of 6       
He wasn't specific enough >>


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Apr 8, 2010 09:06 PM    Msg. 6 of 6       
Quote: --- Original message by: Gamma927
He wasn't specific enough >>


Oh I know, I wasn't criticizing you for not knowing, just pointing it out now that he made it clear.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 2:10 AM 141 ms.
A Halo Maps Website