Jump to content

How to heal the player via dialog?


bananakillerBRO

Recommended Posts

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 damage
Player.ResetHealth

 

 

Quest stage 20 removes addictions and does this:

 

;Set to heal the player of addictions
RemoveSpell WithdrawalAlcohol
RemoveSpell WithdrawalAntNectar
RemoveSpell WithdrawalBuffout
RemoveSpell WithdrawalHydra
RemoveSpell WithdrawalJet
RemoveSpell WithdrawalMentats
RemoveSpell WithdrawalMorphine
RemoveSpell WithdrawalPsycho
RemoveSpell WithdrawalQuantumNukacola
RemoveSpell WithdrawalRebound
RemoveSpell WithdrawalSteady
RemoveSpell WithdrawalTobacco
RemoveSpell WithdrawalTurbo
ShowMessage AddictionRemovalMsg
Set 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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...