How to create a Consequence Quest for Battle Fuck!
To add a Consequence Quest to Battle Fuck, two quests are required.
Consequence Quest
Start after the player becomes unconscious in Battle Fuck.
Register Quest
Register Consequence Quest to Battle Fuck at the start of the game.
As an example, here are the steps to add Kidnapped by Rieklings as a Consequence.
Open CK, and click the folder button on the left side of the toolbar.
Check BattleFuck.esp and other required mods (in this case KidnappedByRieklings.esp) and press OK.
Press Yes for "You have not set a file as the activefile. Do you wish to continue?"
After the esps are loaded, create a Consequence Quest.
In the Object Window, select Character->Quest in the tree view.
Right-click on the Quest list on the right side of the window, and then Click "New" from the pop-up menu.
When the Edit Quest screen opens, go to the Quest Data tab and enter the Quest ID in the ID field.
Uncheck the "Start Game Enabled" and "Run Once" boxes.
Click OK to close the window for once.
Double-click on the newly created quest in the quest list to open the window again.
In the Scripts tab, click the Add button.
In the window that comes up, select New Script and press OK.
In the Add New Script window, input the following and click OK.
The quest editing window will look like this, so press OK to close the window.
Open the _Sample_Consequence.psc file in the Data/scripts/source folder using a text editor.
Edit it as follows.
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
When you have finished editing, select Gameplay->Papyrus Script Manager from the menu bar on the CK window.
When the Papyrus Manager window opens, select _Sample_Consequence and right-click on it.
Select "Compile" from the pop-up menu to compile the script.
The compile window will appear and the compilation will be executed.
If there are no errors, the compile window will be closed automatically.
The next step is to set the properties of the script.
Open the edit window of Consequence Quest, select _Sample_Consequence from the script list in the Scripts tab, and click the Properties button.
The property setting window will appear.
Set the values as follows.
Here, properties other than _KR_KidnapQuest that you added are inherited from _BF_ConsequenceBase.
Set each value as follows.
_BF_BattleFuckQuest
Set the _BF_BattleFuckQuest.
Click the Auto-Fill All button and it will be filled in automatically.
Chance
Input the chance that the Consequence will occur.
The user can change this value in the MCM.
DefaultChance
Input the default value of Chance.
This is used by MCM to restore the default value.
MCM
Setting _BF_MCMQuest
Name
Input the name of the Consequence.
The name you enter here will be displayed in the MCM.
RequiredBounty
If you input a value, the Consequence will be selected only if the player has a bounty larger than the input value.
Use this if the Consequence is the player being arrested by the guards.
RequiredFactionList
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.
If the Consequence is to be arrested by the guards, set _BF_CrimeFactionHasJailList.
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.
RequiredTeleport
Set to True if you want the ConsequenceQuest process to move the player to a different location.
If set to True, the Consequence will not be selected if the player is in a Teleport-Prohibited location such as Sovngarde.
When you have finished inputting the properties, press OK to close the Property Settings window.
Press OK to close the Quest Settings window.
Next, create a Register Quest.
Open the Quest Editor in the same way as for the Consequence Quest,
Input the Quest ID and uncheck Run Once. (Leave Start Game Enabled checked).
Click OK to close the window.
Open the Register Quest edit window again.
Right-click on the Alias list in the Quest Aliases tab, and select New Reference Alias from the pop-up menu.
When the Reference Alias window opens, input as follows, and then click OK to close the window.
Select PlayerRef in the Alias list and press Ctrl+Shift+R.
"Toggle Allow Reserved flag on the selected aliases?" dialog will appear, select Yes.
Double-click the PlayerRef to reopen the Reference Alias window.
Click the Add button in Papyrus Scripts.
Add the _BF_RegisterConsequencePlayerAlias.
Press the Properties button.
Set the values as follows.
When you are done, close the Properties, ReferenceAlias, and Quest windows by clicking OK.
Then save the esp.
That's all you need to do in CK.
Activate the created esp and start Skyrim.
Open the Consequence page of the MCM in Battle Fuck and confirm that the Consequence you created is displayed.
If there are no problems, confirm that the Consequence works correctly after defeated in Battle Fuck.
Thank you for reading so far.
Edited by Suzutsuki
3 Comments
Recommended Comments