Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Npc spell damage?


xxXReichoXxx
 Share

Recommended Posts

i have a mod witch allows npc to use spells but its spell damage is always same. ex: it will always hit 700 vital dmg .

for spell atm its
```
InitDamage = Spell(spellNum).Vital + (Npc(MapNpc(mapNum).Npc(mapNpcNum).Num).Stat(Stats.intelligence) / 2)
Damage = InitDamage - Player(victim).Stat(Stats.willpower)
```that code is basically like = spell damage - player def (but it will still stay same)

If Npc uses melee hit it will vary so it doesnt always hit the same amount. so i thought if i could put spell dmg + melee so spell damage is always different.
id like to add here + physical damageĀ  but i have no idea how to code that.
Link to comment
Share on other sites

actually i tryed + Strength but it just adds the strength and damage is still same-.- .
lets say str is 255 and spell vit is 600 now it will just hit 855 and whenever it hits char its just the same this isnt really what i want. i want it to attack like its hitting with its basic attack.(dmg is different)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...