Callirgos Posted April 7, 2011 Share Posted April 7, 2011 Hey, I'm having an issue figuring out how to Mod a Players current Health from a Dialogue. I can Damage the stat, but that may kill someone! Ha. How do I set a players current health to 25% from a dialogue? Thanks - Link to comment Share on other sites More sharing options...
rickerhk Posted April 7, 2011 Share Posted April 7, 2011 In the quest (say you named it MyQuest) with your dialog, create a quest script. scn MyQuestScript short iPlayerCurrentHealth short iDamageHealthEnable BEGIN GameMode if iDamageHealthEnable == 1 set iPlayerCurrentHealth to Player.GetAV Health set iPlayerCurrentHealth to .75 * iPlayerCurrentHealth Player.DamageAV Health iPlayerCurrentHealth set iDamageHealthEnable to 0 endif END In the result script of the dialog, do this: set MyQuest.iDamageHealthEnable to 1 The damage will take effect as soon as dialog is exited. If you need it to occur before that, use BEGIN MenuMode instead of BEGIN GameMode Link to comment Share on other sites More sharing options...
Recommended Posts