hisherwin Posted December 9, 2013 Author Share Posted December 9, 2013 Do anyone know how to form a Wave Spell?Legend:X = Spell AnimationO = Player LocationIf an AoE is like thisX X X X X X XX X X X X X XX X X O X X XX X X X X X XX X X X X X XAnd a Linear is like thisO X X X X X X X XX X X X X X X X OX Ā OX Ā XX Ā XX Ā XX Ā XO Ā Xhow can i make a spell that hit like thisĀ Ā Ā Ā Ā X Ā Ā Ā Ā XĀ Ā Ā Ā X X Ā Ā Ā Ā X XĀ O X X X Ā Ā Ā Ā X X X OĀ Ā Ā Ā X X Ā Ā Ā Ā X XĀ Ā Ā Ā Ā X Ā Ā Ā Ā XX X X X X Ā Ā X X X X XĀ Ā X X X Ā Ā Ā Ā Ā X X XĀ Ā Ā X Ā Ā Ā Ā Ā Ā Ā Ā XĀ Ā Ā O Ā Ā Ā Ā Ā Ā Ā Ā O, Can you help me with the code? Link to comment Share on other sites More sharing options...
Yuko Posted December 9, 2013 Share Posted December 9, 2013 Superior waveĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā :poonbox: <ā--SherwinXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXĀ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXĀ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXĀ Ā XXXXXXXXXXXXXX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XXXXXXXXXXXXXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXXXXXXXXXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXXXXXXXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXXXXXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXXXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXXXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XXĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā XĀ Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā :originsparkrules.gif: <--AmaziLove,AmaziXD Link to comment Share on other sites More sharing options...
hisherwin Posted December 9, 2013 Author Share Posted December 9, 2013 Hahaha.. That cause overflow -.- Link to comment Share on other sites More sharing options...
Yuko Posted December 9, 2013 Share Posted December 9, 2013 > Hahaha.. That cause overflow -.-No I just make my maps bigger than yours. Shhh :)? Link to comment Share on other sites More sharing options...
hisherwin Posted December 9, 2013 Author Share Posted December 9, 2013 > No I just make my maps bigger than yours. Shhh :)?Still overflow, because my index is more then the max_players, i was suppose to be clear from the game xD Link to comment Share on other sites More sharing options...
Yuko Posted December 9, 2013 Share Posted December 9, 2013 > Still overflow, because my index is more then the max_players, i was suppose to be clear from the game xDI saw you just do aoe and if people get hurt behind you just be like "Oh crap, im so sorry, the wave has to come behind, and doesn't touch me.Example.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXDEADXPERSONXXXXXXXXXXXXXXXXXXXXXXXXXXXXXDEAD PERSONXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXDEAD TARGETXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXO: OMG IM SORRY DEAD PERSONSDEAD PERSONS: I TRUSTED YOU!DEAD TARGET: :::swag::: Link to comment Share on other sites More sharing options...
teamokell Posted December 9, 2013 Share Posted December 9, 2013 I really wanted to help but do not know.if you can answer please share with us the solution Link to comment Share on other sites More sharing options...
jcsnider Posted December 9, 2013 Share Posted December 9, 2013 I cannot give exact code at the moment but I can give a starting placeā¦..dim r as integer 'This is the ranger = spell(whateverspellnum).rangeSelect Case playerDirectionĀ case dir_up 'only going to do upĀ Ā Ā StartX = GetplayerXĀ Ā Ā Endx = GetPlayerX 'Get variables that determine where the wave should hit. On the first loop just 1 tileĀ Ā Ā For i = 1 to r 'This loops through the length of the waveĀ Ā Ā Ā for z = startx to endx Ā Ā Ā 'This loops through the width of the waveĀ Ā Ā Ā Ā Ā check if tile is in bounds of the mapĀ Ā Ā Ā Ā Ā CheckIfEnemy/Player/Etc is on Tile(z, getplayery - r)Ā Ā Ā Ā Ā Ā if so attack themĀ Ā Ā Ā Ā Ā expand startx and endx out 1Ā Ā Ā Ā Ā Ā so, startx = startx -1Ā Ā Ā Ā Ā Ā endx = endx + 1Ā Ā Ā Ā Ā Ā 'Now the width is larger and we are running the loop another tile out.Ā Ā Ā nextĀ 'Repeat code for all directions replacing variables where needed, dont forget to send animations and shizend selectThat is the concept, you would just have to turn it into legit code. Link to comment Share on other sites More sharing options...
JohnPony Posted December 10, 2013 Share Posted December 10, 2013 [http://en.wikipedia.org/wiki/Wave_function](http://en.wikipedia.org/wiki/Wave_function)[http://en.wikipedia.org/wiki/Trigonometric_functions](http://en.wikipedia.org/wiki/Trigonometric_functions)You might want to read into the mathematics behind this if you actually want pixel based wave-spells. Link to comment Share on other sites More sharing options...
jcsnider Posted December 10, 2013 Share Posted December 10, 2013 lol this is eclipze! If it isn't tile based it isn't legit! Link to comment Share on other sites More sharing options...
hisherwin Posted December 10, 2013 Author Share Posted December 10, 2013 I think i got it..First i need to copy how linear works.. thenĀ proceedĀ by adding another value , but i guess you need to use Loop likeIf getplayerdir(index) = DIR_DOWNFor i = 1 to RangeĀ Ā Do While i <> RangeĀ Ā Ā For x = 1 to LoopValueĀ Ā Ā Ā Ā Ā Call sendanimation(mapnum, animationnum, target.x + x, target.y + i)Ā Ā Ā Ā Ā Ā Call sendanimation(mapnum, animationnum, target.x - x, target.y + i)Ā Ā Ā NextĀ Ā Ā Ā LoopValue = LoopValue + 1Ā Ā LoopNextEnd ifif i did it wrong, please correct me./ Link to comment Share on other sites More sharing options...
rairai5650 Posted December 15, 2013 Share Posted December 15, 2013 Do the spell like this x=whole map 99999damage omg dead map Link to comment Share on other sites More sharing options...
Guest Posted December 15, 2013 Share Posted December 15, 2013 My brain just died, however I still may be able to help you, I pmed you a set or spell animations pertaining to what you want. Link to comment Share on other sites More sharing options...
hapilyDamaged Posted January 17, 2014 Share Posted January 17, 2014 Well I can't help with the programming end of this yet,but here is a graphical mock up of what needs to happen (I think/hope)\(A tile-based method of a conical shaped spell)[attachment=1078:cone_spell.gif] Link to comment Share on other sites More sharing options...
Slasheree Posted January 18, 2014 Share Posted January 18, 2014 Sherwin, if you haven't already done this, try my code and tell me if it does what you want, just don't use it on the map bounds, I'm guessing it would cause errorsĀ xP```'this is just for when the player is facing upIf getplayerdir(index) = DIR_UP Then Dim distance As Long = 0 Dim isAlreadyHit As Boolean = False For i = 1 To Range ' vertical For a = 0 To distance ' middle and right part of the cone If isNPCHere(Player.x + a, Player.y + i) Then Call sendanimation(mapnum, animationnum, getplayerx(index) + a, getplayery(index) + i) isAlreadyHit = True End If Next distance = 0 'reset distance For a = 0 To distance ' left part of the cone If isAlreadyHit = False Then If isNPCHere(Player.x - a, Player.y + i) Then Call sendanimation(mapnum, animationnum, getplayerx(index) - a, getplayery(index) + i) End If End If Next distance = 0 isAlreadyHit = False NextEnd If``` Link to comment Share on other sites More sharing options...
hisherwin Posted January 18, 2014 Author Share Posted January 18, 2014 Thanks, but i already have no use with this anymore.. well i already send the project to the owner.. (i don't know if they are using it though) Link to comment Share on other sites More sharing options...
moronsnail Posted January 18, 2014 Share Posted January 18, 2014 theres this projectile they updated, although its a bit limited to 1 tile and you can only adjust the height goin down not up, but its still like the one you want i guess Link to comment Share on other sites More sharing options...
rairai5650 Posted January 18, 2014 Share Posted January 18, 2014 Lolz something like thisLegendX = bowO = player animationM = moronsnail running O.OMXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXxxxxxxxxxxxxxxxxxxxxxxxxxxxxzxxxxxxxxxxxxXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxOCould it done by many projectile using one bow? Link to comment Share on other sites More sharing options...
hisherwin Posted January 28, 2014 Author Share Posted January 28, 2014 > Lolz something like this> > Legend> > X = bow> > O = player animation> > M = moronsnail running O.O> > M> > Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> > Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> > Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> > Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> > Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxzxxxxxxxxxxxx> > Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> > O> > Could it done by many projectile using one bow?No.. Absolutely no.. YOU DON'T UNDERSTAND IT AT ALL :PI just check to bump this topicat Slashere.. i got some problems on that code.. i might send you a PM once i'm back at Grandma's house 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