30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oModule = GetModule();
|
|
string sDB = GetLocalString(oModule, "DB");
|
|
string sDiff = "HERO";
|
|
string sDiffChosenLocal = GetLocalString(oPC, "DiffChosenLocal");
|
|
string sDiffChosenCamp = GetLocalString(oPC, "DiffChosenCamp");
|
|
|
|
if(GetLocalString(oPC, "DiffChosenLocal") == "all")
|
|
{
|
|
SetCampaignString(sDB, "difficulty_death", sDiff);
|
|
SetCampaignString(sDB, "difficulty_explo", sDiff);
|
|
SetCampaignString(sDB, "difficulty_enemy", sDiff);
|
|
SetCampaignString(sDB, "difficulty_adven", sDiff);
|
|
SetCampaignString(sDB, "difficulty_commu", sDiff);
|
|
SetLocalString(oModule, "mDiffDeath", sDiff);
|
|
SetLocalString(oModule, "mDiffExplo", sDiff);
|
|
SetLocalString(oModule, "mDiffEnemy", sDiff);
|
|
SetLocalString(oModule, "mDiffAdven", sDiff);
|
|
SetLocalString(oModule, "mDiffCommu", sDiff);
|
|
}
|
|
|
|
else
|
|
{
|
|
SetCampaignString(sDB, sDiffChosenCamp, sDiff);
|
|
SetLocalString(oModule, sDiffChosenLocal, sDiff);
|
|
}
|
|
}
|