Zappy Posted February 8, 2013 Author Share Posted February 8, 2013 Hey y'all. I've been trying to spruce up the combat in eclipse, rewriting how everything is calculated, and giving it some more graphical… pizzazz.The least I can do is hand out most of my work to the community, as you're all so great.It's not too special, but they look really nice in combat ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)Feel free to use them, even commercially if you really wish!(Though I do ask you don't take credit for them)**Critical Hit**![](http://imageshack.us/a/img96/6946/criticalhit.png)**Dodge**![](http://imageshack.us/a/img801/9931/dodgerm.png)**Deflect (Parry)**![](http://img5.imageshack.us/img5/5096/deflect.png)**_In Action Gifs !_**Critical, Dodge![](http://imageshack.us/a/img541/1516/demo.gif)Critical, Dodge, Deflect![](http://img4.imageshack.us/img4/3040/demo2m.gif)I MIGHT take requests if anyone has them, but obviously that has to do with interest/time/ambition.I'll keep adding more to this main OP as they come ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)**_Code Tutorial_**If you aren't sure how to add these in, it's actually quite simple, and doesn't require any client work!**Server:**In _modConstants_, scroll to the bottom and paste this:```' Attack Animation ConstantsPublic Const CRITICAL_HIT_ANIM As Long = 1Public Const DODGE_ANIM As Long = 2```Make sure to set the number to whatever animation in the animation editor you want to play. For instance, my critical hit animation is the very first animation, so I set it to "1".Then, in _modCombat_, You'll have to find 3 subs and change little aspects in each of them.TryPlayerAttackNpcTryNpcAttackPlayerTryPlayerAttackPlayer^ If we don't alter each of these, then the animations won't play for all combat situations.(I guess you could throw these commands in CanPlayerCrit/CanNpcCrit, but it wouldn't work for my own code since I've changed combat around a bit.)Now, in Sub TryPlayerAttackNpc, find:```SendActionMsg mapnum, "Dodge!", BrightGreen, 1, (MapNpc(mapnum).NPC(mapNpcNum).x * 32), (MapNpc(mapnum).NPC(mapNpcNum).y * 32)```Comment that out with a ' (or remove it if you wish, it won't hurt.)Underneath, paste this:```SendAnimation mapnum, DODGE_ANIM, (MapNpc(mapnum).NPC(mapNpcNum).x), (MapNpc(mapnum).NPC(mapNpcNum).y)```Now in Sub TryNpcAttackPlayer, find:```SendActionMsg mapnum, "Dodge!", BrightGreen, 1, (Player(Index).x * 32), (Player(Index).y * 32)```Do the same with this as before, then paste this:```SendAnimation mapnum, DODGE_ANIM, (Player(Index).x), (Player(Index).y)```Finally, in Sub TryPlayerAttackPlayer```SendActionMsg mapnum, "Dodge!", BrightGreen, 1, (GetPlayerX(victim) * 32), (GetPlayerY(victim) * 32)```And Paste:```SendAnimation mapnum, DODGE_ANIM, (Player(victim).x), (Player(victim).y)```For other animations such as Crit and parry, do the same thing, but in their respective if conditions. I'm not going to write it out because it's pretty simple and following what you did for dodge, it's pretty straight forward ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)Just remember to change "DODGE_ANIM" to "CRITICAL_HIT_ANIM" or whatever the constant we set awhile back is. Link to comment Share on other sites More sharing options...
Kinjiru Posted February 8, 2013 Share Posted February 8, 2013 Oh these look really nice, this is a great resource i think I'll be using these in my project. Thanks for making them!EDIT- Wait, how do I actually add these in? Do I need to change stuff in the code? If so, could you write up a tutorial for that if you have the time? Link to comment Share on other sites More sharing options...
Zappy Posted February 8, 2013 Author Share Posted February 8, 2013 Aha no problems <3 I think I'll post the code tutorial for new members as well. ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)EDIT: Oh look, lucky for you I planned on it ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
Kinjiru Posted February 9, 2013 Share Posted February 9, 2013 Oh, thanks a lot for posting that too! Link to comment Share on other sites More sharing options...
DMF Posted February 9, 2013 Share Posted February 9, 2013 thanks for the idea xD ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) and the tut. ill prop do my own but urs gives me something togo by ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png). Link to comment Share on other sites More sharing options...
Marsh Posted February 9, 2013 Share Posted February 9, 2013 Looks great, thanks for sharing. Link to comment Share on other sites More sharing options...
Jumbofile Posted February 9, 2013 Share Posted February 9, 2013 What engine do you use because it dosnt look like your gif. Link to comment Share on other sites More sharing options...
MadalinV Posted February 9, 2013 Share Posted February 9, 2013 > My code dosnt say bright green it says pink? Helpmaybe you have some kind of overlay over it? o.O Link to comment Share on other sites More sharing options...
Jumbofile Posted February 9, 2013 Share Posted February 9, 2013 Im using 3.0 Link to comment Share on other sites More sharing options...
Daneta Posted February 9, 2013 Share Posted February 9, 2013 im useing dragon eclipes do it work with that Link to comment Share on other sites More sharing options...
Kajamaz Posted February 10, 2013 Share Posted February 10, 2013 How do you get this to go over instead of dodge and etc.. Link to comment Share on other sites More sharing options...
Zappy Posted February 10, 2013 Author Share Posted February 10, 2013 I'm at work so I can't change the OP right now. Ignore that it says brightgreen, I changed that so itd look nicer before I made these, pretend it just says pink ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Also, this is only REALLY comaptible with eo 3 with dx8, since my animations use transparency. The crit animation may not look the same because I used another animation to play below the sprite that I did not create Link to comment Share on other sites More sharing options...
DMF Posted February 16, 2013 Share Posted February 16, 2013 but if you made bmps with out the transparent backgrounds how would you change it for the dx7 engines? o-o just intrested Link to comment Share on other sites More sharing options...
Zappy Posted February 16, 2013 Author Share Posted February 16, 2013 That's all you'd have to do to make it "work", but it'd look crappy Link to comment Share on other sites More sharing options...
DMF Posted February 16, 2013 Share Posted February 16, 2013 o-o i did try it that way , heres a question where should the images be stored? o-o Link to comment Share on other sites More sharing options...
PalePony Posted March 9, 2013 Share Posted March 9, 2013 Symphony, your work is beautiful! The only problem is I know not how to add it into my work in progress. I believe I have EO3 but no where does this fool see a modConstants and modCombat. Nor do I have VB6 :c Am I missing a folder or file forbidding the use of such an amazinnngggg resource? D: Link to comment Share on other sites More sharing options...
tslusny Posted March 9, 2013 Share Posted March 9, 2013 Symphony this is epic ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) I used it in my game Prospekt Reborn and it is looking great (of course that you are listed in credits) Link to comment Share on other sites More sharing options...
DMF Posted March 9, 2013 Share Posted March 9, 2013 oks first add it like you would the tutthen make animations that follow order you set it.(make sure its set above the player.) XD Link to comment Share on other sites More sharing options...
PalePony Posted March 10, 2013 Share Posted March 10, 2013 > oks first add it like you would the tut> > then make animations that follow order you set it.> > (make sure its set above the player.) XDI'd love to but I don't have any folders named modConstants, kind fellow :c Link to comment Share on other sites More sharing options...
Zappy Posted March 10, 2013 Author Share Posted March 10, 2013 oh hello ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Thanks everyone for the compliments, you're all awesome ![^_^](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/happy.png) <3Anywho, PalePony, if you're new to the whole coding/programming thing or this forum in general, it may be a bit confusing for you to pick up. I know I was totally lost at first myself and didn't know where to start.Anywho, modConstants and modPlayer aren't folders, their modules. Modules are pretty much classes in visual basic. You can find the raw source for them in the "src" folders in both the client and server folders. Now, you won't be able to just edit them like text documents and hope it works.You'll have to edit the project files that use the modules. Each project file is also located in the client/server folders.Unfortunately you'll need visual basic blah blah to do all the editing, so go grab that. Anywho, I'm not amazing at giving instructions, so you may have to ask someone else or snoop around for tutorials, but I hope I managed to give you a hand ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) <3 Link to comment Share on other sites More sharing options...
DMF Posted March 16, 2013 Share Posted March 16, 2013 xD….@NEW PERSONyou must have "Visual Basic 6.0" installed.there is a file to open the source code.in the code(in the mod folder) you will see the files that need editing.then follow the tut. o-o this wasnt hard to install its just you need make sure the number you set the animations to is the same slot in the animation editor holding the animation. o-o Link to comment Share on other sites More sharing options...
Geotri Posted June 16, 2013 Share Posted June 16, 2013 This was an awesome tutorial thank you so much Link to comment Share on other sites More sharing options...
Swizl Posted June 16, 2013 Share Posted June 16, 2013 > This was an awesome tutorial thank you so muchDidn't you realize this thread was dead ? Why did you bump it… Link to comment Share on other sites More sharing options...
h3lp Posted July 9, 2013 Share Posted July 9, 2013 Thanks for sharing :D 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