Jurassic Mods
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Help: Adding Monthly cost to buildings, visible feald?

Go down

Help: Adding Monthly cost to buildings, visible feald? Empty Help: Adding Monthly cost to buildings, visible feald?

Post  ColdEvil Thu Jun 28, 2012 4:42 pm

Hi!
I am trying to make all the buildings to have a maintenance cost every mouth. And started with the WelcCentr (Welcome Center).

I have tried this options (i will only fill in the changes.):

TEST NR1
JPOG\Data\GUI\Locales\WelcCntr.inx
Code:

...
    NumComponents = 2;
...
   Component[1] {
   Type=AMonthlyCost;
      MonthlyCost = 900;
   }
...
Dialog {
...
   Field[MonthlyCost] {
      type = ADialogLabelField;
      format = $FieldFormat_Money;
   }
}

JPOG\Data\GUI\Locales\Eng.txt
Code:

AUnitWelcomeCentreDialog_Monthly_Cost    "Cost Per Month:";

TEST NR2
JPOG\Data\GUI\Locales\WelcCntr.inx
Code:

...
AestheticEffect
{
   AestheticBoost = 0.00;
   MonthlyCost = 900;
   StartOn=0;
   ApplyAtEntrance=1;   // Represent building upkeep and personal.
}
...
Dialog {
...
   Field[AestheticMonthlyCost] {
      type = ADialogLabelField;
      format = $FieldFormat_Money;
   }
}

JPOG\Data\GUI\Locales\Eng.txt (Tried with and without.)
Code:

AUnitWelcomeCentreDialog_Monthly_Cost    "Cost Per Month:";
All of the results end in a crash.

Does anyone know what’s wrong and how to do this?


EXTRA: (I got this by an accident)
I can give you an extra to here is how you add a ranger shopper to the Welcome Centre:

In “JPOG\Data\GUI\Locales\WelcCntr.inx” Change NumComponents = 1; to 2 and add Component[1] below Component[0] and you have a ranger chopper at the helipad.
Code:

    NumComponents = 2;
...
    Component[1] {
        Type=AActualStaffController;
        MinStaff=1;
        MaxStaff=1;
        Wages=500;
        ControllerType=1;
    }

ColdEvil
Compy
Compy


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum