<?xml version="1.0"?>
<rss version="2.0"><channel><title/><link>https://www.loverslab.com/blogs/blog/1669-suzutsuki/</link><description/><language>en</language><item><title>How to create a Consequence Quest for Battle Fuck!</title><link>https://www.loverslab.com/blogs/entry/14382-how-to-create-a-consequence-quest-for-battle-fuck/</link><description><![CDATA[<p>
	To add a Consequence Quest to Battle Fuck, two quests are required.
</p>

<p>
	 
</p>

<p>
	<strong>Consequence Quest</strong>
</p>

<p>
	Start after the player becomes unconscious in Battle Fuck.
</p>

<p>
	 
</p>

<p>
	<strong>Register Quest</strong><br />
	Register Consequence Quest to Battle Fuck at the start of the game.
</p>

<p>
	 
</p>

<p>
	As an example, here are the steps to add <a href="https://www.loverslab.com/files/file/18806-kidnapped-by-rieklings-quest-resource/" rel="">Kidnapped by Rieklings</a> as a Consequence.
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	Open CK, and click the folder button on the left side of the toolbar.<br />
	Check BattleFuck.esp and other required mods (in this case KidnappedByRieklings.esp) and press OK.<br />
	Press Yes for "You have not set a file as the activefile. Do you wish to continue?"
</p>

<p>
	<img alt="ss01.png.eb35d31916f5c6fa40373b00c9fd664b.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238418" data-ratio="72.67" width="827" src="https://www.loverslab.com/uploads/monthly_2021_08/ss01.png.eb35d31916f5c6fa40373b00c9fd664b.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	After the esps are loaded, create a Consequence Quest.
</p>

<p>
	In the Object Window, select Character-&gt;Quest in the tree view.<br />
	Right-click on the Quest list on the right side of the window, and then Click "New" from the pop-up menu.
</p>

<p>
	 
</p>

<p>
	When the Edit Quest screen opens, go to the Quest Data tab and enter the Quest ID in the ID field.<br />
	Uncheck the "Start Game Enabled" and "Run Once" boxes.<br />
	Click OK to close the window for once.
</p>

<p>
	<img alt="ss02.png.437bb9fd4607762cbfcaa890da67f223.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238419" data-ratio="59.68" width="1200" src="https://www.loverslab.com/uploads/monthly_2021_08/ss02.png.437bb9fd4607762cbfcaa890da67f223.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	Double-click on the newly created quest in the quest list to open the window again.
</p>

<p>
	In the Scripts tab, click the Add button.
</p>

<p>
	<img alt="ss03.png.b1d0d4a0f1be2a517fcbb9024f5aad5e.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238426" data-ratio="59.68" width="1200" src="https://www.loverslab.com/uploads/monthly_2021_08/ss03.png.b1d0d4a0f1be2a517fcbb9024f5aad5e.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	<br />
	In the window that comes up, select New Script and press OK.
</p>

<p>
	<img alt="ss04.png.327b3a727100ed2022dce6421d9a54a5.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238428" data-ratio="70.59" width="476" src="https://www.loverslab.com/uploads/monthly_2021_08/ss04.png.327b3a727100ed2022dce6421d9a54a5.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	<br />
	In the Add New Script window, input the following and click OK.
</p>

<p>
	<img alt="ss05.png.8bb80eff5c10b93c36776c4b8912ca1e.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238430" data-ratio="101.73" width="289" src="https://www.loverslab.com/uploads/monthly_2021_08/ss05.png.8bb80eff5c10b93c36776c4b8912ca1e.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	The quest editing window will look like this, so press OK to close the window.
</p>

<p>
	<img alt="ss06.png.966a975acb07552c89786d22849540a9.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238437" data-ratio="59.68" width="1200" src="https://www.loverslab.com/uploads/monthly_2021_08/ss06.png.966a975acb07552c89786d22849540a9.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	Open the _Sample_Consequence.psc file in the Data/scripts/source folder using a text editor.<br />
	Edit it as follows.
</p>

<pre class="ipsCode">Scriptname _Sample_Consequence extends _bf_consequencebase

; Define the properties needed to process Consequence Quest.
Quest Property _KR_KidnapQuest Auto

Function Process()
	; Execute the Consequence Quest process.
	_KR_KidnapQuest.Start()
	Utility.Wait(2.0)

	; Notify Battle Fuck that the Consequence Quest has been successfully processed.
	_BF_BattleFuckQuest.ConsequenceHandled = true

	; Restores Max BP and dispels debuff spells.
	; If you want the player to remain defeated, don't do it.
	_BF_BattleFuckQuest.RestoreStatus()

	; You must Stop the Quest.
	Stop()
EndFunction</pre>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	When you have finished editing, select Gameplay-&gt;Papyrus Script Manager from the menu bar on the CK window.
</p>

<p>
	When the Papyrus Manager window opens, select _Sample_Consequence and right-click on it.
</p>

<p>
	<img alt="ss07.png.766d544dbe35467b1d370a962662152f.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238439" data-ratio="179.34" width="271" src="https://www.loverslab.com/uploads/monthly_2021_08/ss07.png.766d544dbe35467b1d370a962662152f.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	<br />
	Select "Compile" from the pop-up menu to compile the script.<br />
	The compile window will appear and the compilation will be executed.<br />
	If there are no errors, the compile window will be closed automatically.
</p>

<p>
	<img alt="ss08.png.bf8f9651fac11f4224aa57f5d3f899b9.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238440" data-ratio="68.91" width="476" src="https://www.loverslab.com/uploads/monthly_2021_08/ss08.png.bf8f9651fac11f4224aa57f5d3f899b9.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	The next step is to set the properties of the script.
</p>

<p>
	Open the edit window of Consequence Quest, select _Sample_Consequence from the script list in the Scripts tab, and click the Properties button.
</p>

<p>
	<img alt="ss09.png.ecae8e43e280cd48a937a656855f1809.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238441" data-ratio="59.68" width="1200" src="https://www.loverslab.com/uploads/monthly_2021_08/ss09.png.ecae8e43e280cd48a937a656855f1809.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	<br />
	The property setting window will appear.
</p>

<p>
	Set the values as follows.
</p>

<p>
	<img alt="ss12.png.f6cf09bc9ec01d8fad7137976fc3ba93.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238442" data-ratio="62.84" width="853" src="https://www.loverslab.com/uploads/monthly_2021_08/ss12.png.f6cf09bc9ec01d8fad7137976fc3ba93.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	Here, properties other than _KR_KidnapQuest that you added are inherited from _BF_ConsequenceBase.
</p>

<p>
	Set each value as follows.
</p>

<p>
	 
</p>

<p>
	<strong>_BF_BattleFuckQuest</strong>
</p>

<p>
	Set the _BF_BattleFuckQuest.
</p>

<p>
	Click the Auto-Fill All button and it will be filled in automatically.
</p>

<p>
	 
</p>

<p>
	<strong>Chance</strong><br />
	Input the chance that the Consequence will occur.
</p>

<p>
	The user can change this value in the MCM.
</p>

<p>
	 
</p>

<p>
	<strong>DefaultChance</strong>
</p>

<p>
	Input the default value of Chance.
</p>

<p>
	This is used by MCM to restore the default value.
</p>

<p>
	 
</p>

<p>
	<strong>MCM</strong>
</p>

<p>
	Setting _BF_MCMQuest
</p>

<p>
	 
</p>

<p>
	<strong>Name</strong>
</p>

<p>
	Input the name of the Consequence.<br />
	The name you enter here will be displayed in the MCM.
</p>

<p>
	 
</p>

<p>
	<strong>RequiredBounty</strong>
</p>

<p>
	If you input a value, the Consequence will be selected only if the player has a bounty larger than the input value.
</p>

<p>
	Use this if the Consequence is the player being arrested by the guards.
</p>

<p>
	 
</p>

<p>
	<strong>RequiredFactionList</strong>
</p>

<p>
	If you input a FormList, the Consequence will be selected only if there are NPCs in the Onlookers who are members of the Faction in the FormList.
</p>

<p>
	If the Consequence is to be arrested by the guards, set _BF_CrimeFactionHasJailList.
</p>

<p>
	 
</p>

<p>
	In this case, we want the Consequence to be selected only when rieklings are present, so we will create a FormList with the riekling's faction and set it as follows.
</p>

<p>
	<img alt="ss11.png.0b4110a5fb1dc236047cbbc46f0ee284.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238443" data-ratio="125.41" width="307" src="https://www.loverslab.com/uploads/monthly_2021_08/ss11.png.0b4110a5fb1dc236047cbbc46f0ee284.png" />
</p>

<p>
	 
</p>

<p>
	<strong>RequiredTeleport</strong>
</p>

<p>
	Set to True if you want the ConsequenceQuest process to move the player to a different location.
</p>

<p>
	If set to True, the Consequence will not be selected if the player is in a Teleport-Prohibited location such as Sovngarde.
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	When you have finished inputting the properties, press OK to close the Property Settings window.<br />
	Press OK to close the Quest Settings window.
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	Next, create a Register Quest.
</p>

<p>
	Open the Quest Editor in the same way as for the Consequence Quest,<br />
	Input the Quest ID and uncheck Run Once. (Leave Start Game Enabled checked).
</p>

<p>
	Click OK to close the window.
</p>

<p>
	<img alt="ss13.png.ecf84cd528c979defc0498625859aae8.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238444" data-ratio="59.68" width="1200" src="https://www.loverslab.com/uploads/monthly_2021_08/ss13.png.ecf84cd528c979defc0498625859aae8.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	Open the Register Quest edit window again.
</p>

<p>
	Right-click on the Alias list in the Quest Aliases tab, and select New Reference Alias from the pop-up menu.
</p>

<p>
	When the Reference Alias window opens, input as follows, and then click OK to close the window.
</p>

<p>
	<img alt="ss15.png.bc131b0b2dd590ba6e6b14f017c72d52.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238445" data-ratio="93.41" width="1078" src="https://www.loverslab.com/uploads/monthly_2021_08/ss15.png.bc131b0b2dd590ba6e6b14f017c72d52.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	Select PlayerRef in the Alias list and press Ctrl+Shift+R.<br />
	"Toggle Allow Reserved flag on the selected aliases?" dialog will appear, select Yes.
</p>

<p>
	 
</p>

<p>
	Double-click the PlayerRef to reopen the Reference Alias window.
</p>

<p>
	Click the Add button in Papyrus Scripts.
</p>

<p>
	<img alt="ss16.png.b2934c05b545528701c225a5223bb7f5.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238447" data-ratio="93.41" width="1078" src="https://www.loverslab.com/uploads/monthly_2021_08/ss16.png.b2934c05b545528701c225a5223bb7f5.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	Add the _BF_RegisterConsequencePlayerAlias.
</p>

<p>
	<img alt="ss17.png.91f3d35254cf681301ac6d51fb763d4c.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238448" data-ratio="70.59" width="476" src="https://www.loverslab.com/uploads/monthly_2021_08/ss17.png.91f3d35254cf681301ac6d51fb763d4c.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	Press the Properties button.
</p>

<p>
	<img alt="ss18.png.40c33f49870644698fdba537ad35e189.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238449" data-ratio="93.41" width="1078" src="https://www.loverslab.com/uploads/monthly_2021_08/ss18.png.40c33f49870644698fdba537ad35e189.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	Set the values as follows.
</p>

<p>
	<img alt="ss19.png.8763bd7990cb341d16d86c007c6a137a.png" class="ipsImage ipsImage_thumbnailed" data-fileid="1238450" data-ratio="62.84" width="853" src="https://www.loverslab.com/uploads/monthly_2021_08/ss19.png.8763bd7990cb341d16d86c007c6a137a.png" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	When you are done, close the Properties, ReferenceAlias, and Quest windows by clicking OK.
</p>

<p>
	 
</p>

<p>
	Then save the esp.<br />
	That's all you need to do in CK.
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	Activate the created esp and start Skyrim.<br />
	Open the Consequence page of the MCM in Battle Fuck and confirm that the Consequence you created is displayed.
</p>

<p>
	If there are no problems, confirm that the Consequence works correctly after defeated in Battle Fuck.
</p>

<p>
	<img alt="ss20.jpg.26141b41a35deaa74852ed32dad76b10.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="1238451" data-ratio="56.25" width="1200" src="https://www.loverslab.com/uploads/monthly_2021_08/ss20.jpg.26141b41a35deaa74852ed32dad76b10.jpg" />
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	Thank you for reading so far.
</p>

<p>
	 
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">14382</guid><pubDate>Sat, 14 Aug 2021 05:38:00 +0000</pubDate></item></channel></rss>
