I want soldiers to talk to each other plz help....

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
lt barnes

I want soldiers to talk to each other plz help....

Post by lt barnes »

Hi I really need help....

I want to make 2-3 soldiers talk but it isn't workin at all for me.

I have done the trigger all right and i can get the first man to speak..well he did for a bit, now he doesn't.

HERE IS MY SCRIPT

speech:
$friendly1 say dfr_m3l3_308h3
$friendly1 waittill saydone
wait 1

$friendly1 say dfr_m3l3_309h7
$friendly1 waittill saydone
wait 1

$friendly2 say dfr_m3l3_310j2
$friendly2 waittill saydone
wait 1

$friendly2 say dfr_m3l3_320j3
$friendly2 waittill saydone
wait 1

$friendly2 say dfr_m3l3_321j1
$friendly2 waittill saydone
end

Can someone please help i would love to have soldiers talkin to each other.

(MY LOGIN AINT WORKIN, AND I CAN'T EMAIL IT TO MY REAL EMAIL ADDRESS!!!)

(this isn't my email address i made it up on the spot, jus so i could talk to u guys!)
Sputnik
Colour Sergeant
Posts: 85
Joined: Thu Jul 04, 2002 12:36 am
Location: V.A.

Post by Sputnik »

At the beginning of the script, do you have "friendly1 = level.friendly1", because if you don't I THINK the script should be "level.friendly1 say.. etc."

I don't know much about speech yet, so wait till mohaa_rox, or jv_map replies.
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Actually I haven't tried it. But he's right. Give your $friendly1 = level.friendly1. Then to make things easier, level.friendly1 = level.personname.

Then
level.personname say .....
level.personname waittill saydone.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

I used didn't use the level.name part in my script, which works okay. I just used the AI's targetname, being friendly.

//BARNES WALKS OVER
barnes:
$friendly walkto $path1
$friendly waittill movedone
wait 0.3
$friendly turnto $player
$friendly lookat $player
$friendly say dfr_M1L1_add05
$friendly waittill saydone
$friendly lookat NULL
end
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

But he has friendly1, friendly2 etc. Just do the same too.
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Ok I spotted some confusion here. :(

level.friendly1, 2 and so on are not automatically set by the game. They don't exist at all unless you're using global/friendly.scr. This script file sets the level.friendly values for all actors with targetname 'friendly' and a #fnum being the number of the friendly.

Lt. Barnes' code should work if the targetnames of the friendlies involved are 'friendly1' and 'friendly2'. Also, the necessary sound aliases (and preferably the dialog animations) need to be defined somewhere (or use test_).

Hope this gonna help somewhat somehow :roll:
Image
lt barnes

Post by lt barnes »

i tryed all this and still it don't work

can someone make a room with like 2-3 ppl in a convosation plz.

I am makin a level and it has 6 objectives gonna be big.
and i want to go the whole way by addin speech.

Also i have an objective with a nebelwafer which u have to blow up. that works all fine and dandy, but how can i get it to fire at u as well?
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Check the mapping page with Topic: NEBEEWERFER!!!SPREAD OUT!!!!!!!!!
Live to map, not map to live.
-mohaa_rox, .map
moderator
Post Reply