Initial Commit
Initial Commit
This commit is contained in:
19
_module/nss/quest_ransnotful.nss
Normal file
19
_module/nss/quest_ransnotful.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "x4_inc_functions"
|
||||
int StartingConditional()
|
||||
{
|
||||
string sDB = CharacterDB(GetPCSpeaker());
|
||||
int nBackground = GetCampaignInt(sDB, "QUEST_BACKGROUND");
|
||||
if (nBackground != 3 && nBackground != 4) return FALSE;
|
||||
|
||||
string sName = GetCampaignString(sDB, "QUEST_CLI_NAME");
|
||||
string sLastName = GetCampaignString(sDB, "QUEST_CLI_LASTNAME");
|
||||
string sRansom = GetCampaignString(sDB, "QUEST_EXTRA2");
|
||||
if (sRansom == "1500") sRansom = "2000";
|
||||
if (sRansom == "1000") sRansom = "1500";
|
||||
if (sRansom == "700") sRansom = "1000";
|
||||
SetCustomToken(11001, sName);
|
||||
SetCustomToken(11002, sLastName);
|
||||
SetCustomToken(11008, sRansom);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
Reference in New Issue
Block a user