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

Spell Damage Stats


Entei
 Share

Recommended Posts

Good guess my question is easy to solve, I know + - what to do, but do not know where. 
Let me explain what I want to do:

I want to create a ComboBox in Spell Editor with the following information, Str / Def / Int … 
And the cause of Spell Damage is based on the attribute.

Example:

```

If cbxAtributo = Strength Then
DamageSpell = (DamageSpell + (GetPlayerStat(index, Strength) * 0,3) '+30% Stats Strength
End If

If cbxAtributo = Defense Then
DamageSpell = (DamageSpell + (GetPlayerStat(index, Defense) * 0,3) '+30% Stats Defense
End If

```
Just do not know where that is so I hope someone can help me.
Link to comment
Share on other sites

It looks bit wrong, you need to save that what kind of type "Str / Def / Int …" is this spell into spell.dat from editor, so mess with source where it saves it, also recs if im not wrong, and then make check when the spell is used with if, or better select case.

I have forgor mostly everything about eo code but it should be smtn like this

Primary as byte ( as example and then thisPrimary data will be from 1 to 4 or how many attributes are there.)
Link to comment
Share on other sites

> It looks bit wrong, you need to save that what kind of type "Str / Def / Int …" is this spell into spell.dat from editor, so mess with source where it saves it, also recs if im not wrong, and then make check when the spell is used with if, or better select case.
>
> I have forgor mostly everything about eo code but it should be smtn like this
>
> Primary as byte ( as example and then thisPrimary data will be from 1 to 4 or how many attributes are there.)

Can you help me with this? Not logical damage of Spell just be declared Vital. 

Where should I change the source? In the Server and the client.
Link to comment
Share on other sites

Entei, you need go to ModTypes, Client and Server…

 PlayerSpellRec, and add you new type here. 

You need too declare the function of you combobox in Spell Editor ~ in modEditor. 

AND, in modconstants if you use this in sub.

"ex: Spell_Type_STR.. "

case counter,you's modifications do not enougth nothing.

I think, you no need declare the Dim of the combobox in sub castspell.
Link to comment
Share on other sites

> Entei, you need go to ModTypes, Client and Server…
>
>  
>
>  PlayerSpellRec, and add you new type here. 
>
>  
>
> You need too declare the function of you combobox in Spell Editor ~ in modEditor. 
>
>  
>
> AND, in modconstants if you use this in sub.
>
> "ex: Spell_Type_STR.. "
>
>  
>
>  
>
> case counter,you's modifications do not enougth nothing.
>
>  
>
> I think, you no need declare the Dim of the combobox in sub castspell.

I do not want to add a new type of spell, I just want to damage all of them are based on stats. 
I believe it is easy, but do not know how to add another option in the spell.
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...