Jump to content

adianda

Members
  • Posts

    9
  • Joined

  • Last visited

Nexus Mods Profile

About adianda

adianda's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. Thanks everybody for the help and advice. I got the script working now... Papyrus and the Creation Kit have an interesting learning curve.
  2. After some tinkering with the code and trying various things I came back to the original script with the debug messages added in. Scriptname HPWO_CompressionBandageTreatment extends activemagiceffect Message Property BandageMenu Auto Const Mandatory Potion Property HealHead Auto Const Mandatory Potion Property HealTorso Auto Const Mandatory Potion Property HealLeftArm Auto Const Mandatory Potion Property HealRightArm Auto Const Mandatory Potion Property HealLeftLeg Auto Const Mandatory Potion Property HealRightLeg Auto Const Mandatory Event OnEffectStart(Actor akTarget, Actor akCaster) BandageUseMenu() Debug.MessageBox("OnEffectStart") endEvent Function BandageUseMenu () Debug.MessageBox("BandageUseMenu") int aiButton = BandageMenu.show() If aiButton == 0 Debug.MessageBox("HealHead") Game.GetPlayer().EquipItem(HealHead, 1, true) ElseIf aiButton == 1 Game.GetPlayer().EquipItem(HealTorso, 1, true) ElseIf aiButton == 2 Game.GetPlayer().EquipItem(HealLeftArm, 1, true) ElseIf aiButton == 3 Game.GetPlayer().EquipItem(HealRightArm, 1, true) ElseIf aiButton == 4 Game.GetPlayer().EquipItem(HealLeftLeg, 1, true) ElseIf aiButton == 5 Game.GetPlayer().EquipItem(HealRightLeg, 1, true) EndIf endFunction I get the "OnEffectStart" and "BandageUseMenu" debug messages but the actual menu doesn't open. Any ideas folks cause Im fresh out at this point.
  3. Im trying to script an aid item that, on use, opens a menu that allows the player to choose a limb to heal for 5 points. When I use the item all of the effects except the menu work properly so im assuming I messed up when coding it but I can't figure out what is wrong. If anyone has any ideas on what I did wrong I would appreciate the help.
  4. Alright I solved my problem albeit in a very round-about way. I slightly modified a script I found online for applying Magic Effects over time via script and got it working for the most part. Doesn't increment values in a completely predictable way but it does the job for now. If anyone idea on how to increase an Actor Value PROPERLY without scripting using a Magic Effect I would love to know how you go about with your wizardry. I'd like to thank everyone on here for helping me out so quickly, honestly can't say thank you enough to you guys.
  5. So does anyone know why when I have 2 magic effects for modifying an actor value, one for increasing and one for decreasing, that the magic effect for increasing the actor value's... value does not work? The decreasing effect has the detrimental flag marked and it works perfectly but the increasing effect does nothing even though its effect appears in the status effects tab in game. As a test I flagged the increasing effect as detrimental and it worked for reducing the value but the second I remove that flag it no longer has any effect on the actor value. Also tried changing Effect Archetype to Peak Value Modifier but got the same results. Both effects are set to Value Modifier, Fire and Forget, and Self delivery; both are also applied by potions in game. Neither effects have any scripting attached to them as well as having the No Area flag. Ive been trying to figure this out for the last couple days so any help would be greatly appreciated. EDIT: At this point I have managed to get the value to increase by one increment of the effect (80 up to 81.2) but after that it stops increasing the value; I did this by applying the recovery flag. Will continue my mad science...
  6. Anyone have any ideas on how to find the damage taken by a source whether it be by weapon or otherwise. I'm trying to figure it out right now and if I find anything I'll update this post but at the moment I have nothing. EDIT: Never mind, this was a stupid question fueled by sleep deprivation... I'm not a very smart man.
  7. Thanks SKK50 and Reneer for responding so quick, I am pretty surprised at how fast you guys responded. So I've began using the script you sent me as a template for a OnHit Event in my management quest in charge of running and tracking all of the various aspects of the mod but when I begin trying to use the OnHit event it starts throwing an error at me and I can't figure out what it is trying to tell me. Can't find anyting online about the error either. It only occurs once I type up the OnHit Event so I know its there 100%. The error: C:\Users\\AppData\Local\Temp\PapyrusTemp\HPWO_Manager_Script.psc(13,0): the parameter types of function onhit in the empty state on script hpwo_manager_script do not match the original script scriptobject Scriptname HPWO_Manager_Script extends Quest ObjectReference Property PlayerRef Auto Const Mandatory ActorValue Property HPWO_Pain Auto Mandatory GlobalVariable[] Property HPWO_PainLimits Auto Const Potion[] Property HPWO_PainEffects Auto Const Event OnQuestInit() RegisterForHitEvent(PlayerRef) EndEvent Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) EndEvent Event OnQuestShutdown() UnregisterForAllEvents() EndEvent
  8. I'm making a Health Overhaul mod for Fallout 4 that utilizes a variety of new Actor Values that are somewhat similar to the vanilla survival needs such as hunger and thirst. What I'm trying to do right now is make it so that whenever the player takes damage a script will run that modifies the aforementioned Actor Values based on the damage taken and the type of the damage received. For example if the player takes 20 damage from a pipe gun, several AVs would get modified in relation to the 20 ballistic damage taken (adding 20 to them or something to a similar effect). I'm not looking to apply enchantments to weapons to modify the Actor Values as that wouldn't achieve the desired results. I'm a noob when it comes to Papyrus so I'm having trouble achieving the results I want using the OnHit event. If anyone has any advice or wants to help that would be greatly appreciated. I'll leave a link to my plans for the mod below in case anyone is interested in assisting me with this road stop I've hit. Hardcore Player Wellness Overhaul Documentation
×
×
  • Create New...