OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bluehawk 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:
[west,"HQ"] sideRadio "goodwork"
[west,"AirBase"] sideRadio "returntobase"
but anything unique like:
[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.
-
Do your names normally, ie, Alpha, Bravo etc. Except add the attatched file to your mission folder. Edit to taste.
-
Wow, lol that was simple.
Thanks a lot.
-
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:
-
Rename the group to Alpha and it will automatically use the corresponding STR from the stringtable when you use *Chat or *Radio commands.
-
To my understanding this is how it works:
If you put this in your stringtable.csv:
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:
[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:
[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:
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?
-
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.
-
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?
-
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.