Home   Help Search Login Register  

Author Topic: Custom unit tags in radio chatter  (Read 1900 times)

0 Members and 1 Guest are viewing this topic.

bluehawk

  • Guest
Custom unit tags in radio chatter
« on: 15 Jul 2006, 03:37:46 »
Hi, this is my first post, as I normally just lurk on the forum when I need information, but I'm stumped here and am asking for help.

I was wondering if there was a way to get custom name tags in the radio chatter (as opposed to "Alpha Hotel 1" and stuff like that).

I know how to get 'Papa Bear' and 'Airbase Firefly' using for example:

Code: [Select]
[west,"HQ"] sideRadio "goodwork"
[west,"AirBase"] sideRadio "returntobase"

but anything unique like:

Code: [Select]
[west,"Fish"] sidRadio "inposition"
reports a 'generic error'.

My units in the particular mission I'm working on are coded Fish and Chips  ;D and I'd like said codenames to appear as their names, rather than the default NATO alphabet mumbojumbo. Even if it's only aesthetic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re: Custom unit tags in radio chatter
« Reply #1 on: 16 Jul 2006, 12:08:44 »
Do your names normally, ie, Alpha, Bravo etc. Except add the attatched file to your mission folder. Edit to taste.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

bluehawk

  • Guest
Re: Custom unit tags in radio chatter
« Reply #2 on: 31 Jul 2006, 04:23:11 »
Wow, lol that was simple.

Thanks a lot.

Hellbender

  • Guest
Re: Custom unit tags in radio chatter
« Reply #3 on: 15 Sep 2006, 19:55:50 »
Yeah it sounds simple, and maybe it is. But I can't get it to work. Could you elaborate a bit for me The-Architect?

I assume I must use the "this setgroupId" command to name my group. I can get it to rename my groups to Alpha, Bravo etc. But not custom names. I've put the stringtable you added in my missions folder and I've tried to change the names but without effect.

 :dunno:

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Custom unit tags in radio chatter
« Reply #4 on: 21 Sep 2006, 18:11:48 »
Rename the group to Alpha and it will automatically use the corresponding STR from the stringtable when you use *Chat or *Radio commands.
urp!

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re: Custom unit tags in radio chatter
« Reply #5 on: 23 Sep 2006, 06:32:34 »
To my understanding this is how it works:

If you put this in your stringtable.csv:
Code: [Select]
STR_CFG_FIREFLYBASE,"DRAGONS'S LAIR"
STR_CFG_PAPABEAR,"HELL'S FURY"
STR_CFG_GRPNAMES_ALPHA,"EAGLE EYES"
STR_CFG_GRPNAMES_BRAVO,"NEPTUNE 1"
STR_CFG_GRPNAMES_CHARLIE,"EAGLE WINGS"
STR_CFG_GRPNAMES_DELTA,"WIDOW MAKER"
STR_CFG_GRPNAMES_ECHO,"1 SHOT 1 KILL"
STR_CFG_GRPNAMES_FOXTROT,"ARCH ANGEL"

If you put this code in script/waypoint/trigger:
Code: [Select]
[west,"HQ"] sidechat "goodwork"
You will see this in the sidechat text on the screen:

HELL'S FURY: goodwork

If you put this code in script/waypoint/trigger:
Code: [Select]
[west,"AirBase"] sidechat "Having fun yet?"
You will see this in the sidechat text on the screen:

DRAGON'S LAIR: Having fun yet?

If the player is the leader of the first group placed on the map and the player says:
Code: [Select]
player sidechat "I'm having a great time."
You will see in the sidechat text on the screen:

EAGLE EYES Black 1 (Player's name): I'm having a great time.

If you do a setIdentity in the decription.ext then the name in the parentethese will be the name given in setIdentity. This will also apply to non-player units (if they have their identities pre-defined).

The ALPHA, BRAVO, CHARLIE etc. in the stringtable will be the radio sign given to the frist, second, third, etc. groups the editor identifies. Naming the groups does not seem to effect this.  ALPHA is the first group, BRAVO is the second and so on. The "Black 1", "Black 2" etc. do not seem to be controlable, these are the frist, second etc. members of the group, so after the custom call sign you are still stuck with seeing these (as in EAGLE EYES Black 1) above. If there is a way to get rid of the "Black 1" or "Black 2" that would be great. Does anyone know if it is possible to do that?

Hellbender

  • Guest
Re: Custom unit tags in radio chatter
« Reply #6 on: 25 Sep 2006, 09:02:19 »
Actually, I can answer that! 

When you set the group ID you just need to include one more line, so it looks like this:

this setGroupID ["BRAVO","GroupColor0"]

The group color is the black, red, blue, whatever! When you set this groups color to 0 the group will automatically be named Bravo and nothing else.

Offline SniperAndy

  • Members
  • *
    • VBS Community
Re: Custom unit tags in radio chatter
« Reply #7 on: 26 Sep 2006, 18:48:44 »
Question...
if I use say "unit1 globalchat "blabla this and that" in a trigger it isn't send (seen) by all players since it hasn't got a publicvariable I believe. Now, if I call this using a stringtable will it be global so everybody will see it in MP?

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Custom unit tags in radio chatter
« Reply #8 on: 26 Sep 2006, 19:36:44 »
No, it will not make any difference.  However, why is the trigger only firing on one machine? Best answer is always the trusty double trigger. First trigger PV's your boolean variable. Second trigger actiavtes when boolean is true and executes your commands such as globalChat.
urp!