HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Learning vJass, need help to fix a spell.

08-05-2009, 10:07 AM#1
Holystars
Hello !
I'm learning vJass to make some spells, and i'm trying to make a knockback spell, called MindPush.

I learnt basics of vJass with a tutorial in the Hive Workshop and with this one http://www.wc3c.net/showthread.php?t=91491 to understand structs.

I based my spell on this tutorial : http://www.wc3c.net/showthread.php?t=97068, to learn how to code a knockback. But my spell doesn't work ( the target is paused, but doesn't move ). I really don't understand why it's not working.

I attach on my post the jass code, and the map.

Expand My spell:

I hope you can help me to find my mistake(s) =)
thanks
Holystars
Attached Files
File type: w3xMindPush.w3x (20.8 KB)
08-05-2009, 11:46 AM#2
Anitarf
No idea. Try adding some debug messages.
08-05-2009, 01:57 PM#3
Holystars
Hi Anitarf,
Thanks for that advice, I didn't think about trying to put some debug messages ...
I could find where it doesn't work and it was a problem of pathability.

I noticed that the item needed by the CheckPathablity function was not created, so I moved the initialisation of my global variable "I" to the function Init, and it perfectly works now =)

That was a stupid mistake ^^