HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Help

04-09-2007, 10:38 PM#1
lord_Turin
Hello there,

im working on a map called "300: the movie" basicly i played some crapy vers that were released like a day after the movie was. So i decided to create my own. Now i want this game to be full of new sort of spells and an active gameplay. To reach this goal i need a favor of a JASS programmer.

For the person who hasn't seen the movie 300 its quite hard to imagine..
But i'dd like to have the part where the first persian wave clashes on the spartan shield be remade into a skill.

Basicly when u have your spartans selected you will have to push the skill button and they will auto-search the closest target and push/knockback/slide them away, while sliding after them (a bit not al the way). While doing like 50 damage or so.

I have tryed myself to do this with triggers since i don't understand jass beside the very basic things. But that didn't work out.

I'll ofcource give credit to the people who will help me with this

thanks already

http://ringwars.x187.com/index.php?showforum=201

seems like none wants to help..
04-10-2007, 06:09 PM#2
tamisrah
I have a simple demonstration on how you could do it, but you should definetly not use it exactly like i posted since it will leak and I'm sure you couldn't use this for more than one unit.

Trigger:
Pushback
Collapse Events
Unit - A unit starts the effect of an ability
Collapse Conditions
(Ability being cast) equal to Your Ability
Collapse Actions
Set loc = (Position of (Casting unit))
Set r1 = 500.00
Collapse Unit group - Pick every unit in (Units within 400.00 of loc matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) equal to True)) and do (Actions)
Collapse Loop - Actions
Set r2 = (Distance between loc and (Position of (Matching unit)))
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse 'IF' Conditions
r1 greater than r2
Collapse 'THEN' Actions
Set u = (Matching unit)
Set r1 = r2
'ELSE' Actions
Collapse For each (Integer A) from 1 to 30, do (Actions)
Collapse Loop - Actions
Unit - Cause (Casting unit) to damage u, dealing 10.00 damage of attack type Normal and damage type Normal
Unit - Move u instantly to (loc offset by (50.00 x (Real((Integer A)))) towards (Facing of (Casting unit)) degrees)
Unit - Move u instantly to (loc offset by (20.00 x (Real((Integer A)))) towards (Facing of (Casting unit)) degrees)
Wait 0.05 seconds
04-10-2007, 06:09 PM#3
blu_da_noob
http://www.wc3campaigns.net/faq.php?..._revised_rules

Don't double post. Don't bump after no time. Any time people give to help you is something you should be thankful for. Check my sig too.
04-11-2007, 05:45 AM#4
lord_Turin
i am willing to learn.
i have tryed to make it myself, i have read all the tuts on knockback i could found but it just wouldn't work for me :(.

and the double posting thing slipped me.

generaly, srry wont happen again

@tamisrah
thanks ill see if i can make this work :)
04-11-2007, 12:55 PM#5
tamisrah
Here I found two threads about that, which I think are quite easy to understand: 1.http://www.wc3campaigns.net/showthre...ight=knockback 2.http://www.wc3campaigns.net/showthre...ight=knockback

The second is even a system for doing knockback MUI