Dawnguard PSC Files [merged]

Post » Sun Nov 18, 2012 3:11 am

Just a little update on the DLC1_NPCMentalModelScript front: I have decompiled the script, but to compile it I probably need to decompile 2 more scripts. That's what I'm currently working on.

@SirRoland:
properties are defined in two pieces:
the first is a hidden variable; in your case WerewolfFaction_var with an initial value of None; the second part is defined a little further down in the propertytable. That's where the property
WerewolfFaction is linked to the hidden variable and any flags like auto or functions like get/set are defined.
User avatar
Cathrin Hummel
 
Posts: 3399
Joined: Mon Apr 16, 2007 7:16 pm

Post » Sat Nov 17, 2012 8:07 pm

@TMPhoenix

so to "translate" it to papyrus source code I should skip variables and look on properties? Because there is no WerewolfFaction variable in psc (from non-Dawnguard Skyrim), there is only property with this name.
User avatar
Josee Leach
 
Posts: 3371
Joined: Tue Dec 26, 2006 10:50 pm

Post » Sun Nov 18, 2012 12:19 am

Here is the http://dl.dropbox.com/u/85931025/dlc1_mentalmodel.7z. It compiles. I left some comments since I think it may contain a bug (I swear it was there before I touched it :wink: ) See for example line 337 in the ModAssessment function.
I suppose it could be they dropped some of the assesment stuff, but why leave it in other parts of the code.

@SirRoland: no you should NOT skip them; the variables define the initial values for properties and non-property variables are only defined here. For properties you should combine the two pieces. for ordinary scriptlocal variables you should just convert the variable itself.
User avatar
Leilene Nessel
 
Posts: 3428
Joined: Sun Apr 15, 2007 2:11 am

Post » Sat Nov 17, 2012 10:15 pm

@SushiSquid:
What errors are you getting while trying to recompile the scripts; so far I haven't eno[censored]ered any problems recompiling.
The error is that dlc1radiantscript is a new type that the game recognizes as of the patch for Dawnguard, but the Creation Kit still does not recognize this. The script DLC1HunterBaseIntroQuestScript has a property line that says this:
dlc1radiantscript Property DLC1Radiant Auto

That line is completely valid and should compile, but it does not because that new type is not correctly recognized yet. I do not need to mess with that script, so leaving the old compiled version is fine. However, because that exact variable is actually used in fragment 5 of DLC1_QF_DLC1HunterBaseIntro_01004E24 through a kmyQuest, I cannot compile it at all and thus cannot finish working on this until the CK is updated.


As a side note, Tranquilizing Bolts are finished and working (but overpowered, so I'll likely be cutting down their effect a bit). It'll be a very simple matter to create Silver Bolts and Sunburst Silver Bolts. I'll have to contact someone who can actually make models so they look unique. I can do many things with this game, but making models and textures is not my bag.
User avatar
Jamie Lee
 
Posts: 3415
Joined: Sun Jun 17, 2007 9:15 am

Post » Sat Nov 17, 2012 9:15 pm

@SushiSquid:
that's not a problem with the CK; you just need to decompile the missing script, dlc1radiantscript as well.

That's why I needed to decompile 2 more scripts just to compile dlc1_npcmentalmodelscript.
User avatar
мistrєss
 
Posts: 3168
Joined: Thu Dec 14, 2006 3:13 am

Post » Sun Nov 18, 2012 1:56 am

Oh, wow. You can set something to be a type of another script, huh? I just keep learning more every day.



Edit:

Hahaha. :rofl: There's no way in hell I'm decompiling all of this.
Spoiler
.info    .source "DLC1RadiantScript.psc"    .modifyTime 1337328034 ;Fri May 18 09:00:34 2012 Local    .compileTime 1338491613 ;Thu May 31 20:13:33 2012 Local    .user "builds"    .computer "BUILDFARM08".endInfo.userFlagsRef    .flag conditional 1    ; 0x00000001    .flag hidden 0    ; 0x00000000.endUserFlagsRef.objectTable    .object dlc1radiantscript Quest        .userFlags 2    ; Flags: 0x00000002        .docString "Master script for DLC1 Radiant Quests. Attached to DLC1_Radiant quest."        .autoState        .variableTable            .variable ::DLC1TrollCost_var globalvariable                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1IntroCompletedVampire_var globalvariable                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::LocTypeHold_var keyword                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1IntroCompletedHunter_var globalvariable                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::EastmarchHoldLocation_var location                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VQ03Hunter_var Quest                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1TrollFollowerDismissedMsg_var message                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1BloodChaliceActivatorEmptyRef_var objectreference                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::WhiterunHoldLocation_var location                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::BanditFaction_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VampireFaction_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VampireCastleLocation_var location                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VampireTurnPerk_var perk                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VQ02_var Quest                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VQ04_var Quest                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::TrollFollower_var referencealias                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::CrimeFactionReach_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::PlayerHasTroll_var Bool                .userFlags 2    ; Flags: 0x00000002                .initialValue None            .endVariable            .variable ::DLC1VQ03Vampire_var Quest                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::ReachHoldLocation_var location                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1BloodPotion_var potion                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VampireChalicePower_var spell                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ChaliceStopDay Float                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1BloodChaliceActivatorFullRef_var objectreference                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable isQuestAccepted Bool                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::RiftHoldLocation_var location                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::CrimeFactionRift_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::HaafingarHoldLocation_var location                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::WinterholdHoldLocation_var location                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VQ01_var Quest                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1dunRedwaterDenWithdrawl_var spell                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1dunRedwaterDenWithdrawalStopDay_var globalvariable                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VendorChestSorineJurardRef_var objectreference                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::CurrentQuestGiver_var referencealias                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1RadiantHunterTechStart_var keyword                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::GameDaysPassed_var globalvariable                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1DawnguardArmoredTrollSpawnMarker_var objectreference                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1WENextSpecialAttackDay_var globalvariable                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::QuestState_var Int                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::CrimeFactionWhiterun_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DialogueFollower_var dialoguefollowerscript                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1RadiantVampireBanditNecroAllys_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1RadiantReward_var leveleditem                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::PaleHoldLocation_var location                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1dunRedwaterDenPower_var spell                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1dunRedwaterDenPowerStopDay_var globalvariable                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1RadiantVampireStart_var keyword                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::CrimeFactionPale_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::CrimeFactionFalkreath_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::FalkreathHoldLocation_var location                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DisguisedVampireActorBases_var actorbase[]                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::LvlVampire_var actorbase                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::NecromancerFaction_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1HunterFaction_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::HjaalmarchHoldLocation_var location                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VQ06_var Quest                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::CrimeFactionWinterhold_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::CrimeFactionHjaalmarch_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1RadiantHighProfileFactions_var formlist                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VQ07_var Quest                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VampireTurn_var dlc1vampireturnscript                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VQ08_var Quest                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DisguisedHunterActorBases_var actorbase[]                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::Vampire_var keyword                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::CrimeFactionEastmarch_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VampireChaliceStopDay_var globalvariable                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::CrimeFactionHaafingar_var faction                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VampireChaliceLevel_var globalvariable                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1HunterHQLocation_var location                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1RadiantHunterStart_var keyword                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1VQ05_var Quest                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::DLC1LvlTrollArmoredPlayerFollower_var actorbase                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable            .variable ::Gold001_var miscobject                .userFlags 0    ; Flags: 0x00000000                .initialValue None            .endVariable        .endVariableTable        .propertyTable            .property DLC1VampireTurnPerk perk auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VampireTurnPerk_var            .endProperty            .property PaleHoldLocation location auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::PaleHoldLocation_var            .endProperty            .property DLC1RadiantVampireBanditNecroAllys faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1RadiantVampireBanditNecroAllys_var            .endProperty            .property DLC1dunRedwaterDenPowerStopDay globalvariable auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1dunRedwaterDenPowerStopDay_var            .endProperty            .property DLC1HunterHQLocation location auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1HunterHQLocation_var            .endProperty            .property NecromancerFaction faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::NecromancerFaction_var            .endProperty            .property DLC1dunRedwaterDenWithdrawl spell auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1dunRedwaterDenWithdrawl_var            .endProperty            .property DLC1VQ07 Quest auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VQ07_var            .endProperty            .property DLC1VQ04 Quest auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VQ04_var            .endProperty            .property DialogueFollower dialoguefollowerscript auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DialogueFollower_var            .endProperty            .property RiftHoldLocation location auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::RiftHoldLocation_var            .endProperty            .property DLC1DawnguardArmoredTrollSpawnMarker objectreference auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1DawnguardArmoredTrollSpawnMarker_var            .endProperty            .property DisguisedVampireActorBases actorbase[] auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DisguisedVampireActorBases_var            .endProperty            .property CrimeFactionFalkreath faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::CrimeFactionFalkreath_var            .endProperty            .property DLC1VampireChalicePower spell auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VampireChalicePower_var            .endProperty            .property FalkreathHoldLocation location auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::FalkreathHoldLocation_var            .endProperty            .property DLC1VQ03Hunter Quest auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VQ03Hunter_var            .endProperty            .property CrimeFactionHjaalmarch faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::CrimeFactionHjaalmarch_var            .endProperty            .property QuestState Int auto                .userFlags 1    ; Flags: 0x00000001                .docString ""                .autoVar ::QuestState_var            .endProperty            .property DLC1VQ03Vampire Quest auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VQ03Vampire_var            .endProperty            .property DisguisedHunterActorBases actorbase[] auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DisguisedHunterActorBases_var            .endProperty            .property DLC1TrollFollowerDismissedMsg message auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1TrollFollowerDismissedMsg_var            .endProperty            .property DLC1HunterFaction faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1HunterFaction_var            .endProperty            .property BanditFaction faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::BanditFaction_var            .endProperty            .property DLC1RadiantVampireStart keyword auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1RadiantVampireStart_var            .endProperty            .property DLC1VQ01 Quest auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VQ01_var            .endProperty            .property EastmarchHoldLocation location auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::EastmarchHoldLocation_var            .endProperty            .property CrimeFactionReach faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::CrimeFactionReach_var            .endProperty            .property DLC1BloodChaliceActivatorFullRef objectreference auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1BloodChaliceActivatorFullRef_var            .endProperty            .property DLC1TrollCost globalvariable auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1TrollCost_var            .endProperty            .property Vampire keyword auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::Vampire_var            .endProperty            .property WinterholdHoldLocation location auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::WinterholdHoldLocation_var            .endProperty            .property LocTypeHold keyword auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::LocTypeHold_var            .endProperty            .property DLC1VampireChaliceLevel globalvariable auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VampireChaliceLevel_var            .endProperty            .property GameDaysPassed globalvariable auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::GameDaysPassed_var            .endProperty            .property DLC1VQ05 Quest auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VQ05_var            .endProperty            .property DLC1RadiantHunterStart keyword auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1RadiantHunterStart_var            .endProperty            .property DLC1RadiantHunterTechStart keyword auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1RadiantHunterTechStart_var            .endProperty            .property LvlVampire actorbase auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::LvlVampire_var            .endProperty            .property DLC1RadiantReward leveleditem auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1RadiantReward_var            .endProperty            .property DLC1VampireFaction faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VampireFaction_var            .endProperty            .property DLC1RadiantHighProfileFactions formlist auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1RadiantHighProfileFactions_var            .endProperty            .property HjaalmarchHoldLocation location auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::HjaalmarchHoldLocation_var            .endProperty            .property CrimeFactionRift faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::CrimeFactionRift_var            .endProperty            .property CrimeFactionHaafingar faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::CrimeFactionHaafingar_var            .endProperty            .property PlayerHasTroll Bool auto                .userFlags 1    ; Flags: 0x00000001                .docString ""                .autoVar ::PlayerHasTroll_var            .endProperty            .property WhiterunHoldLocation location auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::WhiterunHoldLocation_var            .endProperty            .property DLC1dunRedwaterDenWithdrawalStopDay globalvariable auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1dunRedwaterDenWithdrawalStopDay_var            .endProperty            .property HaafingarHoldLocation location auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::HaafingarHoldLocation_var            .endProperty            .property DLC1VampireCastleLocation location auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VampireCastleLocation_var            .endProperty            .property DLC1WENextSpecialAttackDay globalvariable auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1WENextSpecialAttackDay_var            .endProperty            .property DLC1LvlTrollArmoredPlayerFollower actorbase auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1LvlTrollArmoredPlayerFollower_var            .endProperty            .property DLC1VQ08 Quest auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VQ08_var            .endProperty            .property CrimeFactionWhiterun faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::CrimeFactionWhiterun_var            .endProperty            .property DLC1VampireChaliceStopDay globalvariable auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VampireChaliceStopDay_var            .endProperty            .property DLC1dunRedwaterDenPower spell auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1dunRedwaterDenPower_var            .endProperty            .property DLC1IntroCompletedHunter globalvariable auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1IntroCompletedHunter_var            .endProperty            .property DLC1VQ06 Quest auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VQ06_var            .endProperty            .property DLC1VampireTurn dlc1vampireturnscript auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VampireTurn_var            .endProperty            .property DLC1IntroCompletedVampire globalvariable auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1IntroCompletedVampire_var            .endProperty            .property CrimeFactionWinterhold faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::CrimeFactionWinterhold_var            .endProperty            .property CrimeFactionEastmarch faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::CrimeFactionEastmarch_var            .endProperty            .property DLC1BloodPotion potion auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1BloodPotion_var            .endProperty            .property CurrentQuestGiver referencealias auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::CurrentQuestGiver_var            .endProperty            .property ReachHoldLocation location auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::ReachHoldLocation_var            .endProperty            .property Gold001 miscobject auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::Gold001_var            .endProperty            .property DLC1VendorChestSorineJurardRef objectreference auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VendorChestSorineJurardRef_var            .endProperty            .property DLC1VQ02 Quest auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1VQ02_var            .endProperty            .property TrollFollower referencealias auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::TrollFollower_var            .endProperty            .property CrimeFactionPale faction auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::CrimeFactionPale_var            .endProperty            .property DLC1BloodChaliceActivatorEmptyRef objectreference auto                .userFlags 0    ; Flags: 0x00000000                .docString ""                .autoVar ::DLC1BloodChaliceActivatorEmptyRef_var            .endProperty        .endPropertyTable        .stateTable            .state                .function IsActorInFactionInFormlist                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return Bool                    .paramTable                        .param ActorToCheck actor                        .param FormlistToCheck formlist                    .endParamTable                    .localTable                        .local ::temp31 Int                        .local ::temp32 Bool                        .local count Int                        .local maxSize Int                        .local currentFaction faction                        .local ::temp33 form                        .local ::temp34 faction                        .local ::temp35 Bool                    .endLocalTable                    .code                        Assign count 0										   ;@line 278                        CallMethod GetSize FormlistToCheck ::temp31			  ;@line 279                        Assign maxSize ::temp31								  ;@line 279                    _label3:                        CompareLT ::temp32 count maxSize						 ;@line 283                        JumpF ::temp32 _label0								   ;@line 283                        CallMethod GetAt FormlistToCheck ::temp33 count		  ;@line 284                        Cast ::temp34 ::temp33								   ;@line 284                        Assign currentFaction ::temp34						   ;@line 284                        Cast ::temp35 currentFaction							 ;@line 285                        JumpF ::temp35 _label1								   ;@line 285                        CallMethod IsInFaction ActorToCheck ::temp35 currentFaction  ;@line 285                        Cast ::temp35 ::temp35								   ;@line 285                    _label1:                        JumpF ::temp35 _label2								   ;@line 285                        Return True											  ;@line 286                        Jump _label2											 ;@line 286                    _label2:                        IAdd ::temp31 count 1								    ;@line 288                        Assign count ::temp31								    ;@line 288                        Jump _label3											 ;@line 288                    _label0:                        Return False											 ;@line 291                    .endCode                .endFunction                .function AddActorToCrimeFactionForCurrentLocation                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return Bool                    .paramTable                        .param ActorToAddCrimeFactionTo actor                    .endParamTable                    .localTable                        .local ::temp110 String                        .local ::temp111 String                        .local ::NoneVar None                        .local ::temp112 faction                        .local ReturnVal Bool                        .local crimeFaction faction                    .endLocalTable                    .code                        Cast ::temp110 self									  ;@line 619                        StrCat ::temp110 ::temp110 "AddActorToCrimeFactionForCurrentLocation("  ;@line 619                        Cast ::temp111 ActorToAddCrimeFactionTo				  ;@line 619                        StrCat ::temp111 ::temp110 ::temp111					 ;@line 619                        StrCat ::temp110 ::temp111 ")"						   ;@line 619                        CallStatic debug Trace ::NoneVar ::temp110 0			 ;@line 619                        CallMethod GetCrimeFactionForActorsCurrentLocation self ::temp112 ActorToAddCrimeFactionTo  ;@line 623                        Assign crimeFaction ::temp112						    ;@line 623                        JumpF crimeFaction _label4							   ;@line 625                        CallMethod SetCrimeFaction ActorToAddCrimeFactionTo ::NoneVar crimeFaction  ;@line 626                        Assign ReturnVal True								    ;@line 627                        Jump _label5											 ;@line 627                    _label4:                        Assign ReturnVal False								   ;@line 629                    _label5:                        Cast ::temp111 self									  ;@line 632                        StrCat ::temp110 ::temp111 "AddActorToCrimeFactionForCurrentLocation("  ;@line 632                        Cast ::temp111 ActorToAddCrimeFactionTo				  ;@line 632                        StrCat ::temp111 ::temp110 ::temp111					 ;@line 632                        StrCat ::temp110 ::temp111 ") adding to crime faction: "  ;@line 632                        Cast ::temp111 crimeFaction							  ;@line 632                        StrCat ::temp111 ::temp110 ::temp111					 ;@line 632                        CallStatic debug Trace ::NoneVar ::temp111 0			 ;@line 632                        Return ReturnVal										 ;@line 634                    .endCode                .endFunction                .function AddAliasToCrimeFactionForCurrentLocation                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return Bool                    .paramTable                        .param AliasToAddCrimeFactionTo referencealias                    .endParamTable                    .localTable                        .local ::temp113 String                        .local ::temp114 String                        .local ::NoneVar None                        .local ::temp115 actor                        .local ::temp116 Bool                        .local ReturnVal Bool                    .endLocalTable                    .code                        Cast ::temp113 self									  ;@line 638                        StrCat ::temp113 ::temp113 "AddAliasToCrimeFactionForCurrentLocation("  ;@line 638                        Cast ::temp114 AliasToAddCrimeFactionTo				  ;@line 638                        StrCat ::temp114 ::temp113 ::temp114					 ;@line 638                        StrCat ::temp113 ::temp114 ")"						   ;@line 638                        CallStatic debug Trace ::NoneVar ::temp113 0			 ;@line 638                        CallMethod GetActorReference AliasToAddCrimeFactionTo ::temp115  ;@line 640                        CallMethod AddActorToCrimeFactionForCurrentLocation self ::temp116 ::temp115  ;@line 640                        Assign ReturnVal ::temp116							   ;@line 640                        Return ReturnVal										 ;@line 642                    .endCode                .endFunction                .function ChaliceFilled                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::temp78 String                        .local ::NoneVar None                    .endLocalTable                    .code                        Cast ::temp78 self									   ;@line 442                        StrCat ::temp78 ::temp78 "ChaliceFilled()"			   ;@line 442                        CallStatic debug Trace ::NoneVar ::temp78 0			  ;@line 442                        CallMethod disable ::DLC1BloodChaliceActivatorEmptyRef_var ::NoneVar False  ;@line 443                        CallMethod enable ::DLC1BloodChaliceActivatorFullRef_var ::NoneVar False  ;@line 444                    .endCode                .endFunction                .function ChalicePowerUp                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::temp79 Float                        .local ::temp80 Int                        .local ::temp81 Bool                        .local ::temp83 String                        .local ::temp84 actor                        .local NewLevel Int                        .local ::temp82 String                        .local ::NoneVar None                    .endLocalTable                    .code                        CallMethod GetValue ::DLC1VampireChaliceLevel_var ::temp79  ;@line 449                        Cast ::temp80 ::temp79								   ;@line 449                        IAdd ::temp80 ::temp80 1								 ;@line 449                        Assign NewLevel ::temp80								 ;@line 449                        CompareGT ::temp81 NewLevel 4						    ;@line 451                        JumpF ::temp81 _label6								   ;@line 451                        Cast ::temp82 self									   ;@line 452                        StrCat ::temp82 ::temp82 "ChalicePowerUp() NewLevel > 4, clamping down to 4"  ;@line 452                        CallStatic debug Trace ::NoneVar ::temp82 0			  ;@line 452                        Assign NewLevel 4									    ;@line 453                        Jump _label6											 ;@line 453                    _label6:                        Cast ::temp82 self									   ;@line 456                        StrCat ::temp82 ::temp82 "ChalicePowerUp() current DLC1VampireChaliceLevel NewLevel:"  ;@line 456                        Cast ::temp83 NewLevel								   ;@line 456                        StrCat ::temp83 ::temp82 ::temp83					    ;@line 456                        CallStatic debug Trace ::NoneVar ::temp83 0			  ;@line 456                        CallStatic game GetPlayer ::temp84					   ;@line 458                        CallMethod RemoveSpell ::temp84 ::temp81 ::DLC1VampireChalicePower_var  ;@line 458                        Cast ::temp79 NewLevel								   ;@line 460                        CallMethod SetValue ::DLC1VampireChaliceLevel_var ::NoneVar ::temp79  ;@line 460                    .endCode                .endFunction                .function ChaliceRemoved                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::temp77 String                        .local ::NoneVar None                    .endLocalTable                    .code                        Cast ::temp77 self									   ;@line 435                        StrCat ::temp77 ::temp77 "ChaliceRemoved()"			  ;@line 435                        CallStatic debug Trace ::NoneVar ::temp77 0			  ;@line 435                        CallMethod disable ::DLC1BloodChaliceActivatorEmptyRef_var ::NoneVar False  ;@line 436                        CallMethod disable ::DLC1BloodChaliceActivatorFullRef_var ::NoneVar False  ;@line 437                    .endCode                .endFunction                .function CreateQuest                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param QuestType Int                    .endParamTable                    .localTable                        .local ::temp16 Bool                        .local ::temp17 Bool                        .local ::temp20 Float                        .local ::temp21 Float                        .local ::temp22 Bool                        .local ::temp18 String                        .local ::temp19 String                        .local ::NoneVar None                        .local ::temp23 location                        .local ::temp24 objectreference                        .local ::temp25 objectreference                    .endLocalTable                    .code                        CompareGT ::temp16 ::QuestState_var 0				    ;@line 182                        Cast ::temp16 ::temp16								   ;@line 182                        JumpF ::temp16 _label7								   ;@line 182                        CompareEQ ::temp17 QuestType 3						   ;@line 182                        Not ::temp17 ::temp17								    ;@line 182                        Cast ::temp16 ::temp17								   ;@line 182                    _label7:                        JumpF ::temp16 _label8								   ;@line 182                        Cast ::temp18 self									   ;@line 183                        StrCat ::temp18 ::temp18 "CreateQuest() Not starting quest, because QuestState["  ;@line 183                        Cast ::temp19 ::QuestState_var						   ;@line 183                        StrCat ::temp19 ::temp18 ::temp19					    ;@line 183                        StrCat ::temp18 ::temp19 "] > 0 meaning a radiant quest is already starting or running."  ;@line 183                        CallStatic debug Trace ::NoneVar ::temp18 0			  ;@line 183                        Return None											  ;@line 184                        Jump _label9											 ;@line 184                    _label8:                        CompareEQ ::temp17 QuestType 1						   ;@line 186                        Cast ::temp17 ::temp17								   ;@line 186                        JumpF ::temp17 _label10								  ;@line 186                        CallMethod GetValue ::DLC1IntroCompletedHunter_var ::temp20  ;@line 186                        Cast ::temp21 1										  ;@line 186                        CompareEQ ::temp22 ::temp20 ::temp21					 ;@line 186                        Not ::temp22 ::temp22								    ;@line 186                        Cast ::temp17 ::temp22								   ;@line 186                    _label10:                        JumpF ::temp17 _label11								  ;@line 186                        Cast ::temp19 self									   ;@line 187                        StrCat ::temp18 ::temp19 "CreateQuest() will not start a Hunter quest because DLC1IntroCompletedHunter global != 1"  ;@line 187                        CallStatic debug Trace ::NoneVar ::temp18 0			  ;@line 187                        Return None											  ;@line 188                        Jump _label9											 ;@line 188                    _label11:                        CompareEQ ::temp22 QuestType 2						   ;@line 190                        Cast ::temp22 ::temp22								   ;@line 190                        JumpF ::temp22 _label12								  ;@line 190                        CallMethod GetValue ::DLC1IntroCompletedVampire_var ::temp21  ;@line 190                        Cast ::temp20 1										  ;@line 190                        CompareEQ ::temp17 ::temp21 ::temp20					 ;@line 190                        Not ::temp17 ::temp17								    ;@line 190                        Cast ::temp22 ::temp17								   ;@line 190                    _label12:                        JumpF ::temp22 _label13								  ;@line 190                        Cast ::temp19 self									   ;@line 191                        StrCat ::temp18 ::temp19 "CreateQuest() will not start a Hunter quest because DLC1IntroCompletedVampire global != 1"  ;@line 191                        CallStatic debug Trace ::NoneVar ::temp18 0			  ;@line 191                        Return None											  ;@line 192                        Jump _label9											 ;@line 192                    _label13:                        CompareEQ ::temp17 QuestType 3						   ;@line 194                        Cast ::temp17 ::temp17								   ;@line 194                        JumpF ::temp17 _label14								  ;@line 194                        CallMethod GetValue ::DLC1IntroCompletedHunter_var ::temp20  ;@line 194                        Cast ::temp21 1										  ;@line 194                        CompareEQ ::temp22 ::temp20 ::temp21					 ;@line 194                        Not ::temp22 ::temp22								    ;@line 194                        Cast ::temp17 ::temp22								   ;@line 194                    _label14:                        JumpF ::temp17 _label9								   ;@line 194                        Cast ::temp19 self									   ;@line 195                        StrCat ::temp18 ::temp19 "CreateQuest() will not start a HunterTech quest because DLC1IntroCompletedHunter global != 1"  ;@line 195                        CallStatic debug Trace ::NoneVar ::temp18 0			  ;@line 195                        Return None											  ;@line 196                        Jump _label9											 ;@line 196                    _label9:                        CompareEQ ::temp22 QuestType 3						   ;@line 200                        Not ::temp22 ::temp22								    ;@line 200                        JumpF ::temp22 _label15								  ;@line 200                        Assign ::QuestState_var 1							    ;@line 201                        Jump _label15										    ;@line 201                    _label15:                        CompareEQ ::temp17 QuestType 1						   ;@line 205                        JumpF ::temp17 _label16								  ;@line 205                        Cast ::temp19 self									   ;@line 207                        StrCat ::temp18 ::temp19 "CreateQuest() calling DLC1RadiantHunterStart.SendStoryEvent() to create a hunter radiant quest"  ;@line 207                        CallStatic debug Trace ::NoneVar ::temp18 0			  ;@line 207                        Cast ::temp23 None									   ;@line 208                        Cast ::temp24 None									   ;@line 208                        Cast ::temp25 None									   ;@line 208                        CallMethod SendStoryEventAndWait ::DLC1RadiantHunterStart_var ::temp16 ::temp23 ::temp24 ::temp25 0 0  ;@line 208                        JumpF ::temp16 _label17								  ;@line 208                        Cast ::temp19 self									   ;@line 209                        StrCat ::temp18 ::temp19 "CreateQuest() SUCCESS!"	    ;@line 209                        CallStatic debug Trace ::NoneVar ::temp18 0			  ;@line 209                        Assign ::QuestState_var 1							    ;@line 210                        Jump _label18										    ;@line 210                    _label17:                        Cast ::temp19 self									   ;@line 212                        StrCat ::temp18 ::temp19 "CreateQuest() FAILED TO START A QUEST!"  ;@line 212                        CallStatic debug Trace ::NoneVar ::temp18 2			  ;@line 212                        Assign ::QuestState_var 0							    ;@line 213                    _label18:                        Jump _label19										    ;@line 213                    _label16:                        CompareEQ ::temp22 QuestType 2						   ;@line 216                        JumpF ::temp22 _label20								  ;@line 216                        Cast ::temp19 self									   ;@line 218                        StrCat ::temp18 ::temp19 "calling DLC1RadiantVampireStart.SendStoryEvent() to create a vampire radiant quest"  ;@line 218                        CallStatic debug Trace ::NoneVar ::temp18 0			  ;@line 218                        Cast ::temp23 None									   ;@line 219                        Cast ::temp24 None									   ;@line 219                        Cast ::temp25 None									   ;@line 219                        CallMethod SendStoryEventAndWait ::DLC1RadiantVampireStart_var ::temp16 ::temp23 ::temp24 ::temp25 0 0  ;@line 219                        JumpF ::temp16 _label21								  ;@line 219                        Cast ::temp19 self									   ;@line 220                        StrCat ::temp18 ::temp19 "CreateQuest() SUCCESS!"	    ;@line 220                        CallStatic debug Trace ::NoneVar ::temp18 0			  ;@line 220                        Assign ::QuestState_var 1							    ;@line 221                        Jump _label22										    ;@line 221                    _label21:                        Cast ::temp19 self									   ;@line 223                        StrCat ::temp18 ::temp19 "CreateQuest() FAILED TO START A QUEST!"  ;@line 223                        CallStatic debug Trace ::NoneVar ::temp18 2			  ;@line 223                        Assign ::QuestState_var 0							    ;@line 224                    _label22:                        Jump _label19										    ;@line 224                    _label20:                        CompareEQ ::temp16 QuestType 3						   ;@line 227                        JumpF ::temp16 _label19								  ;@line 227                        Cast ::temp19 self									   ;@line 229                        StrCat ::temp18 ::temp19 "CreateQuest() calling DLC1RadiantHunterTechStart.SendStoryEvent() to create a hunter radiant quest"  ;@line 229                        CallStatic debug Trace ::NoneVar ::temp18 0			  ;@line 229                        Cast ::temp23 None									   ;@line 230                        Cast ::temp24 None									   ;@line 230                        Cast ::temp25 None									   ;@line 230                        CallMethod SendStoryEventAndWait ::DLC1RadiantHunterTechStart_var ::temp22 ::temp23 ::temp24 ::temp25 0 0  ;@line 230                        JumpF ::temp22 _label23								  ;@line 230                        Cast ::temp19 self									   ;@line 231                        StrCat ::temp18 ::temp19 "CreateQuest() SUCCESS!"	    ;@line 231                        CallStatic debug Trace ::NoneVar ::temp18 0			  ;@line 231                        Jump _label24										    ;@line 231                    _label23:                        Cast ::temp19 self									   ;@line 234                        StrCat ::temp18 ::temp19 "CreateQuest() FAILED TO START A QUEST!"  ;@line 234                        CallStatic debug Trace ::NoneVar ::temp18 2			  ;@line 234                    _label24:                        Jump _label19										    ;@line 234                    _label19:                    .endCode                .endFunction                .function StopQuestAndStartNewOne                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param CallingQuest Quest                        .param QuestType Int                    .endParamTable                    .localTable                        .local ::temp26 String                        .local ::temp27 String                        .local ::NoneVar None                        .local ::temp28 Bool                        .local waitingFor Int                        .local ::temp29 Float                        .local ::temp30 Int                    .endLocalTable                    .code                        Cast ::temp26 self									   ;@line 244                        StrCat ::temp26 ::temp26 "StopQuestAndStartNewOne() will call stop() on "  ;@line 244                        Cast ::temp27 CallingQuest							   ;@line 244                        StrCat ::temp27 ::temp26 ::temp27					    ;@line 244                        CallStatic debug Trace ::NoneVar ::temp27 0			  ;@line 244                        CallMethod Stop CallingQuest ::NoneVar				   ;@line 245                    _label26:                        CallMethod IsStopped CallingQuest ::temp28			   ;@line 249                        CompareEQ ::temp28 ::temp28 False					    ;@line 249                        JumpF ::temp28 _label25								  ;@line 249                        Cast ::temp29 1										  ;@line 250                        CallStatic utility wait ::NoneVar ::temp29			   ;@line 250                        IAdd ::temp30 waitingFor 1							   ;@line 251                        Assign waitingFor ::temp30							   ;@line 251                        Cast ::temp26 self									   ;@line 252                        StrCat ::temp27 ::temp26 "StopQuestAndStartNewOne waiting for CallingQuest[ "  ;@line 252                        Cast ::temp26 CallingQuest							   ;@line 252                        StrCat ::temp26 ::temp27 ::temp26					    ;@line 252                        StrCat ::temp27 ::temp26 "] to stop before starting new one. WaitingFor: "  ;@line 252                        Cast ::temp26 waitingFor								 ;@line 252                        StrCat ::temp26 ::temp27 ::temp26					    ;@line 252                        CallStatic debug Trace ::NoneVar ::temp26 0			  ;@line 252                        Jump _label26										    ;@line 252                    _label25:                        Cast ::temp27 self									   ;@line 255                        StrCat ::temp26 ::temp27 "StopQuestAndStartNewOne() calling CreateQuest()"  ;@line 255                        CallStatic debug Trace ::NoneVar ::temp26 0			  ;@line 255                        CompareEQ ::temp28 QuestType 3						   ;@line 257                        Not ::temp28 ::temp28								    ;@line 257                        JumpF ::temp28 _label27								  ;@line 257                        Assign ::QuestState_var 0							    ;@line 258                        Jump _label27										    ;@line 258                    _label27:                        CallMethod CreateQuest self ::NoneVar QuestType		  ;@line 261                    .endCode                .endFunction                .function RemoveRedwaterDenEffects                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param today Float                    .endParamTable                    .localTable                        .local ::temp92 actor                        .local ::temp93 form                        .local ::temp94 Bool                        .local ::temp95 Bool                        .local ::temp96 Float                        .local ::NoneVar None                    .endLocalTable                    .code                        CallStatic game GetPlayer ::temp92					   ;@line 503                        Cast ::temp93 ::DLC1dunRedwaterDenPower_var			  ;@line 503                        CallMethod HasSpell ::temp92 ::temp94 ::temp93		   ;@line 503                        JumpF ::temp94 _label28								  ;@line 503                        CallStatic game GetPlayer ::temp92					   ;@line 504                        CallMethod RemoveSpell ::temp92 ::temp95 ::DLC1dunRedwaterDenPower_var  ;@line 504                        Cast ::temp96 1										  ;@line 505                        FSubtract ::temp96 today ::temp96					    ;@line 505                        CallMethod SetValue ::DLC1dunRedwaterDenPowerStopDay_var ::NoneVar ::temp96  ;@line 505                        Jump _label28										    ;@line 505                    _label28:                        CallStatic game GetPlayer ::temp92					   ;@line 508                        Cast ::temp93 ::DLC1dunRedwaterDenWithdrawl_var		  ;@line 508                        CallMethod HasSpell ::temp92 ::temp95 ::temp93		   ;@line 508                        JumpF ::temp95 _label29								  ;@line 508                        CallStatic game GetPlayer ::temp92					   ;@line 509                        CallMethod RemoveSpell ::temp92 ::temp94 ::DLC1dunRedwaterDenWithdrawl_var  ;@line 509                        Cast ::temp96 1										  ;@line 510                        FSubtract ::temp96 today ::temp96					    ;@line 510                        CallMethod SetValue ::DLC1dunRedwaterDenWithdrawalStopDay_var ::NoneVar ::temp96  ;@line 510                        Jump _label29										    ;@line 510                    _label29:                    .endCode                .endFunction                .function CreateQuestHunterTech                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::temp8 String                        .local ::NoneVar None                    .endLocalTable                    .code                        Cast ::temp8 self									    ;@line 158                        StrCat ::temp8 ::temp8 "CreateQuestHunterTech()"		 ;@line 158                        CallStatic debug Trace ::NoneVar ::temp8 0			   ;@line 158                        CallMethod CreateQuest self ::NoneVar 3				  ;@line 159                    .endCode                .endFunction                .function TrollAbandoned                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param Troll actor                    .endParamTable                    .localTable                        .local ::temp64 String                        .local ::NoneVar None                        .local ::temp65 globalvariable                        .local ::temp66 Float                        .local ::temp67 Int                    .endLocalTable                    .code                        Cast ::temp64 self									   ;@line 397                        StrCat ::temp64 ::temp64 "TrollAbandoned()"			  ;@line 397                        CallStatic debug Trace ::NoneVar ::temp64 0			  ;@line 397                        Assign ::PlayerHasTroll_var False					    ;@line 398                        CallMethod Clear ::TrollFollower_var ::NoneVar		   ;@line 399                        PropGet pPlayerAnimalCount ::DialogueFollower_var ::temp65  ;@line 400                        Cast ::temp66 0										  ;@line 400                        CallMethod SetValue ::temp65 ::NoneVar ::temp66		  ;@line 400                        CallMethod Delete Troll ::NoneVar					    ;@line 401                        CallMethod Show ::DLC1TrollFollowerDismissedMsg_var ::temp67 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000  ;@line 403                    .endCode                .endFunction                .function CreateDisguisedVampire                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param AliasToForceInto referencealias                        .param AliasToCreateAt referencealias                        .param isInitiallyDisabled Bool                    .endParamTable                    .localTable                        .local ::NoneVar None                    .endLocalTable                    .code                        CallMethod CreateDisguisedActorAndForceIntoAlias self ::NoneVar AliasToForceInto AliasToCreateAt 2 isInitiallyDisabled  ;@line 708                    .endCode                .endFunction                .function CreateDisguisedHunter                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param AliasToForceInto referencealias                        .param AliasToCreateAt referencealias                        .param isInitiallyDisabled Bool                    .endParamTable                    .localTable                        .local ::NoneVar None                    .endLocalTable                    .code                        CallMethod CreateDisguisedActorAndForceIntoAlias self ::NoneVar AliasToForceInto AliasToCreateAt 1 isInitiallyDisabled  ;@line 703                    .endCode                .endFunction                .function CreateQuestVampire                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::temp7 String                        .local ::NoneVar None                    .endLocalTable                    .code                        Cast ::temp7 self									    ;@line 153                        StrCat ::temp7 ::temp7 "CreateQuestVampire()"		    ;@line 153                        CallStatic debug Trace ::NoneVar ::temp7 0			   ;@line 153                        CallMethod CreateQuest self ::NoneVar 2				  ;@line 154                    .endCode                .endFunction                .function EnableDwarvenTech                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param DwarvenTechItem DLC1RH05DwarvenTechScript                    .endParamTable                    .localTable                        .local ::temp45 globalvariable                        .local ::temp46 String                        .local ::temp47 String                        .local ::NoneVar None                        .local ::temp48 Float                        .local myGlobal globalvariable                    .endLocalTable                    .code                        PropGet myGlobal DwarvenTechItem ::temp45			    ;@line 351                        Assign myGlobal ::temp45								 ;@line 351                        Cast ::temp46 self									   ;@line 353                        StrCat ::temp46 ::temp46 "EnableDwarvenTech(["		   ;@line 353                        Cast ::temp47 DwarvenTechItem						    ;@line 353                        StrCat ::temp47 ::temp46 ::temp47					    ;@line 353                        StrCat ::temp46 ::temp47 "]) setting myGlobal["		  ;@line 353                        Cast ::temp47 myGlobal								   ;@line 353                        StrCat ::temp47 ::temp46 ::temp47					    ;@line 353                        StrCat ::temp46 ::temp47 "] to 0 and resetting DLC1VendorChestSorineJurardRef"  ;@line 353                        CallStatic debug Trace ::NoneVar ::temp46 0			  ;@line 353                        Cast ::temp48 0										  ;@line 354                        CallMethod SetValue myGlobal ::NoneVar ::temp48		  ;@line 354                        CallMethod Reset ::DLC1VendorChestSorineJurardRef_var ::NoneVar None  ;@line 355                    .endCode                .endFunction                .function CreateQuestHunter                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::temp6 String                        .local ::NoneVar None                    .endLocalTable                    .code                        Cast ::temp6 self									    ;@line 148                        StrCat ::temp6 ::temp6 "CreateQuestHunter()"			 ;@line 148                        CallStatic debug Trace ::NoneVar ::temp6 0			   ;@line 148                        CallMethod CreateQuest self ::NoneVar 1				  ;@line 149                    .endCode                .endFunction                .function GetCrimeFactionForHoldLocation                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return faction                    .paramTable                        .param HoldLocation location                    .endParamTable                    .localTable                        .local ::temp97 Bool                        .local ::temp98 Bool                        .local FactionToReturn faction                    .endLocalTable                    .code                        CompareEQ ::temp97 HoldLocation ::EastmarchHoldLocation_var  ;@line 520                        JumpF ::temp97 _label30								  ;@line 520                        Assign FactionToReturn ::CrimeFactionEastmarch_var	   ;@line 521                        Jump _label31										    ;@line 521                    _label30:                        CompareEQ ::temp98 HoldLocation ::FalkreathHoldLocation_var  ;@line 523                        JumpF ::temp98 _label32								  ;@line 523                        Assign FactionToReturn ::CrimeFactionFalkreath_var	   ;@line 524                        Jump _label31										    ;@line 524                    _label32:                        CompareEQ ::temp98 HoldLocation ::HaafingarHoldLocation_var  ;@line 526                        JumpF ::temp98 _label33								  ;@line 526                        Assign FactionToReturn ::CrimeFactionHaafingar_var	   ;@line 527                        Jump _label31										    ;@line 527                    _label33:                        CompareEQ ::temp98 HoldLocation ::HjaalmarchHoldLocation_var  ;@line 529                        JumpF ::temp98 _label34								  ;@line 529                        Assign FactionToReturn ::CrimeFactionHjaalmarch_var	  ;@line 530                        Jump _label31										    ;@line 530                    _label34:                        CompareEQ ::temp98 HoldLocation ::PaleHoldLocation_var   ;@line 532                        JumpF ::temp98 _label35								  ;@line 532                        Assign FactionToReturn ::CrimeFactionPale_var		    ;@line 533                        Jump _label31										    ;@line 533                    _label35:                        CompareEQ ::temp98 HoldLocation ::ReachHoldLocation_var  ;@line 535                        JumpF ::temp98 _label36								  ;@line 535                        Assign FactionToReturn ::CrimeFactionReach_var		   ;@line 536                        Jump _label31										    ;@line 536                    _label36:                        CompareEQ ::temp98 HoldLocation ::RiftHoldLocation_var   ;@line 538                        JumpF ::temp98 _label37								  ;@line 538                        Assign FactionToReturn ::CrimeFactionRift_var		    ;@line 539                        Jump _label31										    ;@line 539                    _label37:                        CompareEQ ::temp98 HoldLocation ::WhiterunHoldLocation_var  ;@line 541                        JumpF ::temp98 _label38								  ;@line 541                        Assign FactionToReturn ::CrimeFactionWhiterun_var	    ;@line 542                        Jump _label31										    ;@line 542                    _label38:                        CompareEQ ::temp98 HoldLocation ::WinterholdHoldLocation_var  ;@line 544                        JumpF ::temp98 _label31								  ;@line 544                        Assign FactionToReturn ::CrimeFactionWinterhold_var	  ;@line 545                        Jump _label31										    ;@line 545                    _label31:                        Return FactionToReturn								   ;@line 549                    .endCode                .endFunction                .function TurnOffQuestGiverObjective                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::NoneVar None                    .endLocalTable                    .code                        CallMethod SetObjectiveDisplayed self ::NoneVar 10 False False  ;@line 330                    .endCode                .endFunction                .function IntroQuestCompleted                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param isHunterQuest Bool                        .param isVampireQuest Bool                    .endParamTable                    .localTable                        .local ::temp2 actor                        .local ::temp3 String                        .local ::temp4 String                        .local ::temp5 Float                        .local GlobalToSet globalvariable                        .local QuestType Int                        .local PlayerRef actor                        .local ::NoneVar None                    .endLocalTable                    .code                        CallStatic game GetPlayer ::temp2					    ;@line 123                        Assign PlayerRef ::temp2								 ;@line 123                        JumpF isHunterQuest _label39							 ;@line 125                        Assign GlobalToSet ::DLC1IntroCompletedHunter_var	    ;@line 126                        CallMethod AddToFaction PlayerRef ::NoneVar ::DLC1HunterFaction_var  ;@line 127                        Assign QuestType 1									   ;@line 128                        Jump _label40										    ;@line 128                    _label39:                        JumpF isVampireQuest _label40						    ;@line 129                        Assign GlobalToSet ::DLC1IntroCompletedVampire_var	   ;@line 130                        CallMethod AddToFaction PlayerRef ::NoneVar ::DLC1VampireFaction_var  ;@line 131                        Assign QuestType 2									   ;@line 132                        Jump _label40										    ;@line 132                    _label40:                        Cast ::temp3 self									    ;@line 135                        StrCat ::temp3 ::temp3 "IntroQuestCompleted() setting global "  ;@line 135                        Cast ::temp4 GlobalToSet								 ;@line 135                        StrCat ::temp4 ::temp3 ::temp4						   ;@line 135                        StrCat ::temp3 ::temp4 " to 1, and will call CreateQuest("  ;@line 135                        Cast ::temp4 QuestType								   ;@line 135                        StrCat ::temp4 ::temp3 ::temp4						   ;@line 135                        StrCat ::temp3 ::temp4 ")"							   ;@line 135                        CallStatic debug Trace ::NoneVar ::temp3 0			   ;@line 135                        Cast ::temp5 1										   ;@line 136                        CallMethod SetValue GlobalToSet ::NoneVar ::temp5	    ;@line 136                        CallMethod CreateQuest self ::NoneVar QuestType		  ;@line 137                        JumpF isHunterQuest _label41							 ;@line 140                        Cast ::temp4 self									    ;@line 141                        StrCat ::temp3 ::temp4 "IntroQuestCompleted() calling CreateQuestHunterTech()"  ;@line 141                        CallStatic debug Trace ::NoneVar ::temp3 0			   ;@line 141                        CallMethod CreateQuestHunterTech self ::NoneVar		  ;@line 142                        Jump _label41										    ;@line 142                    _label41:                    .endCode                .endFunction                .function ChaliceDrink                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::temp85 Float                        .local ::NoneVar None                        .local ::temp86 Bool                        .local ::temp87 Bool                        .local ::temp88 String                        .local ::temp89 String                        .local ::temp90 Int                        .local ::temp91 actor                        .local today Float                        .local chaliceLevel Float                        .local daysToHavePower Int                    .endLocalTable                    .code                        CallMethod GetValue ::GameDaysPassed_var ::temp85	    ;@line 465                        Assign today ::temp85								    ;@line 465                        CallMethod GetValue ::DLC1VampireChaliceLevel_var ::temp85  ;@line 466                        Assign chaliceLevel ::temp85							 ;@line 466                        CallMethod RemoveRedwaterDenEffects self ::NoneVar today  ;@line 469                        Cast ::temp85 0										  ;@line 471                        CompareEQ ::temp86 chaliceLevel ::temp85				 ;@line 471                        JumpF ::temp86 _label42								  ;@line 471                        Assign daysToHavePower 1								 ;@line 472                        Jump _label43										    ;@line 472                    _label42:                        Cast ::temp85 1										  ;@line 474                        CompareEQ ::temp87 chaliceLevel ::temp85				 ;@line 474                        JumpF ::temp87 _label44								  ;@line 474                        Assign daysToHavePower 3								 ;@line 475                        Jump _label43										    ;@line 475                    _label44:                        Cast ::temp85 2										  ;@line 477                        CompareEQ ::temp87 chaliceLevel ::temp85				 ;@line 477                        JumpF ::temp87 _label45								  ;@line 477                        Assign daysToHavePower 5								 ;@line 478                        Jump _label43										    ;@line 478                    _label45:                        Cast ::temp85 3										  ;@line 480                        CompareEQ ::temp87 chaliceLevel ::temp85				 ;@line 480                        JumpF ::temp87 _label46								  ;@line 480                        Assign daysToHavePower 7								 ;@line 481                        Jump _label43										    ;@line 481                    _label46:                        Assign daysToHavePower 9								 ;@line 484                    _label43:                        Cast ::temp85 daysToHavePower						    ;@line 489                        FAdd ::temp85 today ::temp85							 ;@line 489                        Assign ChaliceStopDay ::temp85						   ;@line 489                        Cast ::temp88 self									   ;@line 491                        StrCat ::temp88 ::temp88 "ChaliceDrink() setting DLC1VampireChaliceStopDay to "  ;@line 491                        Cast ::temp89 ChaliceStopDay							 ;@line 491                        StrCat ::temp89 ::temp88 ::temp89					    ;@line 491                        CallStatic debug Trace ::NoneVar ::temp89 0			  ;@line 491                        CallMethod SetValue ::DLC1VampireChaliceStopDay_var ::NoneVar ChaliceStopDay  ;@line 492                        IMultiply ::temp90 24 daysToHavePower				    ;@line 494                        Cast ::temp85 ::temp90								   ;@line 494                        CallMethod RegisterForSingleUpdateGameTime self ::NoneVar ::temp85  ;@line 494                        CallStatic game GetPlayer ::temp91					   ;@line 496                        CallMethod HasKeyword ::temp91 ::temp87 ::Vampire_var    ;@line 496                        JumpF ::temp87 _label47								  ;@line 496                        CallStatic game GetPlayer ::temp91					   ;@line 497                        CallMethod AddSpell ::temp91 ::temp86 ::DLC1VampireChalicePower_var True  ;@line 497                        Jump _label47										    ;@line 497                    _label47:                    .endCode                .endFunction                .function QuestGiverObjective                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param ReferenceToMakeQuestGiver objectreference                    .endParamTable                    .localTable                        .local ::temp38 String                        .local ::temp39 String                        .local ::NoneVar None                        .local ::temp40 Bool                    .endLocalTable                    .code                        Cast ::temp38 self									   ;@line 304                        StrCat ::temp38 ::temp38 "QuestGiverObjective() ReferenceToMakeQuestGiver == "  ;@line 304                        Cast ::temp39 ReferenceToMakeQuestGiver				  ;@line 304                        StrCat ::temp39 ::temp38 ::temp39					    ;@line 304                        CallStatic debug Trace ::NoneVar ::temp39 0			  ;@line 304                        CompareEQ ::temp40 isQuestAccepted False				 ;@line 306                        JumpF ::temp40 _label48								  ;@line 306                        CallMethod SetObjectiveDisplayed self ::NoneVar 10 False False  ;@line 309                        CallMethod ForceRefTo ::CurrentQuestGiver_var ::NoneVar ReferenceToMakeQuestGiver  ;@line 312                        CallMethod SetObjectiveDisplayed self ::NoneVar 10 True True  ;@line 314                        Jump _label49										    ;@line 314                    _label48:                        Cast ::temp38 self									   ;@line 317                        StrCat ::temp39 ::temp38 "QuestGiverObjective() is not turning on objective because isQuestAccepted == true"  ;@line 317                        CallStatic debug Trace ::NoneVar ::temp39 0			  ;@line 317                    _label49:                    .endCode                .endFunction                .function QuestAccepted                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param QuestThatStarted Quest                    .endParamTable                    .localTable                        .local ::NoneVar None                    .endLocalTable                    .code                        Assign isQuestAccepted True							  ;@line 325                        CallMethod TurnOffQuestGiverObjective self ::NoneVar	 ;@line 326                    .endCode                .endFunction                .function GimpAlias                    .userFlags 0    ; Flags: 0x00000000                    .docString "used to make the preexisting boss in the dungeon easier to deal with because i'm spawning a boss vampire that hangs out with him"                    .return None                    .paramTable                        .param AliasToGimp referencealias                    .endParamTable                    .localTable                        .local ::temp122 actor                        .local ::temp123 Float                        .local ::temp124 String                        .local ::temp125 String                        .local ::NoneVar None                        .local GimpPercentage Float                        .local ActorRef actor                        .local health Float                        .local stamina Float                        .local magicka Float                    .endLocalTable                    .code                        Assign GimpPercentage 0.500000						   ;@line 674                        CallMethod GetActorReference AliasToGimp ::temp122	   ;@line 676                        Assign ActorRef ::temp122							    ;@line 676                        CallMethod GetActorValue ActorRef ::temp123 "health"	 ;@line 678                        Assign health ::temp123								  ;@line 678                        CallMethod GetActorValue ActorRef ::temp123 "stamina"    ;@line 679                        Assign stamina ::temp123								 ;@line 679                        CallMethod GetActorValue ActorRef ::temp123 "magicka"    ;@line 680                        Assign magicka ::temp123								 ;@line 680                        Cast ::temp124 self									  ;@line 682                        StrCat ::temp124 ::temp124 "GimpAlias() starting health, stamina, magicka:"  ;@line 682                        Cast ::temp125 health								    ;@line 682                        StrCat ::temp125 ::temp124 ::temp125					 ;@line 682                        StrCat ::temp124 ::temp125 ","						   ;@line 682                        Cast ::temp125 stamina								   ;@line 682                        StrCat ::temp125 ::temp124 ::temp125					 ;@line 682                        StrCat ::temp124 ::temp125 ", "						  ;@line 682                        Cast ::temp125 magicka								   ;@line 682                        StrCat ::temp125 ::temp124 ::temp125					 ;@line 682                        CallStatic debug Trace ::NoneVar ::temp125 0			 ;@line 682                        FMultiply ::temp123 health GimpPercentage			    ;@line 684                        FSubtract ::temp123 health ::temp123					 ;@line 684                        Assign health ::temp123								  ;@line 684                        FMultiply ::temp123 stamina GimpPercentage			   ;@line 685                        FSubtract ::temp123 stamina ::temp123				    ;@line 685                        Assign stamina ::temp123								 ;@line 685                        FMultiply ::temp123 magicka GimpPercentage			   ;@line 686                        FSubtract ::temp123 magicka ::temp123				    ;@line 686                        Assign magicka ::temp123								 ;@line 686                        FNegate ::temp123 health								 ;@line 689                        CallMethod ModActorValue ActorRef ::NoneVar "health" ::temp123  ;@line 689                        FNegate ::temp123 stamina							    ;@line 690                        CallMethod ModActorValue ActorRef ::NoneVar "stamina" ::temp123  ;@line 690                        FNegate ::temp123 magicka							    ;@line 691                        CallMethod ModActorValue ActorRef ::NoneVar "magicka" ::temp123  ;@line 691                        CallMethod GetActorValue ActorRef ::temp123 "health"	 ;@line 693                        Assign health ::temp123								  ;@line 693                        CallMethod GetActorValue ActorRef ::temp123 "stamina"    ;@line 694                        Assign stamina ::temp123								 ;@line 694                        CallMethod GetActorValue ActorRef ::temp123 "magicka"    ;@line 695                        Assign magicka ::temp123								 ;@line 695                        Cast ::temp124 self									  ;@line 697                        StrCat ::temp125 ::temp124 "GimpAlias() gimped health, stamina, magicka:"  ;@line 697                        Cast ::temp124 health								    ;@line 697                        StrCat ::temp124 ::temp125 ::temp124					 ;@line 697                        StrCat ::temp125 ::temp124 ","						   ;@line 697                        Cast ::temp124 stamina								   ;@line 697                        StrCat ::temp124 ::temp125 ::temp124					 ;@line 697                        StrCat ::temp125 ::temp124 ", "						  ;@line 697                        Cast ::temp124 magicka								   ;@line 697                        StrCat ::temp124 ::temp125 ::temp124					 ;@line 697                        CallStatic debug Trace ::NoneVar ::temp124 0			 ;@line 697                    .endCode                .endFunction                .function TrollFollow                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::temp70 actor                        .local ::temp71 Float                        .local ::NoneVar None                    .endLocalTable                    .code                        CallMethod GetActorReference ::TrollFollower_var ::temp70  ;@line 414                        Cast ::temp71 0										  ;@line 414                        CallMethod SetAv ::temp70 ::NoneVar "WaitingForPlayer" ::temp71  ;@line 414                    .endCode                .endFunction                .function GotoState                    .userFlags 0    ; Flags: 0x00000000                    .docString "Function that switches this object to the specified state"                    .return None                    .paramTable                        .param newState String                    .endParamTable                    .localTable                        .local ::NoneVar None                    .endLocalTable                    .code                        CallMethod onEndState self ::NoneVar					 ;@line ??                        Assign ::State newState								  ;@line ??                        CallMethod onBeginState self ::NoneVar				   ;@line ??                    .endCode                .endFunction                .function GetCurrentHoldLocationForActor                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return location                    .paramTable                        .param ActorToCheck actor                    .endParamTable                    .localTable                        .local ::temp102 Bool                        .local ::temp103 Bool                        .local ::temp104 String                        .local ::temp105 String                        .local ::NoneVar None                        .local LocationToReturn location                    .endLocalTable                    .code                        CallMethod IsActorCurrentlyInLocation self ::temp102 ActorToCheck ::EastmarchHoldLocation_var  ;@line 571                        JumpF ::temp102 _label50								 ;@line 571                        Assign LocationToReturn ::EastmarchHoldLocation_var	  ;@line 572                        Jump _label51										    ;@line 572                    _label50:                        CallMethod IsActorCurrentlyInLocation self ::temp103 ActorToCheck ::FalkreathHoldLocation_var  ;@line 574                        JumpF ::temp103 _label52								 ;@line 574                        Assign LocationToReturn ::FalkreathHoldLocation_var	  ;@line 575                        Jump _label51										    ;@line 575                    _label52:                        CallMethod IsActorCurrentlyInLocation self ::temp103 ActorToCheck ::HaafingarHoldLocation_var  ;@line 577                        JumpF ::temp103 _label53								 ;@line 577                        Assign LocationToReturn ::HaafingarHoldLocation_var	  ;@line 578                        Jump _label51										    ;@line 578                    _label53:                        CallMethod IsActorCurrentlyInLocation self ::temp103 ActorToCheck ::HjaalmarchHoldLocation_var  ;@line 580                        JumpF ::temp103 _label54								 ;@line 580                        Assign LocationToReturn ::HjaalmarchHoldLocation_var	 ;@line 581                        Jump _label51										    ;@line 581                    _label54:                        CallMethod IsActorCurrentlyInLocation self ::temp103 ActorToCheck ::PaleHoldLocation_var  ;@line 583                        JumpF ::temp103 _label55								 ;@line 583                        Assign LocationToReturn ::PaleHoldLocation_var		   ;@line 584                        Jump _label51										    ;@line 584                    _label55:                        CallMethod IsActorCurrentlyInLocation self ::temp103 ActorToCheck ::ReachHoldLocation_var  ;@line 586                        JumpF ::temp103 _label56								 ;@line 586                        Assign LocationToReturn ::ReachHoldLocation_var		  ;@line 587                        Jump _label51										    ;@line 587                    _label56:                        CallMethod IsActorCurrentlyInLocation self ::temp103 ActorToCheck ::RiftHoldLocation_var  ;@line 589                        JumpF ::temp103 _label57								 ;@line 589                        Assign LocationToReturn ::RiftHoldLocation_var		   ;@line 590                        Jump _label51										    ;@line 590                    _label57:                        CallMethod IsActorCurrentlyInLocation self ::temp103 ActorToCheck ::WhiterunHoldLocation_var  ;@line 592                        JumpF ::temp103 _label58								 ;@line 592                        Assign LocationToReturn ::WhiterunHoldLocation_var	   ;@line 593                        Jump _label51										    ;@line 593                    _label58:                        CallMethod IsActorCurrentlyInLocation self ::temp103 ActorToCheck ::WinterholdHoldLocation_var  ;@line 595                        JumpF ::temp103 _label51								 ;@line 595                        Assign LocationToReturn ::WinterholdHoldLocation_var	 ;@line 596                        Jump _label51										    ;@line 596                    _label51:                        Cast ::temp104 self									  ;@line 600                        StrCat ::temp104 ::temp104 "GetCurrentHoldLocationForActor("  ;@line 600                        Cast ::temp105 ActorToCheck							  ;@line 600                        StrCat ::temp105 ::temp104 ::temp105					 ;@line 600                        StrCat ::temp104 ::temp105 ") returning: "			   ;@line 600                        Cast ::temp105 LocationToReturn						  ;@line 600                        StrCat ::temp105 ::temp104 ::temp105					 ;@line 600                        CallStatic debug Trace ::NoneVar ::temp105 0			 ;@line 600                        Return LocationToReturn								  ;@line 602                    .endCode                .endFunction                .function TrollWait                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::temp68 actor                        .local ::temp69 Float                        .local ::NoneVar None                    .endLocalTable                    .code                        CallMethod GetActorReference ::TrollFollower_var ::temp68  ;@line 408                        Cast ::temp69 1										  ;@line 408                        CallMethod SetAv ::temp68 ::NoneVar "WaitingForPlayer" ::temp69  ;@line 408                    .endCode                .endFunction                .function GetCrimeFactionForActorsCurrentLocation                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return faction                    .paramTable                        .param ActorToCheck actor                    .endParamTable                    .localTable                        .local ::temp106 String                        .local ::temp107 String                        .local ::NoneVar None                        .local ::temp108 location                        .local ::temp109 faction                        .local CurrentHoldLocation location                        .local FactionToReturn faction                    .endLocalTable                    .code                        Cast ::temp106 self									  ;@line 607                        StrCat ::temp106 ::temp106 "GetCrimeFactionForActorsCurrentLocation("  ;@line 607                        Cast ::temp107 ActorToCheck							  ;@line 607                        StrCat ::temp107 ::temp106 ::temp107					 ;@line 607                        StrCat ::temp106 ::temp107 ")"						   ;@line 607                        CallStatic debug Trace ::NoneVar ::temp106 0			 ;@line 607                        CallMethod GetCurrentHoldLocationForActor self ::temp108 ActorToCheck  ;@line 609                        Assign CurrentHoldLocation ::temp108					 ;@line 609                        CallMethod GetCrimeFactionForHoldLocation self ::temp109 CurrentHoldLocation  ;@line 610                        Assign FactionToReturn ::temp109						 ;@line 610                        Cast ::temp107 self									  ;@line 612                        StrCat ::temp106 ::temp107 "GetCrimeFactionForActorsCurrentLocation("  ;@line 612                        Cast ::temp107 ActorToCheck							  ;@line 612                        StrCat ::temp107 ::temp106 ::temp107					 ;@line 612                        StrCat ::temp106 ::temp107 ") returning: "			   ;@line 612                        Cast ::temp107 FactionToReturn						   ;@line 612                        StrCat ::temp107 ::temp106 ::temp107					 ;@line 612                        CallStatic debug Trace ::NoneVar ::temp107 0			 ;@line 612                        Return FactionToReturn								   ;@line 614                    .endCode                .endFunction                .function GetState                    .userFlags 0    ; Flags: 0x00000000                    .docString "Function that returns the current state"                    .return String                    .paramTable                    .endParamTable                    .localTable                    .endLocalTable                    .code                        Return ::State										   ;@line ??                    .endCode                .endFunction                .function StopQuestAndStartNewOneHunter                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param CallingQuest Quest                    .endParamTable                    .localTable                        .local ::NoneVar None                    .endLocalTable                    .code                        CallMethod StopQuestAndStartNewOne self ::NoneVar CallingQuest 1  ;@line 265                    .endCode                .endFunction                .function StopQuestAndStartNewOneVampire                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param CallingQuest Quest                    .endParamTable                    .localTable                        .local ::NoneVar None                    .endLocalTable                    .code                        CallMethod StopQuestAndStartNewOne self ::NoneVar CallingQuest 2  ;@line 269                    .endCode                .endFunction                .function GiveQuestReward                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param ChanceForBloodPotion Int                    .endParamTable                    .localTable                        .local ::temp41 Int                        .local ::temp42 Bool                        .local bloodPotion Bool                        .local ::temp43 actor                        .local ::temp44 form                        .local ::NoneVar None                    .endLocalTable                    .code                        CallStatic utility RandomInt ::temp41 1 100			  ;@line 335                        CompareLTE ::temp42 ::temp41 ChanceForBloodPotion	    ;@line 335                        Assign bloodPotion ::temp42							  ;@line 335                        JumpF bloodPotion _label59							   ;@line 337                        CallStatic game GetPlayer ::temp43					   ;@line 338                        Cast ::temp44 ::DLC1BloodPotion_var					  ;@line 338                        CallMethod AddItem ::temp43 ::NoneVar ::temp44 3 False   ;@line 338                        Jump _label60										    ;@line 338                    _label59:                        CallStatic game GetPlayer ::temp43					   ;@line 340                        Cast ::temp44 ::DLC1RadiantReward_var				    ;@line 340                        CallMethod AddItem ::temp43 ::NoneVar ::temp44 1 False   ;@line 340                    _label60:                        Assign isQuestAccepted False							 ;@line 343                    .endCode                .endFunction                .function TrollDismissed                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::temp72 actor                        .local ::temp73 dlc1trollarmoredplayerfollower                        .local ::temp74 Float                        .local ::NoneVar None                        .local ::temp75 globalvariable                        .local ::temp76 Int                        .local Troll dlc1trollarmoredplayerfollower                    .endLocalTable                    .code                        CallMethod GetActorReference ::TrollFollower_var ::temp72  ;@line 419                        Cast ::temp73 ::temp72								   ;@line 419                        Assign Troll ::temp73								    ;@line 419                        Assign ::PlayerHasTroll_var False					    ;@line 421                        Cast ::temp74 1										  ;@line 422                        CallMethod SetAv Troll ::NoneVar "aggression" ::temp74   ;@line 422                        CallMethod Clear ::TrollFollower_var ::NoneVar		   ;@line 423                        PropGet pPlayerAnimalCount ::DialogueFollower_var ::temp75  ;@line 424                        Cast ::temp74 0										  ;@line 424                        CallMethod SetValue ::temp75 ::NoneVar ::temp74		  ;@line 424                        CallMethod StopCombatAlarm Troll ::NoneVar			   ;@line 425                        CallMethod SetPlayerTeammate Troll ::NoneVar False True  ;@line 426                        CallMethod DeleteMe Troll ::NoneVar					  ;@line 428                        CallMethod Show ::DLC1TrollFollowerDismissedMsg_var ::temp76 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000  ;@line 430                    .endCode                .endFunction                .function SetDLC1WENextSpecialAttackDay                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param ForceNextWildernessEncounter Bool                    .endParamTable                    .localTable                        .local ::temp119 Bool                        .local ::temp120 Float                        .local ::temp121 String                        .local DaysUntilNextAttack Int                        .local ::temp117 String                        .local ::NoneVar None                        .local ::temp118 Float                    .endLocalTable                    .code                        Assign DaysUntilNextAttack 5							 ;@line 651                        JumpF ForceNextWildernessEncounter _label61			  ;@line 653                        Cast ::temp117 self									  ;@line 654                        StrCat ::temp117 ::temp117 "SetDLC1WENextSpecialAttackDay() forcing next Wilderness Encounter"  ;@line 654                        CallStatic debug Trace ::NoneVar ::temp117 0			 ;@line 654                        Cast ::temp118 0										 ;@line 655                        CallMethod SetValue ::DLC1WENextSpecialAttackDay_var ::NoneVar ::temp118  ;@line 655                        Return None											  ;@line 656                        Jump _label62										    ;@line 656                    _label61:                        CallMethod GetStageDone ::DLC1VQ06_var ::temp119 10	  ;@line 658                        JumpF ::temp119 _label63								 ;@line 658                        Assign DaysUntilNextAttack 3							 ;@line 659                        Jump _label62										    ;@line 659                    _label63:                        CallMethod GetStageDone ::DLC1VQ07_var ::temp119 10	  ;@line 661                        JumpF ::temp119 _label62								 ;@line 661                        Assign DaysUntilNextAttack 2							 ;@line 662                        Jump _label62										    ;@line 662                    _label62:                        CallMethod GetValue ::GameDaysPassed_var ::temp118	   ;@line 666                        Cast ::temp120 DaysUntilNextAttack					   ;@line 666                        FAdd ::temp120 ::temp118 ::temp120					   ;@line 666                        CallMethod SetValue ::DLC1WENextSpecialAttackDay_var ::NoneVar ::temp120  ;@line 666                        Cast ::temp117 self									  ;@line 668                        StrCat ::temp117 ::temp117 "SetDLC1WENextSpecialAttackDay() DLC1WENextSpecialAttackDay = "  ;@line 668                        CallMethod GetValue ::DLC1WENextSpecialAttackDay_var ::temp118  ;@line 668                        Cast ::temp121 ::temp118								 ;@line 668                        StrCat ::temp121 ::temp117 ::temp121					 ;@line 668                        CallStatic debug Trace ::NoneVar ::temp121 0			 ;@line 668                    .endCode                .endFunction                .function TrollDies                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::temp59 String                        .local ::NoneVar None                        .local ::temp60 globalvariable                        .local ::temp61 Float                        .local ::temp62 objectreference                        .local ::temp63 dlc1trollarmoredplayerfollower                    .endLocalTable                    .code                        Cast ::temp59 self									   ;@line 387                        StrCat ::temp59 ::temp59 "TrollDies()"				   ;@line 387                        CallStatic debug Trace ::NoneVar ::temp59 0			  ;@line 387                        Assign ::PlayerHasTroll_var False					    ;@line 388                        CallMethod Clear ::TrollFollower_var ::NoneVar		   ;@line 389                        PropGet pPlayerAnimalCount ::DialogueFollower_var ::temp60  ;@line 390                        Cast ::temp61 0										  ;@line 390                        CallMethod SetValue ::temp60 ::NoneVar ::temp61		  ;@line 390                        CallMethod GetReference ::TrollFollower_var ::temp62	 ;@line 392                        Cast ::temp63 ::temp62								   ;@line 392                        CallMethod DeleteMe ::temp63 ::NoneVar				   ;@line 392                    .endCode                .endFunction                .function CreateQuestBasedOnLocation                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param Loc location                    .endParamTable                    .localTable                        .local ::temp9 String                        .local ::temp10 String                        .local ::NoneVar None                        .local ::temp11 location                        .local ::temp12 Bool                        .local ::temp13 Bool                        .local ::temp14 Bool                        .local ::temp15 Bool                    .endLocalTable                    .code                        Cast ::temp9 self									    ;@line 163                        StrCat ::temp9 ::temp9 "CreateQuestBasedOnLocation("	 ;@line 163                        Cast ::temp10 Loc									    ;@line 163                        StrCat ::temp10 ::temp9 ::temp10						 ;@line 163                        StrCat ::temp9 ::temp10 ")"							  ;@line 163                        CallStatic debug Trace ::NoneVar ::temp9 0			   ;@line 163                        Cast ::temp11 None									   ;@line 165                        CompareEQ ::temp12 Loc ::temp11						  ;@line 165                        Not ::temp12 ::temp12								    ;@line 165                        JumpF ::temp12 _label64								  ;@line 165                        CompareEQ ::temp13 Loc ::DLC1HunterHQLocation_var	    ;@line 167                        Cast ::temp13 ::temp13								   ;@line 167                        JumpT ::temp13 _label65								  ;@line 167                        CallMethod IsChild ::DLC1HunterHQLocation_var ::temp14 Loc  ;@line 167                        Cast ::temp13 ::temp14								   ;@line 167                    _label65:                        JumpF ::temp13 _label66								  ;@line 167                        CallMethod CreateQuestHunter self ::NoneVar			  ;@line 168                        CallMethod CreateQuestHunterTech self ::NoneVar		  ;@line 169                        Jump _label67										    ;@line 169                    _label66:                        CompareEQ ::temp14 Loc ::DLC1VampireCastleLocation_var   ;@line 170                        Cast ::temp14 ::temp14								   ;@line 170                        JumpT ::temp14 _label68								  ;@line 170                        CallMethod IsChild ::DLC1VampireCastleLocation_var ::temp15 Loc  ;@line 170                        Cast ::temp14 ::temp15								   ;@line 170                    _label68:                        JumpF ::temp14 _label69								  ;@line 170                        CallMethod CreateQuestVampire self ::NoneVar			 ;@line 171                        Jump _label67										    ;@line 171                    _label69:                        Cast ::temp10 self									   ;@line 173                        StrCat ::temp9 ::temp10 "CreateQuestBasedOnLocation("    ;@line 173                        Cast ::temp10 Loc									    ;@line 173                        StrCat ::temp10 ::temp9 ::temp10						 ;@line 173                        StrCat ::temp9 ::temp10 ") is NOT creating a quest: as Location is neither DLC1HunterHQLocation nor DLC1VampireCastleLocation"  ;@line 173                        CallStatic debug Trace ::NoneVar ::temp9 0			   ;@line 173                    _label67:                        Jump _label70										    ;@line 173                    _label64:                        Cast ::temp10 self									   ;@line 177                        StrCat ::temp9 ::temp10 "CreateQuestBasedOnLocation("    ;@line 177                        Cast ::temp10 Loc									    ;@line 177                        StrCat ::temp10 ::temp9 ::temp10						 ;@line 177                        StrCat ::temp9 ::temp10 ") is NOT creating a quest: as Location is None. "  ;@line 177                        CallStatic debug Trace ::NoneVar ::temp9 0			   ;@line 177                    _label70:                    .endCode                .endFunction                .function MakeTrollFollower                    .userFlags 0    ; Flags: 0x00000000                    .docString "if TrollToMakeFollower == None, create one instead"                    .return None                    .paramTable                        .param TrollToMakeFollower objectreference                        .param ChargePlayer Bool                    .endParamTable                    .localTable                        .local ::temp49 String                        .local ::temp50 String                        .local ::NoneVar None                        .local ::temp51 Bool                        .local ::temp57 globalvariable                        .local ::temp58 Float                        .local ::temp52 actor                        .local ::temp53 Float                        .local ::temp54 Int                        .local ::temp55 form                        .local ::temp56 objectreference                    .endLocalTable                    .code                        Cast ::temp49 self									   ;@line 361                        StrCat ::temp49 ::temp49 "MakeTrollFollower(), TrollToMakeFollower (new one if none):"  ;@line 361                        Cast ::temp50 TrollToMakeFollower					    ;@line 361                        StrCat ::temp50 ::temp49 ::temp50					    ;@line 361                        CallStatic debug Trace ::NoneVar ::temp50 0			  ;@line 361                        CompareEQ ::temp51 ChargePlayer True					 ;@line 363                        JumpF ::temp51 _label71								  ;@line 363                        CallStatic game GetPlayer ::temp52					   ;@line 364                        CallMethod GetValue ::DLC1TrollCost_var ::temp53		 ;@line 364                        Cast ::temp54 ::temp53								   ;@line 364                        Cast ::temp55 ::Gold001_var							  ;@line 364                        CallMethod RemoveItem ::temp52 ::NoneVar ::temp55 ::temp54 False None  ;@line 364                        Jump _label71										    ;@line 364                    _label71:                        JumpF TrollToMakeFollower _label72					   ;@line 367                        CallMethod ForceRefTo ::TrollFollower_var ::NoneVar TrollToMakeFollower  ;@line 368                        Jump _label73										    ;@line 368                    _label72:                        Cast ::temp55 ::DLC1LvlTrollArmoredPlayerFollower_var    ;@line 370                        CallMethod PlaceAtMe ::DLC1DawnguardArmoredTrollSpawnMarker_var ::temp56 ::temp55 1 False False  ;@line 370                        CallMethod ForceRefTo ::TrollFollower_var ::NoneVar ::temp56  ;@line 370                    _label73:                        Assign ::PlayerHasTroll_var True						 ;@line 374                        PropGet pPlayerAnimalCount ::DialogueFollower_var ::temp57  ;@line 376                        CallMethod GetValue ::temp57 ::temp53				    ;@line 376                        Cast ::temp58 1										  ;@line 376                        CompareGTE ::temp51 ::temp53 ::temp58				    ;@line 376                        JumpF ::temp51 _label74								  ;@line 376                        CallMethod DismissAnimal ::DialogueFollower_var ::NoneVar  ;@line 377                        Jump _label74										    ;@line 377                    _label74:                        PropGet pPlayerAnimalCount ::DialogueFollower_var ::temp57  ;@line 380                        Cast ::temp58 1										  ;@line 380                        CallMethod SetValue ::temp57 ::NoneVar ::temp58		  ;@line 380                        CallMethod GetActorReference ::TrollFollower_var ::temp52  ;@line 382                        CallMethod SetPlayerTeammate ::temp52 ::NoneVar True False  ;@line 382                    .endCode                .endFunction                .function CreateDisguisedActorAndForceIntoAlias                    .userFlags 0    ; Flags: 0x00000000                    .docString "Type 1 = Hunter, 2 = Vampire"                    .return None                    .paramTable                        .param AliasToForceInto referencealias                        .param AliasToCreateAt referencealias                        .param Type Int                        .param isInitiallyDisabled Bool                    .endParamTable                    .localTable                        .local ::temp126 objectreference                        .local ::temp127 Bool                        .local CreateAtRef objectreference                        .local ActorRef actor                        .local ::temp128 actorbase                        .local ::temp129 form                        .local ::temp130 actor                        .local ::NoneVar None                    .endLocalTable                    .code                        CallMethod GetReference AliasToCreateAt ::temp126	    ;@line 714                        Assign CreateAtRef ::temp126							 ;@line 714                        CompareEQ ::temp127 Type 1							   ;@line 717                        JumpF ::temp127 _label75								 ;@line 717                        CallMethod PlaceAtMeFromArray self ::temp128 ::DisguisedHunterActorBases_var  ;@line 718                        Cast ::temp129 ::temp128								 ;@line 718                        CallMethod PlaceAtMe CreateAtRef ::temp126 ::temp129 1 False False  ;@line 718                        Cast ::temp130 ::temp126								 ;@line 718                        Assign ActorRef ::temp130							    ;@line 718                        Jump _label76										    ;@line 718                    _label75:                        CallMethod PlaceAtMeFromArray self ::temp128 ::DisguisedVampireActorBases_var  ;@line 720                        Cast ::temp129 ::temp128								 ;@line 720                        CallMethod PlaceAtMe CreateAtRef ::temp126 ::temp129 1 False False  ;@line 720                        Cast ::temp130 ::temp126								 ;@line 720                        Assign ActorRef ::temp130							    ;@line 720                    _label76:                        JumpF isInitiallyDisabled _label77					   ;@line 723                        CallMethod disable ActorRef ::NoneVar False			  ;@line 724                        Jump _label77										    ;@line 724                    _label77:                        Cast ::temp126 ActorRef								  ;@line 727                        CallMethod ForceRefTo AliasToForceInto ::NoneVar ::temp126  ;@line 727                    .endCode                .endFunction                .function OnUpdateGameTime                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                    .endParamTable                    .localTable                        .local ::temp0 actor                        .local ::temp1 Bool                    .endLocalTable                    .code                        CallStatic game GetPlayer ::temp0					    ;@line 115                        CallMethod RemoveSpell ::temp0 ::temp1 ::DLC1VampireChalicePower_var  ;@line 115                    .endCode                .endFunction                .function PlaceAtMeFromArray                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return actorbase                    .paramTable                        .param ArrayToCreateFrom actorbase[]                    .endParamTable                    .localTable                        .local ::temp131 Int                        .local ::temp132 actorbase                        .local index Int                    .endLocalTable                    .code                        ArrayLength ::temp131 ArrayToCreateFrom				  ;@line 733                        CallStatic utility RandomInt ::temp131 1 ::temp131	   ;@line 733                        ISubtract ::temp131 ::temp131 1						  ;@line 733                        Assign index ::temp131								   ;@line 733                        ArrayGetElement ::temp132 ArrayToCreateFrom index	    ;@line 735                        Return ::temp132										 ;@line 735                    .endCode                .endFunction                .function StopQuestAndStartNewOneHunterTech                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return None                    .paramTable                        .param CallingQuest Quest                    .endParamTable                    .localTable                        .local ::NoneVar None                    .endLocalTable                    .code                        CallMethod StopQuestAndStartNewOne self ::NoneVar CallingQuest 3  ;@line 273                    .endCode                .endFunction                .function IsHighProfileTarget                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return Bool                    .paramTable                        .param akVictim objectreference                    .endParamTable                    .localTable                        .local ::temp36 actor                        .local ::temp37 Bool                        .local Victim actor                    .endLocalTable                    .code                        Cast ::temp36 akVictim								   ;@line 297                        Assign Victim ::temp36								   ;@line 297                        CallMethod IsActorInFactionInFormlist self ::temp37 Victim ::DLC1RadiantHighProfileFactions_var  ;@line 299                        Return ::temp37										  ;@line 299                    .endCode                .endFunction                .function IsActorCurrentlyInLocation                    .userFlags 0    ; Flags: 0x00000000                    .docString ""                    .return Bool                    .paramTable                        .param ActorToCheck actor                        .param LocationToCheck location                    .endParamTable                    .localTable                        .local ::temp99 Bool                        .local ::temp100 String                        .local ::temp101 String                        .local ::NoneVar None                        .local ReturnVal Bool                    .endLocalTable                    .code                        Assign ReturnVal False								   ;@line 555                        CallMethod IsInLocation ActorToCheck ::temp99 LocationToCheck  ;@line 557                        JumpF ::temp99 _label78								  ;@line 557                        Assign ReturnVal True								    ;@line 558                        Jump _label78										    ;@line 558                    _label78:                        Cast ::temp100 self									  ;@line 561                        StrCat ::temp100 ::temp100 "IsActorCurrentlyInLocation("  ;@line 561                        Cast ::temp101 ActorToCheck							  ;@line 561                        StrCat ::temp101 ::temp100 ::temp101					 ;@line 561                        StrCat ::temp100 ::temp101 ", "						  ;@line 561                        Cast ::temp101 LocationToCheck						   ;@line 561                        StrCat ::temp101 ::temp100 ::temp101					 ;@line 561                        StrCat ::temp100 ::temp101 ") == "					   ;@line 561                        Cast ::temp101 ReturnVal								 ;@line 561                        StrCat ::temp101 ::temp100 ::temp101					 ;@line 561                        CallStatic debug Trace ::NoneVar ::temp101 0			 ;@line 561                        Return ReturnVal										 ;@line 563                    .endCode                .endFunction            .endState        .endStateTable    .endObject.endObjectTable

Nope. Not going to happen. Technically I only ever use a single function from that ****er anyway, so I say that's all I have to do. I just need that one thing so I can compile my other scripts, then I'll throw this away.
User avatar
latrina
 
Posts: 3440
Joined: Mon Aug 20, 2007 4:31 pm

Post » Sat Nov 17, 2012 6:16 pm

Well there is a trick you could try:
1. Make an empty script with the name of the included script; in this case dlc1radiantscript;
2. now define only the functions/properties that are called from your script. The functions should have the same return type, flags and parameters, but won't need any implementation.
3. now try to compile your script.
4. afterwards you can throw out the empty script (and any pex file it may have generated.... I don't know if the CK compiles these scripts when you are compiling another script)

Tell you what. When I get some time I'll give the dlc1radiantscript a try. It's actually smaller than the mentalmodelscript.
User avatar
Michelle Smith
 
Posts: 3417
Joined: Wed Nov 15, 2006 2:03 am

Post » Sat Nov 17, 2012 9:47 pm

Seriously? You looked at a script longer than that and said, "Challenge accepted."?
:ooo:

But yeah, making a blank script with only the parts I use was my plan. It probably will work. Right now because http://skyrim.nexusmods.com/mods/21932 though, I've stopped working on that as much. I'm currently finishing up Synthetic Blood potions and the new bolt types.


Also, I plan to make an updated http://skyrim.nexusmods.com/mods/12727 for Dawnguard because the old one never got updated. I assume you don't mind me using your decompiled PlayerVampireQuestScript?

Oh, and here:
Spoiler
Scriptname PlayerVampireQuestScript extends Quest Conditional;Variable to track if the player is a vampire;0 = Not a Vampire;1 = Vampire;2 = Vampire Stage 2;3 = Vampire Stage 3;4 = Vampire Stage 4Int Property VampireStatus Auto ConditionalMessage Property VampireFeedMessage AutoMessage Property VampireStageProgressionMessage AutoRace Property ArgonianRace  Auto  Race Property ArgonianRaceVampire  Auto  Race Property BretonRace  Auto  Race Property BretonRaceVampire  Auto  Race Property DarkElfRace  Auto  Race Property DarkElfRaceVampire  Auto  Race Property HighElfRace  Auto  Race Property HighElfRaceVampire  Auto  Race Property ImperialRace  Auto  Race Property ImperialRaceVampire  Auto  Race Property KhajiitRace  Auto  Race Property KhajiitRaceVampire  Auto  Race Property NordRace  Auto  Race Property NordRaceVampire  Auto  Race Property OrcRace  Auto  Race Property OrcRaceVampire  Auto  Race Property RedguardRace  Auto  Race Property RedguardRaceVampire  Auto  Race Property WoodElfRace  Auto  Race Property WoodElfRaceVampire  Auto  Race Property CureRace AutoStatic Property XMarker AutoFaction Property VampirePCFaction  Auto  Float Property LastFeedTime AutoFloat Property FeedTimer AutoGlobalVariable Property GameDaysPassed AutoIdle Property VampireFeedingBedRight AutoIdle Property VampireFeedingBedrollRight AutoGlobalVariable Property VampireFeedReady AutoimageSpaceModifier Property VampireTransformIncreaseISMD  AutoimageSpaceModifier Property VampireTransformDecreaseISMD  AutoeffectShader property VampireChangeFX autoEvent OnUpdateGameTime()	;Feed timer	FeedTimer = GameDaysPassed.Value - LastFeedTime;	 debug.trace(self + "Feed Timer is:" + FeedTimer + "days")	actor player	player = game.GetPlayer()		;Vampire progression should not happen if player is in combat or controls are locked or the player can't fast travel	If (Game.IsMovementControlsEnabled() && Game.IsFightingControlsEnabled() && (player.GetCombatState() == 0) && !player.HasMagicEffect(DLC1VampireChangeEffect) && !player.HasMagicEffect(DLC1VampireChangeFXEffect))		;If player hasn't fed, progress Vampirism		If (FeedTimer >= 3) && (VampireStatus == 3)			;add Stage 4 Vampire buffs and spells			VampireFeedReady.SetValue(3)			;VampireStageProgressionMessage.Show()			VampireStage4Message.Show()			VampireStatus = 4			VampireProgression(Game.GetPlayer(), 4)			;All NPCs  hate the evil Vampire;			Game.GetPlayer().AddtoFaction(VampirePCFaction);			Game.GetPlayer().SetAttackActorOnSight();			int cfIndex = 0;			   while (cfIndex < CrimeFactions.GetSize());					 Debug.Trace("VAMPIRE: Setting enemy flag on " + CrimeFactions.GetAt(cfIndex));					(CrimeFactions.GetAt(cfIndex) as Faction).SetPlayerEnemy();					cfIndex += 1;				endwhile			;stop checking GameTime until the player feeds again			UnregisterforUpdateGameTime()		ElseIf FeedTimer >= 2 && (VampireStatus == 2)			;add Stage 3 Vampire buffs and spells			VampireFeedReady.SetValue(2)			VampireStageProgressionMessage.Show()			VampireStatus = 3			VampireProgression(Game.GetPlayer(), 3)			ElseIf FeedTimer >= 1 && (VampireStatus == 1)			;add Stage 2 Vampire buffs and spells			VampireFeedReady.SetValue(1)			VampireStageProgressionMessage.Show()			VampireStatus = 2			VampireProgression(Game.GetPlayer(), 2)			EndIf	Endif	EndEventFunction VampireFeedBed()	Game.GetPlayer().PlayIdle(VampireFeedingBedRight)EndFunctionFunction VampireFeedBedRoll()	Game.GetPlayer().PlayIdle(VampireFeedingBedrollRight)EndFunctionFunction VampireChange(actor Target)	;Effects for hiding the change	Game.DisablePlayerControls()	VampireChangeFX.play(Target)	VampireTransformIncreaseISMD.applyCrossFade(2.0)	ObjectReference myXmarker = Target.PlaceAtMe(Xmarker)	MAGVampireTransform01.Play(myXmarker)	myXmarker.Disable()	utility.wait(2.0)	imageSpaceModifier.removeCrossFade()	VampireChangeFX.stop(Target)	;Change player's race, defaults to Nord Vampire	if (Target.GetActorBase().GetRace() == ArgonianRace)		CureRace = ArgonianRace		Target.SetRace(ArgonianRaceVampire)	elseif (Target.GetActorBase().GetRace() == BretonRace)		CureRace = BretonRace		Target.SetRace(BretonRaceVampire)	elseif (Target.GetActorBase().GetRace() == DarkElfRace)		CureRace = DarkElfRace		Target.SetRace(DarkElfRaceVampire)	elseif (Target.GetActorBase().GetRace() == HighELfRace)		CureRace = HighELfRace		Target.SetRace(HighELfRaceVampire)	elseif (Target.GetActorBase().GetRace() == ImperialRace)		CureRace = ImperialRace		Target.SetRace(ImperialRaceVampire)	elseif (Target.GetActorBase().GetRace() == KhajiitRace)		CureRace = KhajiitRace		Target.SetRace(KhajiitRaceVampire)	elseif (Target.GetActorBase().GetRace() == NordRace)		CureRace = NordRace		Target.SetRace(NordRaceVampire)	elseif (Target.GetActorBase().GetRace() == OrcRace)		CureRace = OrcRace		Target.SetRace(OrcRaceVampire)	elseif (Target.GetActorBase().GetRace() == RedguardRace)		CureRace = RedguardRace		Target.SetRace(RedguardRaceVampire)	elseif (Target.GetActorBase().GetRace() == WoodElfRace)		CureRace = WoodElfRace		Target.SetRace(WoodElfRaceVampire)	endif	;Clear player's diseases	;VampireCureDisease.Cast(Target)	Target.RemoveSpell(DiseaseBoneBreakFever)	Target.RemoveSpell(DiseaseBrainRot)	Target.RemoveSpell(DiseaseRattles)	Target.RemoveSpell(DiseaseRockjoint)	Target.RemoveSpell(DiseaseWitbane)	Target.RemoveSpell(DiseasePorphyricHemophelia)	Target.RemoveSpell(DiseaseAtaxia)	Target.RemoveSpell(TrapDiseaseBoneBreakFever)	Target.RemoveSpell(TrapDiseaseBrainRot)	Target.RemoveSpell(TrapDiseaseRattles)	Target.RemoveSpell(TrapDiseaseRockjoint)	Target.RemoveSpell(TrapDiseaseWitbane)	Target.RemoveSpell(TrapDiseasePorphyricHemophelia)	Target.RemoveSpell(TrapDiseaseAtaxia)	;Make player Vampire Stage 1	VampireStatus = 1	VampireProgression(Game.GetPlayer(), 1)	;Setup the Feed Timers	RegisterForUpdateGameTime(12)	LastFeedTime =  GameDaysPassed.Value	;Set the Global for stat tracking	PlayerIsVampire.SetValue(1)	Utility.Wait(1)	Game.EnablePlayerControls()		;If the player has been cured before, restart the cure quest	If VC01.GetStageDone(200) == 1		VC01.SetStage(25)	EndIf	EndFunctionFunction VampireFeed()	;Effects for hiding the change	;VampireChangeFX.play(game.getPlayer())	VampireTransformDecreaseISMD.applyCrossFade(2.0)	utility.wait(2.0)	imageSpaceModifier.removeCrossFade()	;VampireChangeFX.stop(game.getPlayer())	Game.IncrementStat( "Necks Bitten" )	VampireFeedMessage.Show()	VampireFeedReady.SetValue(0)	;Game.ForceThirdPerson()	;Game.GetPlayer().PlayIdle(VampireFeedingBedRight)	;Player has fed, regress to Stage 1 Vampirisim	;Remove Stage 2, 3, and 4 buffs and spells	LastFeedTime =  GameDaysPassed.Value	VampireStatus = 1	Actor player = Game.GetPlayer()	VampireProgression(player, 1)	;Player is no longer hated	player.RemoveFromFaction(VampirePCFaction)	player.SetAttackActorOnSight(False)	int cfIndex = 0;	Debug.Trace("VAMPIRE feed: DLC1CrimeFactions = " + DLC1CrimeFactions, 0);	Debug.Trace("VAMPIRE feed: CrimeFactions before = " + CrimeFactions, 0)	CrimeFactions = DLC1CrimeFactions;	Debug.Trace("VAMPIRE feed: CrimeFactions after = " + CrimeFactions, 0)	while (cfIndex < CrimeFactions.GetSize());		 Debug.Trace("VAMPIRE: Removing enemy flag from " + CrimeFactions.GetAt(cfIndex))		(CrimeFactions.GetAt(cfIndex) as Faction).SetPlayerEnemy(false)		cfIndex += 1	endwhile	;Start checking GameTime again if we weren't already	UnregisterforUpdateGameTime()	RegisterForUpdateGameTime(12)EndFunctionFunction VampireProgression(Actor Player, int VampireStage)	;Swap out abilities depending on stage of Vampirism	If VampireStage == 2		VampireTransformIncreaseISMD.applyCrossFade(2.0)		utility.wait(2.0)		imageSpaceModifier.removeCrossFade()		Player.RemoveSpell(AbVampire01)		Player.RemoveSpell(AbVampire01b)		Player.AddSpell(AbVampire02b, abVerbose = False)		Player.AddSpell(AbVampire02, abVerbose = False)		;Player.RemoveSpell(VampireStrength01)		;Player.AddSpell(VampireStrength02, abVerbose = False)		Player.RemoveSpell(VampireSunDamage01)		Player.AddSpell(VampireSunDamage02, abVerbose = False)		Player.AddSpell(VampireDrain02, abVerbose = False)		;check to see if player has power equipped and switch them out		If Player.GetEquippedSpell(0) == VampireDrain01			Player.EquipSpell(VampireDrain02, 0)					EndIf		If Player.GetEquippedSpell(1) == VampireDrain01			Player.EquipSpell(VampireDrain02, 1)		EndIf		Player.RemoveSpell(VampireDrain01)		Player.AddSpell(VampireRaiseThrall02, abVerbose = False)		Player.RemoveSpell(VampireRaiseThrall01)		Player.AddSpell(VampireCharm)	ElseIf VampireStage == 3		VampireTransformIncreaseISMD.applyCrossFade(2.0)		utility.wait(2.0)		imageSpaceModifier.removeCrossFade()		Player.RemoveSpell(AbVampire01)		Player.RemoveSpell(AbVampire02)		Player.RemoveSpell(AbVampire01b)		Player.RemoveSpell(AbVampire02b)		Player.AddSpell(AbVampire03b, abVerbose = False)		Player.AddSpell(AbVampire03, abVerbose = False)		Player.AddSpell(VampireDrain03, abVerbose = False)		;check to see if player has power equipped and switch them out		If Player.GetEquippedSpell(0) == VampireDrain02 || Player.GetEquippedSpell(0) == VampireDrain01			Player.EquipSpell(VampireDrain03, 0)					EndIf		If Player.GetEquippedSpell(1) == VampireDrain02 || Player.GetEquippedSpell(1) == VampireDrain01			Player.EquipSpell(VampireDrain03, 1)		EndIf		Player.RemoveSpell(VampireDrain01)		Player.RemoveSpell(VampireDrain02)		Player.RemoveSpell(VampireRaiseThrall01)		Player.RemoveSpell(VampireRaiseThrall02)		Player.AddSpell(VampireRaiseThrall03, abVerbose = False)		;Player.RemoveSpell(VampireStrength01)		;Player.RemoveSpell(VampireStrength02)		;Player.AddSpell(VampireStrength03, abVerbose = False)		Player.RemoveSpell(VampireSunDamage01)		Player.RemoveSpell(VampireSunDamage02)		Player.AddSpell(VampireSunDamage03, abVerbose = False)		;Player.AddSpell(VampireHuntersSight)		;Player.AddSpell(VampireCloak)	ElseIf VampireStage == 4		VampireTransformIncreaseISMD.applyCrossFade(2.0)		utility.wait(2.0)		imageSpaceModifier.removeCrossFade()		Player.RemoveSpell(AbVampire01)		Player.RemoveSpell(AbVampire02)		Player.RemoveSpell(AbVampire03)		Player.RemoveSpell(AbVampire01b)		Player.RemoveSpell(AbVampire02b)		Player.RemoveSpell(AbVampire03b)		Player.AddSpell(AbVampire04, abVerbose = False)		Player.AddSpell(AbVampire04b, abVerbose = False)		Player.AddSpell(VampireDrain04, abVerbose = False)				;check to see if player has power equipped and switch them out		If Player.GetEquippedSpell(0) == VampireDrain03 || Player.GetEquippedSpell(0) == VampireDrain02 || Player.GetEquippedSpell(0) == VampireDrain01			Player.EquipSpell(VampireDrain04, 0)					EndIf		If Player.GetEquippedSpell(1) == VampireDrain03 || Player.GetEquippedSpell(1) == VampireDrain02 || Player.GetEquippedSpell(1) == VampireDrain01			Player.EquipSpell(VampireDrain04, 1)		EndIf		Player.RemoveSpell(VampireDrain01)		Player.RemoveSpell(VampireDrain02)		Player.RemoveSpell(VampireDrain03)			Player.RemoveSpell(VampireRaiseThrall01)		Player.RemoveSpell(VampireRaiseThrall02)		Player.RemoveSpell(VampireRaiseThrall03)		Player.AddSpell(VampireRaiseThrall04, abVerbose = False)		;Player.RemoveSpell(VampireStrength01)		;Player.RemoveSpell(VampireStrength02)		;Player.RemoveSpell(VampireStrength03)		;Player.AddSpell(VampireStrength04, abVerbose = False)		Player.RemoveSpell(VampireSunDamage01)		Player.RemoveSpell(VampireSunDamage02)		Player.RemoveSpell(VampireSunDamage03)		Player.AddSpell(VampireSunDamage04, abVerbose = False)				Player.AddSpell(VampireInvisibilityPC)		ElseIf VampireStage == 1		Player.AddSpell(ABVampireSkills, abVerbose = False)		Player.AddSpell(ABVampireSkills02, abVerbose = False)		Player.RemoveSpell(AbVampire04)		Player.RemoveSpell(AbVampire02)		Player.RemoveSpell(AbVampire03)		Player.RemoveSpell(AbVampire04b)		Player.RemoveSpell(AbVampire02b)		Player.RemoveSpell(AbVampire03b)		Player.AddSpell(AbVampire01, abVerbose = False)		Player.AddSpell(AbVampire01b, abVerbose = False)		Player.AddSpell(VampireDrain01, abVerbose = False)		;check to see if player has power equipped and switch them out		If Player.GetEquippedSpell(0) == VampireDrain03 || Player.GetEquippedSpell(0) == VampireDrain04 || Player.GetEquippedSpell(0) == VampireDrain02			Player.EquipSpell(VampireDrain01, 0)					EndIf		If Player.GetEquippedSpell(1) == VampireDrain03 || Player.GetEquippedSpell(1) == VampireDrain04 || Player.GetEquippedSpell(1) == VampireDrain02			Player.EquipSpell(VampireDrain01, 1)		EndIf		Player.RemoveSpell(VampireDrain04)		Player.RemoveSpell(VampireDrain02)		Player.RemoveSpell(VampireDrain03)		Player.RemoveSpell(VampireRaiseThrall04)		Player.RemoveSpell(VampireRaiseThrall02)		Player.RemoveSpell(VampireRaiseThrall03)		Player.AddSpell(VampireRaiseThrall01, abVerbose = False)		;Player.RemoveSpell(VampireStrength04)		;Player.RemoveSpell(VampireStrength02)		;Player.RemoveSpell(VampireStrength03)		;Player.AddSpell(VampireStrength01, abVerbose = False)		Player.RemoveSpell(VampireSunDamage04)		Player.RemoveSpell(VampireSunDamage02)		Player.RemoveSpell(VampireSunDamage03)		Player.AddSpell(VampireSunDamage01, abVerbose = False)		Player.RemoveSpell(VampireCharm)		;Player.RemoveSpell(VampireCloak)		Player.RemoveSpell(VampireInvisibilityPC)	EndIfEndFunctionFunction VampireCure(Actor Player)		Game.IncrementStat( "Vampirism Cures" )	;Stop tracking the Feed Timer	UnregisterforUpdateGameTime()	VampireStatus = 0	;Player is no longer hated	Player.RemoveFromFaction(VampirePCFaction)	Player.SetAttackActorOnSight(False)		;Remove all abilities	Player.RemoveSpell(DLC1VampireChange)	Player.RemoveSpell(ABVampireSkills)	Player.RemoveSpell(ABVampireSkills02)		Player.RemoveSpell(AbVampire01)	Player.RemoveSpell(AbVampire02)	Player.RemoveSpell(AbVampire03)	Player.RemoveSpell(AbVampire04)	Player.RemoveSpell(AbVampire01b)	Player.RemoveSpell(AbVampire02b)	Player.RemoveSpell(AbVampire03b)	Player.RemoveSpell(AbVampire04b)	Player.RemoveSpell(VampireDrain01)	Player.RemoveSpell(VampireDrain02)	Player.RemoveSpell(VampireDrain03)	Player.RemoveSpell(VampireDrain04)	Player.RemoveSpell(VampireRaiseThrall01)	Player.RemoveSpell(VampireRaiseThrall02)	Player.RemoveSpell(VampireRaiseThrall03)	Player.RemoveSpell(VampireRaiseThrall04)	;Player.RemoveSpell(VampireStrength01)	;Player.RemoveSpell(VampireStrength02)	;Player.RemoveSpell(VampireStrength03)	;Player.RemoveSpell(VampireStrength04)	Player.RemoveSpell(VampireSunDamage01)	Player.RemoveSpell(VampireSunDamage02)	Player.RemoveSpell(VampireSunDamage03)	Player.RemoveSpell(VampireSunDamage04)	Player.RemoveSpell(VampireCharm)	;Player.RemoveSpell(VampireCloak)	Player.RemoveSpell(VampireInvisibilityPC)	;Change player's race, defaults to Nord	if (Player.GetRace() == ArgonianRaceVampire)		Player.SetRace(ArgonianRace)	elseif (Player.GetRace() == BretonRaceVampire)		Player.SetRace(BretonRace)	elseif (Player.GetRace() == DarkElfRaceVampire)		Player.SetRace(DarkElfRace)	elseif (Player.GetRace() == HighELfRaceVampire)		Player.SetRace(HighElfRace)	elseif (Player.GetRace() == ImperialRaceVampire)		Player.SetRace(ImperialRace)	elseif (Player.GetRace() == KhajiitRaceVampire)		Player.SetRace(KhajiitRace)	elseif (Player.GetRace() == NordRaceVampire)		Player.SetRace(NordRace)	elseif (Player.GetRace() == OrcRaceVampire)		Player.SetRace(OrcRace)	elseif (Player.GetRace() == RedguardRaceVampire)		Player.SetRace(RedguardRace)	elseif (Player.GetRace() == WoodElfRaceVampire)		Player.SetRace(WoodElfRace)	endif	;Set the Global for stat tracking	PlayerIsVampire.SetValue(0)		;make sure Hunter's Sight is gone	Player.RemoveSpell(VampireHuntersSight)	EndFunctionSpell Property AbVampire01 AutoSpell Property AbVampire02 AutoSpell Property AbVampire03 AutoSpell Property AbVampire04 AutoSpell Property AbVampire01b AutoSpell Property AbVampire02b AutoSpell Property AbVampire03b AutoSpell Property AbVampire04b AutoSpell Property VampireDrain01 AutoSpell Property VampireDrain02 AutoSpell Property VampireDrain03 AutoSpell Property VampireDrain04 AutoSpell Property VampireRaiseThrall01 AutoSpell Property VampireRaiseThrall02 AutoSpell Property VampireRaiseThrall03 AutoSpell Property VampireRaiseThrall04 AutoSpell Property VampireStrength01 AutoSpell Property VampireStrength02 AutoSpell Property VampireStrength03 AutoSpell Property VampireStrength04 AutoSpell Property VampireSunDamage01 AutoSpell Property VampireSunDamage02 AutoSpell Property VampireSunDamage03 AutoSpell Property VampireSunDamage04 AutoSpell Property VampireHuntersSight AutoSpell Property VampireCharm AutoSpell Property VampireCloak AutoSpell Property VampireInvisibilityPC AutoSpell Property DLC1VampireChange AutoSpell Property VampireCureDisease AutoSpell Property ABVampireSkills AutoSpell Property ABVampireSkills02 AutoSpell Property DiseasePorphyricHemophelia AutoSpell Property TrapDiseasePorphyricHemophelia AutoMagicEffect Property DLC1VampireChangeFXEffect AutoMagicEffect Property DLC1VampireChangeEffect AutoGlobalVariable Property PlayerIsVampire  Auto  Sound  Property MagVampireTransform01  Auto  Spell Property DiseaseAtaxia autoSpell Property TrapDiseaseAtaxia AutoSpell Property DiseaseBoneBreakFever AutoSpell Property TrapDiseaseBoneBreakFever AutoSpell Property DiseaseBrainRot AutoSpell Property TrapDiseaseBrainRot AutoSpell Property DiseaseRattles AutoSpell Property TrapDiseaseRattles AutoSpell Property DiseaseRockjoint autoSpell Property TrapDiseaseRockjoint AutoSpell Property DiseaseWitbane AutoSpell Property TrapDiseaseWitbane AutoMessage Property VampireStage4Message AutoQuest Property VC01 AutoFormList Property CrimeFactions  AutoFormlist Property DLC1CrimeFactions Auto

I've corrected a few mistakes you made (you didn't mark VampireStatus as Conditional and your ampersands came through as &) and updated the script to use the normal formatting, plus I've included a few notes from the vanilla Skyrim script. Ideally, that should be character-for-character identical to the actual source script Bethesda has, but I imagine it's still missing a few script notes.
User avatar
Ymani Hood
 
Posts: 3514
Joined: Fri Oct 26, 2007 3:22 am

Post » Sun Nov 18, 2012 12:21 am

Seriously? You looked at a script longer than that and said, "Challenge accepted."?

Yeah, well it's a script that's important for modders working on companion mods, like UFO. And since I like what those types of mod add to the game, I felt I should invest some time in it. Plus once you've stripped down some of the useless fluff it isn't as daunting.

Also, I plan to make an updated http://skyrim.nexusmods.com/mods/12727 for Dawnguard because the old one never got updated. I assume you don't mind me using your decompiled PlayerVampireQuestScript?
Not at all. Please note that there may be some minor issues with that file surrounding flags (mostly conditional properties/conditional on script) since I only figured out later how to read the flags after I decompiled that one.
Of the top of my head it has a variable VampireStatus (or something like that) that should be conditional, but in my version it wasn't.
User avatar
roxanna matoorah
 
Posts: 3368
Joined: Fri Oct 13, 2006 6:01 am

Post » Sun Nov 18, 2012 1:52 am

Heh. Check my ninja edits. I've already got that fixed, plus it uses all the normal formatting and notes now. I'm working on minor edits now that will invert the system so you're strongest when fed. I'll also be adding my now-working Synthetic Blood potions, which give you two days of feeding and one day of sunlight immunity. Plus, I'm adding two bugfixes. First, using Potions of Blood (and the new Synthetic Blood Serums) will no longer increment your Necks Bitten counter, because you obviously aren't actually doing that. Second, you no longer get a warning on stage 4 vampirism about being feared and hated, because that doesn't happen with Dawnguard installed.
User avatar
James Wilson
 
Posts: 3457
Joined: Mon Nov 12, 2007 12:51 pm

Post » Sat Nov 17, 2012 7:07 pm

@SushiSquid:
about the inverted system. That reminds me of http://skyrim.nexusmods.com/mods/9717/. You might want to check that one out. I think it has this as an option. It may or may not have something like the immunity as well.
I haven't tried it since it heavily modifies some scripts I'm testing to make the http://skyrim.nexusmods.com/mods/10165 mod work with Dawnguard, which is a mod that several custom races rely on to properly function.
User avatar
Angelina Mayo
 
Posts: 3427
Joined: Wed Jan 24, 2007 4:58 am

Post » Sun Nov 18, 2012 2:06 am

Better Vampires is a little more than I'm looking for. It looks like a great mod with plenty of options, but it's more overhaul than simple change, and I only want a simple change.

It looks like the change that race compatibility mod makes to the script is to replace the long If-elseif statement with a while statement that runs through all races in a list. That is, quite honestly, a much better system than what the base game uses as it allows for conflict-free additions of new races to the game, as all you'd need to do is add them to the list by script and they'd start working with vampire and werewolf without issues.

Edit:
I'm totally amazed, but that script I posted early totally does compile. I actually didn't **** it up. Wow.

Edit 2:
Everything is finished (vampirism inverted, bugs fixed, and new potion working) except that the new potions are not part of shop inventories yet. I'll have to find a way to add to the inventories without risking incompatibilities with other mods. I've done this in past Bethesda games so I probably can figure it out, but it's been a while.
But anyway it's Saturday night and I'm legally mandated to go somewhere and have actual fun, so this can wait.
User avatar
kyle pinchen
 
Posts: 3475
Joined: Thu May 17, 2007 9:01 pm

Post » Sat Nov 17, 2012 7:17 pm

@TMPhoenix

Thanks, now I understand how to do it!

I've even decompiled one of the vanilla scripts to compare my script with the source, and the only difference between them is that properties, variables and functions have different orders (looks like decompiler messed them up)
User avatar
Kate Schofield
 
Posts: 3556
Joined: Mon Sep 18, 2006 11:58 am

Post » Sun Nov 18, 2012 6:50 am

I've decompiled two more scripts: the dlc1vampireturnscript and the dlc1referencealiasarrayscript. Code can be found http://dl.dropbox.com/u/85931025/dlc1vampireturnscript%20%2B%20dlc1referencealiasarrayscript.7z.

minor spoiler:
Spoiler

These scripts seem to control the quest triggered vampire transformation in DG. It also seems to support players turning npcs into vamps.
User avatar
Dean Ashcroft
 
Posts: 3566
Joined: Wed Jul 25, 2007 1:20 am

Post » Sat Nov 17, 2012 8:47 pm

Not entirely related to the topic, but an update on what I was doing before:

- I've built a conflict-free method for universally adding to existing merchant containers that will respawn with them. There really wasn't a good method for doing this previously. It was frustrating to get working, but I'm happy it's done.

- I've designed a potion/poison system for the Synthetic Blood Serum to use that I hope other modders will want to use too (because it's cool). When used, the potion gives you the option to drink it or coat your weapon with it. You can do either, but drinking has no effect if you're not a vampire. Drinking feeds and provides immunty to sunlight and bllood thirst build-up for a day (so you won't need to feed until two days later, or you can feed one day later for sunlight immunity again). If you coat a weapon with it, it's a unique poison that only affects vampires (ignoring their normal poison immunity), draining -100 health, stamina, and magicka for 60 seconds.

The serums are rather powerful because they're expensive, rare, and specialized. I mostly wanted to experiment and see if a single item could act like a potion or poison at once. It's a cool system that really works well.
User avatar
Oscar Vazquez
 
Posts: 3418
Joined: Sun Sep 30, 2007 12:08 pm

Post » Sat Nov 17, 2012 8:27 pm

@SushiSquid

It really works? How you did it? It gives you a message about what would you like to do with this potion?
User avatar
Monika
 
Posts: 3469
Joined: Wed Jan 10, 2007 7:50 pm

Post » Sun Nov 18, 2012 2:15 am

- I've built a conflict-free method for universally adding to existing merchant containers that will respawn with them. There really wasn't a good method for doing this previously. It was frustrating to get working, but I'm happy it's done.
That sounds interesting. Did you post it anywhere?
User avatar
Lavender Brown
 
Posts: 3448
Joined: Tue Jul 25, 2006 9:37 am

Post » Sun Nov 18, 2012 1:34 am

@SushiSquid

It really works? How you did it? It gives you a message about what would you like to do with this potion?

The potion itself doesn't do anything. It just triggers a potion/poison menu (with Drink and Coat options). If you choose potion, a spell with the potion's effect is cast on you. If you choose poison, a poison of that type is stuck into your inventory and automatically used. If you choose not to use the poison from its own menu (or if the weapon was already poisoned), no big deal. When you close the inventory menu, the poison will be removed and replaced with the potion ready to use again in either way.

Cleary having a serum that fights vampiric thirst, but can also be used to harm vampires is stolen straight from the http://en.wikipedia.org/wiki/Blade_%28film_series%29, and I make no secret of that.


That sounds interesting. Did you post it anywhere?
Yes, I did. You can find a short tutorial of how to use it and an example script right in http://www.gamesas.com/topic/1356345-adding-items-permanently-to-respawning-chests-without-editing-said-chests/ that was discussing a solution. I found it with a search.


I'll have a short tutorial and example scripts available for making potion/poisons, potion/scrolls, or other combination potions later on.

Edit:
The http://www.gamesas.com/topic/1406766-creating-a-dual-potionpoison/ on how to make dual potion/poisons is up.
User avatar
Prohibited
 
Posts: 3293
Joined: Tue Jun 12, 2007 6:13 am

Post » Sun Nov 18, 2012 6:24 am

I wonder if they are delaying the next patch to coincide with hearthfire. Well at least to lay the groundwork for its release.
User avatar
Lifee Mccaslin
 
Posts: 3369
Joined: Fri Jun 01, 2007 1:03 am

Post » Sun Nov 18, 2012 4:53 am

Or they simply don't care ._. If they did the psc files would have been available loooooong ago! And if version compatibility is really a problem they could simply release it as an optional additional download like those HD textures, it really doesn't take Mensa membership to come up with this solution.

Or whatever I just want those sources!

Okay I don't actually know what a company has to do to publish stuff on Steam but looking at Volition and all their DLCs for Saints Row 3 I'm 100% sure it takes less than 2 minutes to do it... ._.
User avatar
Rachael
 
Posts: 3412
Joined: Sat Feb 17, 2007 2:10 pm

Post » Sat Nov 17, 2012 7:53 pm

I wonder if they are delaying the next patch to coincide with hearthfire. Well at least to lay the groundwork for its release.
I hope not. That would mean that we would have to go for another whole month without the actual .psc files. There's bound to be another patch coming up soon, though, so hopefully there will be an update then and allow certain modders to get back to work on their projects. Tales of Lycanthropy, which was supposed to have at least one new module released by now, has been put under indefinite hold when the creator of the mod discovered that there were no .psc files to work with in the CK. It's also been throwing wrenches into Arthmoor's plans for the unofficial patches as well.
User avatar
Aliish Sheldonn
 
Posts: 3487
Joined: Fri Feb 16, 2007 3:19 am

Post » Sun Nov 18, 2012 6:31 am

I thank you for the DLC1NPCMonitoringPlayerScript -- with it, I was able to create a script that causes vanilla followers to start to explore on their own if the player stays idle.

Any way to get Serana's leveling script, if I can put in requests? I want to see how it works -- I've an inkling, but I want to see how Bethesda did it.
User avatar
Nina Mccormick
 
Posts: 3507
Joined: Mon Sep 18, 2006 5:38 pm

Post » Sat Nov 17, 2012 6:02 pm

Is DLC1NPCMonitoringPlayerScript the one that spams the logs with all that stuff about sandboxing and the player radius? I'd really like to silence those messages since they're not actual errors.
User avatar
Eire Charlotta
 
Posts: 3394
Joined: Thu Nov 09, 2006 6:00 pm

Post » Sun Nov 18, 2012 6:41 am

Yes, I think so -- lots of debugs about Serana sandboxing or not sandboxing. I think the debug comments aren't commented out.

A thought occurs to me: if we use the contents of these decoded compiled files, but we don't use Dawnguard's meshes/textures or edit its content, are we still obligated to make the mod require Dawnguard?
User avatar
rae.x
 
Posts: 3326
Joined: Wed Jun 14, 2006 2:13 pm

Post » Sun Nov 18, 2012 4:17 am

CK update just came in and guess what... Dawnguard script sources :)
User avatar
Natalie J Webster
 
Posts: 3488
Joined: Tue Jul 25, 2006 1:35 pm

PreviousNext

Return to V - Skyrim