Jump to content

Variable Damage (OBSE)


Wildcard89

Recommended Posts

I uploaded my first public mod less than a week ago. I'm new at scripting, and the enchantment on the sword is completely comprised of scripts. I thought it would give me good practice. I was able to complete two of the three scripts, but the last one is a real pain.

I'm trying to get the target's health to decrease by 33% of it's CURRENT health. I've gone through what seems like a billion different commands.

 

 

float damage ; Not sure how far it goes into decimals

short chp

 

begin ScriptEffectStart

set chp to GetAVC 8

set damage to chp / -3

 

 

if GetRandomPercent <= 100 ; Testing purposes, 10 when finished

ModAVC 8 damage

endif

endif

end

 

 

 

It has an area of effect of 15.

 

The script doesn't work, but I have no idea why. I've looked at countless functions and entered them each precisely. It just doesn't want to work.

 

I'm almost ready to throw something through the wall. If someone could pleas help me I would be forever grateful.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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