Jump to content

WestTek

Premium Member
  • Posts

    11
  • Joined

  • Last visited

Nexus Mods Profile

About WestTek

WestTek's Achievements

Apprentice

Apprentice (3/14)

0

Reputation

  1. Thanks for the insight! I was just offered that spell solution. It works well and I think I'll stick with it for now. Much appreciate your input fellas!
  2. I see. I don't feel further assistance with this is necessary. I have been provided an alternative method using a spell effect I believe. Thank you however!
  3. Greetings! I'll try making this short and straight to the point:I want the game to trigger a custom sound (T51Battery_CapacityLow) when the player is in a Power Armor suit and only when the fusion core battery (AmmoFusionCore health according to the game) reaches below 45%. I was given some general instructions by kinggath down below but I could use some further help. See my own script results at the end. Any assistance is highly appreciated and will be credited in my work. ==============General Guideline:============== - Setup a Quest, add an Alias to the player, add a script to that player alias - In that script you're going to be watching an event that happens periodically, use the (OnLocationChange) event - In it, you'll check if they are using PowerArmor (IsInPowerArmor) - Once you've confirmed you're in power armor, you're going to check that power armor's inventory for a fusion core, and use (GetItemHealthPercent) on it - If it's under 25, you play your sound, and store the reference to the fusion core, so next time this triggers you can check if it's the same fusion core so that it doesn't keep playing the sound over and over. Summary: Set up: ObjectReference Property oLastFusionCore Auto Hidden at the top of your script, and then during the same check of GetItemHealthPercent < 25, you check if that ref != oLastFusionCore In fact you don't even need an alias to the fusion core with this method, just one to the player So, setup a Quest, add an Alias to the player, add a script to that player alias, use the OnLocationChange event, and then write code to do what I described above. =======My script======= Scriptname T51DACSBatteryCapacty extends ReferenceAlias ObjectReference Property oLastFusionCore Auto Hidden Event OnLocationChange(Location akOldLoc, Location akNewLoc) if (Game.GetPlayer().GetCurrentLocation() == akOldLoc) if (Game.GetPlayer().IsInPowerArmor()) if (Game.GetPlayer().GetItemCount(AmmoFusionCore) == 1) if (AmmoFusionCore.GetItemHealthPercent() < 45 ) int instanceID =T51Battery_CapacityLow.play(self) endIf endIf endIf endIf endEvent
  4. Thanks. There is also this entry that I have to put in there before the others, it asks if the player is in power armor. Otherwise the sound will play when he's out of the armor. bool Function IsInPowerArmor() Thank you, I'm gonna go back to the lessons to understand the scripting further and will come back to look at this reply.
  5. Greetings fellow modders. I've been looking around the scripting section of the wiki looking for clues on how I can create a script that plays a custom sound when Power Armor Battery levels reach 25 or below and plays each time it is at this level when the player gets into the Power Armor suit. Here's my dilemma: - My A.C.S. sound mod replaces UI_PowerArmorBattery_CapacityLow.wav with a custom sound. (this sound is triggered when the fusion core ammo is at 25 or below) - Unfortunately the game is hard coded to trigger this sound when the player exits the Power Armor (according to one Bethesda dev from the CK forums) - A possible alternative solution? To script a play event when the script detects AmmoFusionCore is 25 or less. I am new to scripting but have been reading on papyrus primer on the wiki. Any help in this matter would be greatly appreciated! P.S. Here is where I left off in my research.
  6. It begins with a simple idea.
  7. Greetings! Does anyone know how to convert the robotic NPC companion voice files (.fuz) into other formats? I tried using the skyrim audio converter program but it's been crashing on me every time. Here are my settings: http://i.imgur.com/7RrwIy1.png
×
×
  • Create New...