Skip to content

Commit

Permalink
close #150 added smart dialog if player has StageRecovery
Browse files Browse the repository at this point in the history
  • Loading branch information
inigmatus committed Jan 17, 2016
1 parent 4875809 commit 1f92273
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 42 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Expand Up @@ -12,6 +12,7 @@ GAP 1.1
- updated SSI-Bail to require 2500m altitude rather than 2000m.
- reassigned all SSI crew cabin test contracts to KAB.
- added Kerbal Aircraft Builders agency, group, and assets.
- added StageRecovery compatibility with BuoyDrop contracts - added a dialog to inform player to stick around until buoy splashdown.
- renamed SSI-2000m to Wright-2500m and changed altitude target from 2000m to 2500m.
- updated experience reward triggers for Wright-FirstFlight, and SSI-Submarine.
- updated DropBuoys contracts to check for a max of 2 barometers on craft to avoid completion stall (thanks kcs123)
Expand Down
53 changes: 51 additions & 2 deletions CoastGuard-DropBuoys-Carrier.cfg
Expand Up @@ -318,6 +318,55 @@ CONTRACT_TYPE

}

BEHAVIOUR:NEEDS[StageRecovery]
{
name = DialogBox
type = DialogBox

DIALOG_BOX
{
condition = PARAMETER_COMPLETED
parameter = drop1stBuoy

position = LEFT

TEXT
{
text = 1st buoy is dropped! I need to calibrate the relay radio frequency. Please stick around the area long enough for the buoy to splashdown before moving on.

}

IMAGE
{
url = ContractConfigurator/ui/iva_female
characterName = @/kerbalsCoastGuard.ElementAt(0)
}

}

DIALOG_BOX
{
condition = PARAMETER_COMPLETED
parameter = drop2ndBuoy

position = LEFT

TEXT
{
text = 2nd buoy is dropped! I need to calibrate the relay radio frequency with this one too. Please stick around the area long enough for the buoy to splashdown before heading back to base.

}

IMAGE
{
url = ContractConfigurator/ui/iva_female
characterName = @/kerbalsCoastGuard.ElementAt(0)
}

}

}


//PARAMETERS FOR CONTRACT COMPLETION

Expand Down Expand Up @@ -498,7 +547,7 @@ CONTRACT_TYPE

PARAMETER
{
name = PartValidation
name = drop1stBuoy
type = PartValidation
title = drop 1st buoy

Expand Down Expand Up @@ -541,7 +590,7 @@ CONTRACT_TYPE

PARAMETER
{
name = PartValidation
name = drop2ndBuoy
type = PartValidation
title = drop 2nd buoy

Expand Down
129 changes: 89 additions & 40 deletions CoastGuard-DropBuoys.cfg
Expand Up @@ -249,6 +249,55 @@ CONTRACT_TYPE

}

BEHAVIOUR:NEEDS[StageRecovery]
{
name = DialogBox
type = DialogBox

DIALOG_BOX
{
condition = PARAMETER_COMPLETED
parameter = drop1stBuoy

position = LEFT

TEXT
{
text = 1st buoy is dropped! I need to calibrate the relay radio frequency. Please stick around the area long enough for the buoy to splashdown before moving on.

}

IMAGE
{
url = ContractConfigurator/ui/iva_female
characterName = @/kerbalsCoastGuard.ElementAt(0)
}

}

DIALOG_BOX
{
condition = PARAMETER_COMPLETED
parameter = drop2ndBuoy

position = LEFT

TEXT
{
text = 2nd buoy is dropped! I need to calibrate the relay radio frequency with this one too. Please stick around the area long enough for the buoy to splashdown before heading back to base.

}

IMAGE
{
url = ContractConfigurator/ui/iva_female
characterName = @/kerbalsCoastGuard.ElementAt(0)
}

}

}


//PARAMETERS FOR CONTRACT COMPLETION

Expand Down Expand Up @@ -400,36 +449,36 @@ CONTRACT_TYPE

//Contract Goals
//Buoy Drop Zone 1
PARAMETER
{
name = VesselParameterGroup
type = VesselParameterGroup
title = navigate to Buoy Drop Zone 1 (5km Zone)
// PARAMETER
// {
// name = VesselParameterGroup
// type = VesselParameterGroup
// title = navigate to Buoy Drop Zone 1 (5km Zone)

vessel = @/craft
// vessel = @/craft

PARAMETER
{
name = VisitWaypoint
type = VisitWaypoint
// PARAMETER
// {
// name = VisitWaypoint
// type = VisitWaypoint

index = 5
distance = 5000
hideOnCompletion = true
// index = 5
// distance = 5000
// hideOnCompletion = true

disableOnStateChange = true
hideChildren = true
// disableOnStateChange = true
// hideChildren = true

}
// }

disableOnStateChange = true
hideChildren = true
// disableOnStateChange = true
// hideChildren = true

}
// }

PARAMETER
{
name = PartValidation
name = drop1stBuoy
type = PartValidation
title = drop 1st buoy

Expand All @@ -443,36 +492,36 @@ CONTRACT_TYPE
}

//Buoy Drop Zone 2
PARAMETER
{
name = VesselParameterGroup
type = VesselParameterGroup
title = navigate to Buoy Drop Zone 2 (5km Zone)
// PARAMETER
// {
// name = VesselParameterGroup
// type = VesselParameterGroup
// title = navigate to Buoy Drop Zone 2 (5km Zone)

vessel = @/craft
// vessel = @/craft

PARAMETER
{
name = VisitWaypoint
type = VisitWaypoint
// PARAMETER
// {
// name = VisitWaypoint
// type = VisitWaypoint

index = 6
distance = 5000
hideOnCompletion = true
// index = 6
// distance = 5000
// hideOnCompletion = true

disableOnStateChange = true
hideChildren = true
// disableOnStateChange = true
// hideChildren = true

}
// }

disableOnStateChange = true
hideChildren = true
// disableOnStateChange = true
// hideChildren = true

}
// }

PARAMETER
{
name = PartValidation
name = drop2ndBuoy
type = PartValidation
title = drop 2nd buoy

Expand Down

0 comments on commit 1f92273

Please sign in to comment.