But I wanted to make it so the rent goes up each time the player buys one of the upgrades for it. But how would I tell in the script that the player has bought an upgrade?
short BravilRentif getstage HouseBravil >= 10 && getstage HouseBravil < 30; house bought, no upgrades yet, set rent to minimumset BravilRent to 20 if ParentReadingAreaBravil.getdisabled == 0 ; check for the various additions and increase the rent set BravilRent to BravilRent + 5 endif if ParentKitchenAreaBravil.getdisabled == 0 set BravilRent to BravilRent + 5 endif if ParentDiningAreaBravil.getdisabled == 0 set BravilRent to BravilRent + 5 endif if ParentStorageAreaBravil.getdisabled == 0 set BravilRent to BravilRent + 5 endif if ParentRacksBravil.getdisabled == 0 set BravilRent to BravilRent + 5 endif if ParentPaintingsTapsBravil.getdisabled == 0 set BravilRent to BravilRent + 5 endifelseif getstage HouseBravil == 30; all upgrades bought, set rent to maximumset BravilRent to 50endif