#include "x4_inc_functions" void main() { object oPC = GetPCSpeaker(); object oModule = GetModule(); string sDatabase = GetLocalString(oModule, "DB"); string sAgencyGold = GetStringLowerCase(DBCharacterSpecificVariable(oPC, "AgencyGold")); int nAgencyGold = GetCampaignInt(sDatabase, sAgencyGold); GiveGoldToCreature(oPC, nAgencyGold); DeleteCampaignVariable(sDatabase, sAgencyGold); }