bananakillerBRO Posted October 4, 2017 Share Posted October 4, 2017 I was just wondering how to have the player be healed via dialog. Link to comment Share on other sites More sharing options...
dubiousintent Posted October 4, 2017 Share Posted October 4, 2017 Please see the wiki "Getting started creating mods using GECK" article. "Dialogue & Lip-synch" section: "TIP: Conversation/Quest system" points out the quest with the dialog all the doctors use. "Scripting" section: "TIP: Get Actor Health functions". -Dubious- Link to comment Share on other sites More sharing options...
madmongo Posted October 4, 2017 Share Posted October 4, 2017 A good example would be to look at the quest VDoctors. That's what all of the doctors in the game use. The quest is set up to check if the player actually needs healing or their addictions removed, etc. before taking their caps. The doctors also have different comments (and different fees) based on how hurt the player is, ranging from "you've got a few scrapes and a hangnail" to "Holy God what battlefield did you crawl off of?" Quest stage 10 heals the player's wounds, and all it does is a resethealth: ;Set to heal the player of physical damagePlayer.ResetHealth Quest stage 20 removes addictions and does this: ;Set to heal the player of addictionsRemoveSpell WithdrawalAlcoholRemoveSpell WithdrawalAntNectarRemoveSpell WithdrawalBuffoutRemoveSpell WithdrawalHydraRemoveSpell WithdrawalJetRemoveSpell WithdrawalMentatsRemoveSpell WithdrawalMorphineRemoveSpell WithdrawalPsychoRemoveSpell WithdrawalQuantumNukacolaRemoveSpell WithdrawalReboundRemoveSpell WithdrawalSteadyRemoveSpell WithdrawalTobaccoRemoveSpell WithdrawalTurboShowMessage AddictionRemovalMsgSet Generic.Addicted to 0 Quest stage 30 heals the player's rads: player.RestoreAV RadiationRads 1000 You don't have to implement those as quest stages. You can just use those script functions in the result scripts of your various dialog options. Link to comment Share on other sites More sharing options...
Jokerine Posted October 4, 2017 Share Posted October 4, 2017 Similar to what madmongo said, if it's just HP you're after, just use "Player.ResetHealth" in the dialogue's result script. Link to comment Share on other sites More sharing options...
Mktavish Posted October 4, 2017 Share Posted October 4, 2017 Just grab the script with high light ... copy/paste Then go through the logic as you have the trigger object in view on the render screen. Or the dialogue tools ... It all helps to formulate the outcome ... and every peice is a tool to help you render your vision. Link to comment Share on other sites More sharing options...
bananakillerBRO Posted October 6, 2017 Author Share Posted October 6, 2017 Nice, got it working. Thanks my dudes. Link to comment Share on other sites More sharing options...
Recommended Posts