About this mod
Adds a small script to auto equip the items given from the "Prepare For Adventure" spell provided by the Apocalypse mod by EnaiSiaion
- Requirements
- Permissions and credits
- Changelogs
Script looks like this:
Scriptname WB_EquipSpellItem Extends Quest Hidden
ReferenceAlias Property Alias_WB_Item1 Auto
ReferenceAlias Property Alias_WB_Player Auto
ReferenceAlias Property Alias_WB_Item4 Auto
ReferenceAlias Property Alias_WB_Item2 Auto
ReferenceAlias Property Alias_WB_Item3 Auto
Event oninit()
Actor ThePlayer = Game.GetPlayer()
ThePlayer.EquipItem(Alias_WB_Item1.GetReference().GetBaseObject(), false, false)
ThePlayer.EquipItem(Alias_WB_Item2.GetReference().GetBaseObject(), false, false)
ThePlayer.EquipItem(Alias_WB_Item3.GetReference().GetBaseObject(), false, false)
ThePlayer.EquipItem(Alias_WB_Item4.GetReference().GetBaseObject(), false, false)
EndEvent
Runs on spell quest start.
Don't look, my previous inaccuracies haunt me.
Since I hate myself, I decided I would throw away 8 hours of my day to learn how to overhaul a spell I will only use for 8 minutes.
I originally intended for the mod to replace the Prepare For Adventure script file included in Apocalypse(qf_wb_fabricateequipment_que_030dd9c7) but I have no clue what I'm doing... so instead it creates it's own script file that I then attached to the magic effect record of the spell itself.
I designed the auto equip to happen two seconds after the spell is cast to account for the delay between casting the spell and the items entering your inventory(I kept assuming I was doing something wrong, but no, the game is just slow.)
esp flagged esl, because that's what god intended.
Here's what the source looks like:
Scriptname WB_EquipSpellItem Extends ActiveMagicEffect
ReferenceAlias Property Alias_WB_Item1 Auto
ReferenceAlias Property Alias_WB_Player Auto
ReferenceAlias Property Alias_WB_Item4 Auto
ReferenceAlias Property Alias_WB_Item2 Auto
ReferenceAlias Property Alias_WB_Item3 Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
Utility.Wait(2)
Actor ThePlayer = Game.GetPlayer()
ThePlayer.EquipItem(Alias_WB_Item1.GetReference().GetBaseObject(), false, false)
ThePlayer.EquipItem(Alias_WB_Item2.GetReference().GetBaseObject(), false, false)
ThePlayer.EquipItem(Alias_WB_Item3.GetReference().GetBaseObject(), false, false)
ThePlayer.EquipItem(Alias_WB_Item4.GetReference().GetBaseObject(), false, false)
EndEvent
Is it shit? Is it not shit? Is it too basic to tell? idk.