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

17 lines
452 B
Plaintext

int StartingConditional()
{
object oPC = GetPCSpeaker();
object oModule = GetModule();
string sDatabase = GetLocalString(oModule, "DB");
string sHouse = GetLocalString(oPC, "HouseToSell");
string sHousePrice = "H_"+sHouse+"_PRICE";
int nPrice = GetCampaignInt(sDatabase, sHousePrice);
SetLocalInt(oPC, "HouseToSell_p", nPrice);
string sPrice = IntToString(nPrice);
SetCustomToken(822, sPrice);
return TRUE;
}