Jump to content

How to make a contract that requires multiple completions


Recommended Posts

I have been reading through the preassigned contract types for ksp seti mod, and noticed that certain contract types require a previous contract type to be completed exactly 1 time.

I was wondering if i could create a contract type where it takes multiple completions of the same contract type to unlock the next in the sequence

I tried modifying the contract type below with no luck...

My goal is to require the user to complete 3 separate orbits using 3 different vessels Before unlocking the orbit the Mun contract.

Thank you for any advice you can give me :)

{

//---Manned Orbit---\\

CONTRACT_TYPE

{

name = MannedOrbit

title = Manned Orbit and safe return!

description = While reaching orbit with a probe was quite an accomplishment, sending a kerbal up there will be great inspiration for kerbalkind and thus an important milestone for our space program.

synopsis = We want you to launch a kerbal into an orbit around Kerbin for 30 minutes and then return him safely. This is an endurance contract, needs to be completed 3 separate times to gain experience

completedMessage = You have successfully completed three manned orbital missions around Kerbin.

agent = Space Exploration & Technology Initiative

minExpiry = 660.0

maxExpiry = 660.0

cancellable = true

declinable = true

prestige = Significant

targetBody = Kerbin

minCompletions = 3

maxCompletions = 5

maxSimultaneous = 1

rewardScience = 18.0

rewardReputation = 80.0

rewardFunds = 72000.0

failureFunds = 24000.0

advanceFunds = 24000.0

PARAMETER

{

name = OrbitKerbin

type = VesselParameterGroup

duration= 30m

PARAMETER

{

name = HasCrew

type = HasCrew

minCrew = 1

}

PARAMETER

{

name = ReachState

type = ReachState

situation = ORBITING

disableOnStateChange = false

}

}

PARAMETER

{

name = ReturnHome

type = ReturnHome

}

BEHAVIOUR

{

name = Progression

type = Expression

CONTRACT_COMPLETED_SUCCESS

{

setiMannedOrbit = 10

}

}

REQUIREMENT

{

name = All

type = All

REQUIREMENT

{

name = Progression

type = Expression

expression = setiMannedAltitude18km == 10

}

REQUIREMENT

{

name = Progression

type = Expression

expression = setiOrbitRecovery == 10

}

}

}

Link to comment
Share on other sites

  • 2 weeks later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...