The reason I ask is I'm working on something (that already uses OBSE). If something is likely in a month or two, I'd rather put work on hold than create something that I'll then be keen to replace.
if FlyingProjectile == 0ForEach projectile <- aadpFastQuest.ListOfProjectiles Let FlyingProjectileOld := projectile["Value"] <------------------------------ this is where I think it is crashing because the array is empty.set TempProjectile to FlyingProjectileoldif (FlyingProjectileOld)if IsFormValid FlyingProjectileOld == 1if FlyingProjectileold.getdisabled == 0if FlyingProjectileold.GetMagicProjectileSpell != aadpPlasmaBoltfakeand so on...
if FlyingProjectile == 0ForEach projectile <- aadpFastQuest.ListOfProjectiles Let FlyingProjectileOld := projectile["Value"] <------------------------------ this is where I think it is crashing because the array is empty.set TempProjectile to FlyingProjectileoldif (FlyingProjectileOld)if IsFormValid FlyingProjectileOld == 1if FlyingProjectileold.getdisabled == 0if FlyingProjectileold.GetMagicProjectileSpell != aadpPlasmaBoltfakeand so on...
if FlyingProjectile == 0 if eval (ar_size aadpFastQuest.ListOfProjectiles) > 0 ForEach ...
scn CSHoldingBoxKitQuestScript;Quest script runs only when defining a standard kit.;Quest name associated with this script - CSwhx01Quest;==== Containers ====;CSwhx01InventoryNotepad;CSwhx01QuestNotepad;CSwhx01EquippedNotepad;CSwhx01Help01Ref;CSwhx01StdKitNotepadshort sGMFlag ;State of scriptint loLoopVar int loTotItemsref rItemRef ;used for holding container refref rItemObj ;used for holding object refref rContainer ;used for referencing a container. eg..playerfloat ftimerfloat fQuestDelayTimeshort sIsFinished ;Used by another script to tell when this script has completedshort sNoMessagesshort swhxButtonBegin GameMode if sGMFlag == 0 Return ; ================================================= ; 800 - Define Standard Kit ; ================================================= elseif sGMFlag == 800 ;Gets set from an object's script set sGMFlag to 820 ; ============= Setup - Clear Containers ============= elseif sGMFlag == 820 CSwhx01InventoryNotepad.RemoveAllItems CSwhx01QuestNotepad.RemoveAllItems set sGMFlag to 830 ; ============= Copy All Inventory to InventoryNotepad ============= elseif sGMFlag == 830 let rContainer := PlayerRef foreach rItemRef <- rContainer if rItemRef.IsEquipped ;Check what player has equipped if rItemRef.IsQuestItem ;is item a quest item as well? if so, then copy to equipment container rItemRef.CopyIR CSwhx01EquippedNotepad else rItemRef.CopyIR CSwhx01EquippedNotepad ;if not a quest item make copy anyhow to equipment container rItemRef.CopyIR CSwhx01InventoryNotepad ;And make a copy to the Inventory container endif else ;if item is NOT equipped, if rItemRef.IsQuestItem ;And is a quest item, then copy the item to the quest container rItemRef.CopyIR CSwhx01QuestNotepad else ;if item is NOT equipped and NOT a quest item then copy the item to the inventory container rItemRef.CopyIR CSwhx01InventoryNotepad endif endif loop let rItemRef := 0 set ftimer to 0 set sGMFlag to 840 ; =========================================== ; ============= Take a breather ============= elseif sGMFlag == 840 set ftimer to ftimer + GetSecondsPassed if ftimer > .01 set sGMFlag to 850 endif ; =========================================== ; ============= Now create streamlined inventory, ;ie one of each item from saved inventory that ISN'T already in the StdKit notepad ============= elseif sGMFlag == 850 SetShowQuestItems 1 ;Hide All Quest Items foreach rItemRef <- rContainer if rItemRef.IsQuestItem == 0 rItemRef.RemoveMeIR ;Remove all non-quest items from players inventory endif loop let rItemRef := 0 set loLoopVar to 0 set loTotItems to CSwhx01InventoryNotepad.GetNumItems Label 15 if loLoopVar < loTotItems set rItemObj to CSwhx01InventoryNotepad.GetInventoryObject loLoopVar Message "Streamlining Inventory..." if CSwhx01StdKitNotepad.GetItemCount rItemObj == 0 if IsQuestItem rItemObj == 0 Player.AddItemNS rItemObj 1 endif endif set loLoopVar to loLoopVar + 1 Goto 15 else set sGMFlag to 870 endif ; =========================================== ; ============= Open up the Standard Kit container ============= elseif sGMFlag == 870 CSwhx01StdKitNotepad.Activate Player ;When testing, this works. set sGMFlag to 880 ; =========================================== ; ============ Start restoring player inventory ==================== ; ===========This starts as soon as the player closes their inventory ====== elseif sGMFlag == 880 Message "Restoring Inventory..." Player.RemoveAllItems ;This works as well. SetShowQuestItems 0 ;Allow quest items to be seen again. set ftimer to 0 set sGMFlag to 890 ; =========================================== ; ============= Take another breather ============= elseif sGMFlag == 890 set ftimer to ftimer + GetSecondsPassed if ftimer > .01 CSwhx01InventoryNotepad.Activate Player ;For some reason it CTD's upon taking all items from the container. ; CSwhx01InventoryNotepad.RemoveAllItems Player 1 ;This was the default line. CTD's on this too. set sGMFlag to 900 ;Exit Point endif===============Partial script===== The rest wont' fire unless sGMFlag is set to another number.
elseif sGMFlag == 890 set ftimer to ftimer + GetSecondsPassed if ftimer > .01 CSwhx01InventoryNotepad.Activate Player ;For some reason it CTD's upon taking all items from the container. ; CSwhx01InventoryNotepad.RemoveAllItems Player 1 ;This was the default line. CTD's on this too. set sGMFlag to 900 ;Exit Point endif
Active Mod Files:00 Oblivion.esm01 All Natural Base.esm [Version 1.0]02 Francesco's Leveled Creatures-Items Mod.esm [Version 4.5bSI]03 Francesco's Optional New Items Add-On.esm [Version 4.5bSI]04 Cobl Main.esm [Version 1.72]05 Oscuro's_Oblivion_Overhaul.esm [Version 1.34]06 Mart's Monster Mod.esm [Version 3.7b3p3]07 FCOM_Convergence.esm [Version 0.9.9MB3]08 Armamentarium.esm [Version 1.35]09 Artifacts.esm [Version 1.1]0A Kvatch Rebuilt.esm0B Better Cities Resources.esm [Version 4.8.0]0C Toaster Says Share v3.esm0D Cobl Races TNR.esp [Version 1.53]0E Cobl Races TNR SI.esp [Version 1.53]0F Unofficial Oblivion Patch.esp [Version 3.3.3]10 DLCShiveringIsles.esp11 Unofficial Shivering Isles Patch.esp [Version 1.4.0]12 Better Cities .esp13 Francesco's Optional Chance of Stronger Bosses.esp14 Francesco's Optional Chance of Stronger Enemies.esp++ FCOM_Francescos.esp [Version 0.9.9]++ FCOM_FrancescosItemsAddOn.esp [Version 0.9.9]15 FCOM_FrancescosNamedBosses.esp [Version 0.9.9]16 Fran Armor Add-on.esp17 Fran_Lv30Item_Maltz.esp18 All Natural.esp [Version 1.1]19 All Natural - SI.esp [Version 1.0]1A Immersive Interiors.esp [Version 0.7]1B Immersive Interiors - Lights Addon.esp [Version 0.7]++ Diverse Voices.esp [Version 0.1a]1C All Natural - Real Lights.esp [Version 1.1]1D Book Jackets Oblivion.esp++ Item interchange - Extraction.esp [Version 0.76]1E Enhanced Economy.esp [Version 5.0.2]1F DLCHorseArmor.esp20 DLCHorseArmor - Unofficial Patch.esp [Version 1.0.6]21 DLCOrrery.esp22 DLCOrrery - Unofficial Patch.esp [Version 1.0.4]23 DLCVileLair.esp24 DLCVileLair - Unofficial Patch.esp [Version 1.0.6]25 DLCMehrunesRazor.esp26 DLCSpellTomes.esp++ DLCSpellTomes - Unofficial Patch.esp [Version 1.0.1]++ MaleBodyReplacerV4.esp27 Armamentium female.esp28 DLCThievesDen.esp29 DLCThievesDen - Unofficial Patch.esp [Version 1.0.7]2A Cobl Glue.esp [Version 1.72]2B Cobl Si.esp [Version 1.63]2C Bob's Armory Oblivion.esp2D FCOM_BobsArmory.esp [Version 0.9.9]2E Oblivion WarCry EV.esp [Version 1.08a]2F FCOM_WarCry.esp [Version 0.9.9MB3]30 Oscuro's_Oblivion_Overhaul.esp [Version 1.34]++ ArmamentariumLLVendors.esp [Version 1.35]++ ArmamentariumLLMagic.esp [Version 1.35]31 ArmamentariumArtifacts.esp [Version 1.35]32 OOO 1.32-Cobl.esp [Version 1.72]33 Mart's Monster Mod - Additional Enemy NPC Vars.esp [Version 3.7b3p3]34 FCOM_Convergence.esp [Version 0.9.9Mb3]++ FCOM_EntropicOrderRebalance.esp [Version 0.9.9beta2]35 FCOM_RealSwords.esp [Version 0.9.9]36 FCOM_DurabilityAndDamage.esp [Version 0.9.9]++ Mart's Monster Mod - More Passive Wildlife.esp [Version 3.7b3p3]++ FCOM_SaferRoads.esp [Version 0.9.9]++ FCOM_LessRats.esp [Version 0.9.9]++ FCOM_NoWyverns.esp [Version 0.9.9]37 Mart's Monster Mod - Extra Wounding.esp [Version 3.7b3p3]++ Mart's Monster Mod - Looting NPCs & Creatures.esp [Version 3.7b3p3]++ Mart's Monster Mod - No Reavers.esp [Version 3.7b3p3]38 Mart's Monster Mod - No Carrion Rats.esp [Version 3.7b3p3]++ Mart's Monster Mod - No Blood.esp [Version 3.7b3p3]++ Mart's Monster Mod - No Undead Rise.esp [Version 3.7b3p3]++ Mart's Monster Mod - No Slimes.esp [Version 3.7b3p3]39 Mart's Monster Mod - Safer Quest Locations.esp [Version 3.7b3p3]3A Mart's Monster Mod - Dungeons of MMM.esp [Version 3.7b3p3]3B Mart's Monster Mod - Hunting & Crafting.esp [Version 3.7b3p3]3C Mart's Monster Mod - Farm Animals.esp [Version 3.7b3p3]++ Mart's Monster Mod - Slof Horses Complete.esp [Version 3.7b3p3]++ Mart's Monster Mod - Diverse Runeskulls Loot.esp [Version 3.7b3p3]++ FCOM_DiverseGuardUnity.esp [Version 0.9.9]++ FCOM_BobsGuardUnity.esp [Version 0.9.9]++ FCOM_HungersUnitySI.esp [Version 0.9.9]3D FCOM_FriendlierFactions.esp [Version 0.9.9]3E FCOM_MoreRandomSpawns.esp [Version 0.9.9]3F FCOM_MoreRandomItems.esp [Version 0.9.9]++ Mart's Monster Mod - Shivering Isles.esp [Version 3.7b3p3]++ ArmamentariumLL4OOO.esp [Version 2.01]++ ArmamentariumLLMagicOOO.esp [Version 1.35]40 Fransfemale.esp41 OOO-WaterFish.esp [Version 1.34]++ MMM-Cobl.esp [Version 1.69]42 Artifacts.esp [Version 1.1]++ Artifacts - ArmaCompleteAddon.esp [Version 1.0]43 Kvatch Rebuilt.esp++ Kvatch Rebuilt - OOO Compatibility.esp44 Kvatch Rebuilt - Leveled Guards - FCOM.esp45 Kvatch Rebuilt Weather Patch.esp46 GlenvarCastle.esp47 DLCBattlehornCastle.esp48 DLCBattlehornCastle - Unofficial Patch.esp [Version 1.0.5]49 DLCfrostcrag.esp4A FrostcragRebornCobl.esp4B Knights.esp4C Knights - Unofficial Patch.esp [Version 1.1]4D EVE_KnightsoftheNine.esp++ FCOM_Knights.esp [Version 0.9.9Mb3]4E ElsweyrAnequina.esp++ ElsweyrAnequinaFemaleBody.esp++ ElsweyrAnequina - Races HGEC-Robert.esp [Version 1.1]4F PTMudwater.esp++ FCOM_UnofficialFranArmorAddon.esp [Version 0.9.9]50 Better Cities - House price patch.esp [Version 1.0]51 Harvest [Flora].esp [Version 3.0.0]++ Harvest [Flora] - Shivering Isles.esp [Version 3.0.0]++ Harvest [Flora] - DLCVileLair.esp [Version 3.0.0]52 Harvest [Flora] - DLCFrostcrag.esp [Version 3.0.0]53 EVE_ShiveringIslesEasterEggs.esp54 Toggleable Quantity Prompt.esp [Version 3.1.1]55 Enhanced Economy - House prices.esp [Version 1.0]56 Kyoma's Spell Renamer.esp [Version 3.0.1]57 SupremeMagicka.esp [Version 0.90]58 SM_ShiveringIsles.esp [Version 0.86]++ SM_DLCSpellTome.esp [Version 0.80]++ SM_OOO.esp [Version 0.89]++ SM_MMM.esp [Version 0.89]++ SM_COBL.esp [Version 0.86]59 SM_EnchantStaff.esp [Version 0.80]++ SM_Scrolls.esp [Version 0.84]++ SM_SigilStone.esp [Version 0.83]5A MidasSpells.esp5B Poison Equipper.esp5C nGCD.esp5D nGCD Oghma Infinium.esp++ nGCD Skeleton Key.esp++ Item interchange - Placement for FCOM.esp [Version 0.76]++ Item interchange - Placement for Frostcrag Reborn.esp [Version 0.76]++ EVE_KhajiitFix.esp++ Mart's Monster Mod - Resized Races.esp [Version 3.7b3p3]5E Cobl Races.esp [Version 1.52]++ Cobl Races - Balanced.esp [Version 1.52]5F Better Cities Full.esp [Version 4.8.0]60 Better Cities - VWD of the IC.esp [Version 4.7.0]61 Better Imperial City.esp [Version 4.8.0]62 Better Cities - COBL.esp [Version 2.1]63 FCOM_Archery.esp [Version 0.9.9]++ Cobl Filter Late MERGE ONLY.esp [Version 1.53]64 Cobl Silent Equip Misc.esp [Version 01]** All Natural - Indoor Weather Filter For Mods.esp [Version 1.1]++ CS_SM_NoGreenLight.esp65 CS_MegaEnchantment.esp66 CS_ArmoryHideOut.esp67 CS_DarNBookPlacement.esp68 CS_Dates_Training.esp69 Bashed Patch, 0.esp6A CS_HoldingBox.esp
Active Mod Files:00 Oblivion.esm01 Unofficial Oblivion Patch.esp [Version 3.3.3]02 DLCShiveringIsles.esp03 Unofficial Shivering Isles Patch.esp [Version 1.4.0]04 DLCHorseArmor.esp05 DLCHorseArmor - Unofficial Patch.esp [Version 1.0.6]06 DLCOrrery.esp07 DLCOrrery - Unofficial Patch.esp [Version 1.0.4]08 DLCVileLair.esp09 DLCVileLair - Unofficial Patch.esp [Version 1.0.6]0A DLCMehrunesRazor.esp0B DLCSpellTomes.esp0C DLCThievesDen.esp0D DLCThievesDen - Unofficial Patch.esp [Version 1.0.7]0E DLCBattlehornCastle.esp0F DLCBattlehornCastle - Unofficial Patch.esp [Version 1.0.5]10 DLCfrostcrag.esp11 Knights.esp12 Knights - Unofficial Patch.esp [Version 1.1]13 Toggleable Quantity Prompt.esp [Version 3.1.1]14 CS_Dates_Training.esp15 Bashed Patch, 0.esp16 CS_HoldingBox.esp