- Home /
Spell casting system?
Ok so im making a mmorpg kalled "The legion" were you are a apprentice wizard and i need a spell casting script for it and i've tried alot of scripts but none of them seem to work! The person who helps me gets credit in the game!
I will help you if you had any external contact details?
Guys, this sort of conversation is meant for the forums, not Unity Answers. Here we deal with specific coding problems.
If you want to work with someone, check here : http://forum.unity3d.com/forums/17-Collaboration : http://forum.unity3d.com/forums/31-Commercial-Work
Don't get me wrong, I am interested in this like many other people would be, but UA is more for "I have written this code, and it doesn't work" type questions, "can you help me write this" is a forum question.
Are you really making an mmorpg? Or just imagining yourself making one based on an unrealisticaly low estimate of how difficult that would be? Is your networking code functional yet? Because that's the first thing you need to work on; and having done that, a " spell casting script" will be trivial. There are as many ways to implement spells in your game as your imagination allows and the script would totally be specific to your game; unless of course your game is just a crude knockoff of an existing game, in which case you have to ask; " why bother?"
Answer by Mander · Sep 04, 2012 at 04:06 PM
this is kind of a comment just to organize the pseudocode i made it an answer. just to give u an idea on how u could do it
u just need to call the animation of the spell casted, and after some seconds send the spell. theres not much to it. or it depends on how u do it.
WOW logic:
onclic fireball{
if(!moving){
// cast fireball animation on.
// after 3 sec
animation.Play("castFireball")
invoke("fireball",3)
if(moving){CancelInvoke();}
}else{"cant do that moving"}
at fireball() call the animation of fireball spell then it just takes the positions of the player and its target and sends the ball to follow its destiny
}