Ancordia_PRC8/_module/nss/wdiff_legend.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

30 lines
1.0 KiB
Plaintext

void main()
{
object oPC = GetPCSpeaker();
object oModule = GetModule();
string sDB = GetLocalString(oModule, "DB");
string sDiff = "LEGEND";
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);
}
}