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

18 lines
570 B
Plaintext

#include "x4_inc_functions"
int StartingConditional()
{
string sDB = CharacterDB(GetPCSpeaker());
if (GetCampaignInt(sDB, "QUEST_COMPLICATION") != 1) return FALSE;
string sName = GetCampaignString(sDB, "QUEST_CLI_NAME");
string sLastName = GetCampaignString(sDB, "QUEST_CLI_LASTNAME");
string sRansom = GetCampaignString(sDB, "QUEST_EXTRA2");
int nRansom = 2*StringToInt(sRansom);
sRansom = IntToString(nRansom);
SetCustomToken(11001, sName);
SetCustomToken(11002, sLastName);
SetCustomToken(11008, sRansom);
return TRUE;
}