Ancordia_PRC8/_module/nss/house_saleprice.nss

17 lines
452 B
Plaintext
Raw Permalink Normal View History

2023-09-21 19:51:32 -04:00
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;
}