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

[EO] add a stat based bonus to spelltypes


horsehead
 Share

Recommended Posts

So this tutorial will teach you to add a stat based bonus to your spelltypes. That means maybe INT will boost your spelldamage but WILL will boost your healingpower.

Lets beginn.

Only Sever Side

in ModCombat

Search:

> Vital = Spell(spellnum).Vital

and below add this:

> ' add a Vitalbonus to the Spelltypes thought Playerstats
>    
>     If Spell(spellnum).Type = SPELL_TYPE_HEALHP Then
>     Vital = Vital + (GetPlayerStat(index, Stats.Willpower) * 4)
>     End If
>    
>     If Spell(spellnum).Type = SPELL_TYPE_DAMAGEHP Then
>     Vital = Vital + (GetPlayerStat(index, Stats.Intelligence) * 5)
>     End If

I hope this will help the Eclipse Community… but its my first tutorial

Enjoy it!

Please give a Feedback to this^^
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
For those Doing complex scaling Remember to round when multiplying by decimals or dividing
Example:

> Vital = Spell(spellnum).Vital
>     Vital = **Round(**(Vital * 0.5)**)** * **Round(**(Player(index).Level * 1.14)**)** * **Round(**(Stats.Intelligence + (Stats.Willpower / 2))**)** 
>
>   If Spell(spellnum).Type = SPELL_TYPE_HEALHP Then
>     Vital = Vital + **Round(**(GetPlayerStat(index, Stats.Willpower) * 0.3)**)**
>   End If
>    
>     If Spell(spellnum).Type = SPELL_TYPE_DAMAGEHP Then
>     Vital = Vital + **Round(**(GetPlayerStat(index, Stats.Intelligence) * 0.3)**)**
>   End If
Link to comment
Share on other sites

  • 6 months later...

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...