mrmiguu Posted May 14, 2008 Author Share Posted May 14, 2008 How can I get this script to work, I have already read over the "Attack Movement Topic" and basically it still wont work… I am using Baron's EE_V1 and I wanted to know how games like Rebelion online got it to work but I can't*BTW this script is supposed to show a specific spell animation one tile in front of their character* Please give me any tips on what I need or am doing incorrectly, thank you!> '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~> ' This sub runs every time the player hits the ctrl key and attacks.> ' This makes it so your character shows a battle animation in front of them when they attack.> Sub OnAttack(index) > '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~> > If GetPlayerDir(index) = 0 Then> Call SpellAnim(64, GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index) + 1)> End If> If GetPlayerDir(index) = 1 Then> Call SpellAnim(64, GetPlayerMap(index), GetPlayerX(index) - 1, GetPlayerY(index))> End If> If GetPlayerDir(index) = 2 Then> Call SpellAnim(64, GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index) - 1)> End If> If GetPlayerDir(index) = 3 Then> Call SpellAnim(64, GetPlayerMap(index), GetPlayerX(index) + 1, GetPlayerY(index))> End If> > End SubBTW. I have tested this 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