RyokuHasu Posted March 11, 2011 Author Share Posted March 11, 2011 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 ONLYIn modCombatFind: "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 mostYou 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 More sharing options...
thugangel Posted March 11, 2011 Share Posted March 11, 2011 Nice tutorial, works great. Thanks! Link to comment Share on other sites More sharing options...
RyokuHasu Posted March 12, 2011 Author Share Posted March 12, 2011 Thank you Link to comment Share on other sites More sharing options...
Suppositoire Posted April 23, 2011 Share Posted April 23, 2011 I doesn't understand too much, your script allows to enlarge spells? Link to comment Share on other sites More sharing options...
Yxxe Posted April 23, 2011 Share Posted April 23, 2011 @Suppositoire:> I doesn't understand too much, your script allows to enlarge spells?A spells' damage is determined by a calculation using the players Level, Intelligence and Willpower. Link to comment Share on other sites More sharing options...
Lavos Posted May 3, 2011 Share Posted May 3, 2011 I like how this code works. Link to comment Share on other sites More sharing options...
RyokuHasu Posted May 26, 2011 Author Share Posted May 26, 2011 Thank you, It's FAR better than the first few scaling scripts. but only cause it combines all of them and adds in my own math skills. ^_^ Link to comment Share on other sites More sharing options...
SpiceyWolf Posted July 21, 2011 Share Posted July 21, 2011 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 IfI 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 More sharing options...
RyokuHasu Posted July 21, 2011 Author Share Posted July 21, 2011 That has almost nothing to do with My spell scaling, wich is just 3 diffrent spell scaling scripts crammed into one.For this problem go to the Q&A section and Post the exact runtime error and other info. Link to comment Share on other sites More sharing options...
SpiceyWolf Posted July 21, 2011 Share Posted July 21, 2011 i was just confused where it came from anyway >.> so i didnt know sorry… i spent some time lookin at it carefully and finally knoticed what it was from and figured out how to fix it... thanks for your time tho Link to comment Share on other sites More sharing options...
RyokuHasu Posted July 21, 2011 Author Share Posted July 21, 2011 XD sorry about my sight rudness, if that what it seemed like. Link to comment Share on other sites More sharing options...
SpiceyWolf Posted July 21, 2011 Share Posted July 21, 2011 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 More sharing options...
UzGo Posted August 18, 2011 Share Posted August 18, 2011 I have problem . When i was done i started to compile my server and then it said "Block If without End If"what that means and how i can fix it ??? Link to comment Share on other sites More sharing options...
Beanie93 Posted August 18, 2011 Share Posted August 18, 2011 Make sure you have copy-pasted the whole block of code.An alternative is just to add 'End If' at the end of your pasted code. Link to comment Share on other sites More sharing options...
quintensky Posted August 18, 2011 Share Posted August 18, 2011 i made a script wich only involves player level an intelligence :P nice work :) Link to comment Share on other sites More sharing options...
chamster Posted August 22, 2011 Share Posted August 22, 2011 i can't get it to work… making me frustrated xD... please help. i tryed to add it in but it's not working. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted August 22, 2011 Share Posted August 22, 2011 @chamster:> i can't get it to work… making me frustrated xD... please help. i tryed to add it in but it's not working.You mean that nothing happens? Did you compile it? (In Visual Basic 6: File > Make .exe). Link to comment Share on other sites More sharing options...
RyokuHasu Posted August 26, 2011 Author Share Posted August 26, 2011 @chamster:> i can't get it to work… making me frustrated xD... please help. i tryed to add it in but it's not working.>.< this is the easiest source edit ever, so I lol'd.But ya, if you haven't yet, try Soul's Idea. Link to comment Share on other sites More sharing options...
Tic Tac 2 Posted April 4, 2012 Share Posted April 4, 2012 Sorry, but i just fucking love you.Also i'd like to suck your penis. Link to comment Share on other sites More sharing options...
RyokuHasu Posted April 4, 2012 Author Share Posted April 4, 2012 Dude, not cool. I'm tempted to report you for sexual harassment. Link to comment Share on other sites More sharing options...
Tic Tac 2 Posted April 6, 2012 Share Posted April 6, 2012 As long as it satisfies you Link to comment Share on other sites More sharing options...
kahnival Posted April 19, 2012 Share Posted April 19, 2012 So if I'm reading this right…Willpower increases your healing spell and Inteligence increases your damage spells? Link to comment Share on other sites More sharing options...
RyokuHasu Posted April 20, 2012 Author Share Posted April 20, 2012 yep =P but both increase both just a bit Link to comment Share on other sites More sharing options...
kahnival Posted April 21, 2012 Share Posted April 21, 2012 Ah ok cool just checking I was reading it both :Dedit: Also I'm a nub at math so uhm…How much does it add per point of int/will? Link to comment Share on other sites More sharing options...
Snoozey Posted April 23, 2012 Share Posted April 23, 2012 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 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