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

[EO] Complex Spell Scaling Equation (SERVER ONLY)


RyokuHasu
 Share

Recommended Posts

There are a few of these out already and i thought I would share my Slightly more complex Spell scaling with everyone. It combines a few existing tutorials and adds in a but more math .

SERVER ONLY

In modCombat

Find: "Sub CastSpell" scroll down a bit an find " ' set the vital"

you should see

```
Vital = Spell(spellnum).Vital

```Or your previous mod…

Replace it with
```
Vital = Spell(spellnum).Vital

    Vital = Round((Vital * 0.7)) * 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.6))
    End If

    If Spell(spellnum).Type = SPELL_TYPE_DAMAGEHP Then
    Vital = Vital + Round((GetPlayerStat(index, Stats.Intelligence) * 0.6))
    End If

```

***KEEP THE ORIGINAL VITAL LOW WHEN MAKING SPELLS!!!***

The point of scaling them is so that you dont have to raise the vitals in the editer any more that 100 at the very most

You may fiddle witht the numbers to adjust it as you see fit.

Hope this make Your casting classes more fun  :P

*It is not recomended that you edit this extensively with out understanding of basic algebra and stat functions
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 4 weeks later...
  • 1 month later...
How would i apply this to a code that was customized?

example(unless this was normally like this…the area was edited so much i dont know... but this is only place with vitals=vitals(bla) ect in it in my whole module)

If Spell(spellNum).Special > 0 Then
        Select Case Spell(spellNum).Special
            Case 1 'Fire Spell
                Vital = Spell(spellNum).Vital + (GetPlayerStat(index, intelligence) * (10 * GetPlayerLevel(index)))
            Case Else 'Anything else
                Vital = Spell(spellNum).Vital
            End Select
    Else
    Vital = Spell(spellNum).Vital
    End If

I tried replacing the bottom one or just one part of the code at a time and all of them with the whole thing u said to replace... but every time i get rte's or errors...
Link to comment
Share on other sites

No actually (even tho it might have been clear as hell to most people with a brain which i dont have half the time >.>) you helped me realize why i was getting it wrong… i found out how to make my own spell scaling mods out of it after u helped me see what was wrong with it XD
Link to comment
Share on other sites

  • 4 weeks later...
  • 7 months later...
  • 2 weeks later...
Hopefully it is ok to put this here. This tutorial will make all spells scale  equal correct? Such that a warrior spell will scale at the same rate as a mage spell.

I would like to make it so warrior spells scale the exact same way, but have there own formula. Not quit sure how to do something like this. I am assuming it would be a case type thing?

like Case1: (this tutorial)
Case2: (this tutorial + new forumula)

Would I be correct? Also any help would be appropriated, I am not very good at coding, learning as I go.
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...