horsehead Posted February 8, 2011 Author Share Posted February 8, 2011 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 Sidein ModCombatSearch:> Vital = Spell(spellnum).Vitaland 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 IfI hope this will help the Eclipse Community… but its my first tutorialEnjoy it!Please give a Feedback to this^^ Link to comment Share on other sites More sharing options...
ohnoitsbenjii Posted February 22, 2011 Share Posted February 22, 2011 You failed to mention whether this was server or client side, and which mod it is in. Please edit, as this is a simple, but useful tutorial. :DD Thank you very much for this. Link to comment Share on other sites More sharing options...
crzyone9584 Posted February 22, 2011 Share Posted February 22, 2011 Should be in modCombat in server side if im not mistaken do to your sending the index and not MyIndex which is client side. Link to comment Share on other sites More sharing options...
Guest Posted February 22, 2011 Share Posted February 22, 2011 Most combat procedures are handled server side, so yes, this is meant to be server side. Link to comment Share on other sites More sharing options...
Helladen Posted February 22, 2011 Share Posted February 22, 2011 Index is used in some of the packet handlers client side, but the real way you can tell if it's client or server is if it's modifying damage, items, etc it has to be the server. Link to comment Share on other sites More sharing options...
horsehead Posted February 23, 2011 Author Share Posted February 23, 2011 Its how you guys sayd all server side in ModCombat.Edited the first post. Link to comment Share on other sites More sharing options...
RyokuHasu Posted March 11, 2011 Share Posted March 11, 2011 For those Doing complex scaling Remember to round when multiplying by decimals or dividingExample:> 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 More sharing options...
UzGo Posted September 13, 2011 Share Posted September 13, 2011 Thank You Man Thank You So Much !!! 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