OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: snafu on 06 Jul 2008, 19:48:53
-
Hi,
I'm currently making a mission with the latest Hellenic Warfare Mod and to give the mission a bit more authenticity and immersion I would like to forcibly change the name of the player and his squad members to Greek names.
How would I do this?
-
Check out the cfgIdentities part of this tutorial (http://www.ofpec.com/ed_depot/beginners/description.php) by Cheetah.
-
Thanks Bedges. Never noticed that part of the site before.
I've put all the necessary stuff into the description.ext however I get this error when I start the mission;
description.ext, line 12:'.player': 's' encountered instead of '='
This my description file;
showCompass = 1;
showGPS = 1;
showWatch = 1;
// === Titlecut ==============================================>
onLoadMission= GREEK STORM
maxScore = 5000;
avgScore = 2500;
minScore = 1000;
class Weapons
{
// Add the weapons to the mission gear
class M4 { count = 3; };
class HWM_HKG3A3 { count = 5; };
class HWM_HKG3A4 { count = 5; };
class HWM_FN_FAL_Para { count = 5;};
};
class Magazines
{
// Add the magazines to the mission gear
class 30Rnd_556x45_Stanag { count = 10; };
class HandGrenade { count = 5; };
class HWM_HKG3Mag { count = 30; };
class HWM_FalMag { count = 30; };
class CfgIdentities
{
class GeorgePapandreou
{
name="George Papandreou";
face="Face10";
glasses="None";
speaker="Dan";
pitch=1.2;
};
class KostasKaramanlis
{
name="Kostas Karamanlis";
face="Face11";
glasses="None";
speaker="Brian";
pitch=1.0;
};
class EleftheriosVenizelos
{
name="Eleftherios Venizelos";
face="Face12";
glasses="None";
speaker="Mathew";
pitch=1.1;
};
class GeorgiosPapadopoulos
{
name="Georgios Papadopoulos";
face="Face13";
glasses="None";
speaker="Robert";
pitch=1.0;
};
class NikolaosZachariadis
{
name="Nikolaos Zachariadis";
face="Face14";
glasses="None";
speaker="Russell";
pitch=1.2;
};
class GeorgeRallis
{
name="George Rallis";
face="Face15";
glasses="None";
speaker="Dusan";
pitch=1.1;
};
class StylianosPattakos
{
name="Stylianos Pattakos";
face="Face16";
glasses="None";
speaker="Ryan";
pitch=1.0;
};
class NicoMastorakis
{
name="Nico Mastorakis";
face="Face17";
glasses="None";
speaker="Howard";
pitch=1.0;
};
class GiorgosSeferis
{
name="Giorgos Seferis";
face="Face18";
glasses="None";
speaker="Mathew";
pitch=1.0;
};
-
If that's the whole description.ext file then you have not properly 'closed' the class Magazines or the class CfgIdentities sections.
Sould look more like this -
class Magazines
{
// Add the magazines to the mission gear
class 30Rnd_556x45_Stanag { count = 10; };
class HandGrenade { count = 5; };
class HWM_HKG3Mag { count = 30; };
class HWM_FalMag { count = 30; };
};
class CfgIdentities
{
class GeorgePapandreou
{
name="George Papandreou";
face="Face10";
glasses="None";
speaker="Dan";
pitch=1.2;
};
class KostasKaramanlis
{
name="Kostas Karamanlis";
face="Face11";
glasses="None";
speaker="Brian";
pitch=1.0;
};
class EleftheriosVenizelos
{
name="Eleftherios Venizelos";
face="Face12";
glasses="None";
speaker="Mathew";
pitch=1.1;
};
class GeorgiosPapadopoulos
{
name="Georgios Papadopoulos";
face="Face13";
glasses="None";
speaker="Robert";
pitch=1.0;
};
class NikolaosZachariadis
{
name="Nikolaos Zachariadis";
face="Face14";
glasses="None";
speaker="Russell";
pitch=1.2;
};
class GeorgeRallis
{
name="George Rallis";
face="Face15";
glasses="None";
speaker="Dusan";
pitch=1.1;
};
class StylianosPattakos
{
name="Stylianos Pattakos";
face="Face16";
glasses="None";
speaker="Ryan";
pitch=1.0;
};
class NicoMastorakis
{
name="Nico Mastorakis";
face="Face17";
glasses="None";
speaker="Howard";
pitch=1.0;
};
class GiorgosSeferis
{
name="Giorgos Seferis";
face="Face18";
glasses="None";
speaker="Mathew";
pitch=1.0;
};
};
It's good practice to indent your code so that errors like that are easier for you to spot.
-
Got it. Thanks again.