Jump to content

ModStat


Callirgos

Recommended Posts

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

  • Recently Browsing   0 members

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