Entei Posted July 8, 2014 Author Share Posted July 8, 2014 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 ThenDamageSpell = (DamageSpell + (GetPlayerStat(index, Strength) * 0,3) '+30% Stats StrengthEnd IfIf cbxAtributo = Defense ThenDamageSpell = (DamageSpell + (GetPlayerStat(index, Defense) * 0,3) '+30% Stats DefenseEnd If```Just do not know where that is so I hope someone can help me. Link to comment Share on other sites More sharing options...
Domino_ Posted July 8, 2014 Share Posted July 8, 2014 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 thisPrimary 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 More sharing options...
Entei Posted July 9, 2014 Author Share Posted July 9, 2014 > 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 More sharing options...
My Brave Shine Posted July 9, 2014 Share Posted July 9, 2014 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 More sharing options...
Entei Posted July 10, 2014 Author Share Posted July 10, 2014 > 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now