I kind need help with a trigger,someone said if in GUI it would be really leaky so i want it in JASS. Could you please explain how a noob that knows nothing about JASS put it into his map.
what it does : When a unit is attacked its pushed back the damage x 2. eg.
o = is the place where my units staning
x = is where the attacked unit is standing
_ = 100 range
so if im standing where "o" is and the enemies standing where "x" is
ox
and attack for 100 points of damage
ox
the unit will be pushed back 200 range.
o__x
if you need a better explanation just tell be and i will use some other tools to explain.
Trigger Help
Moderator: Cheaters
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Trigger Help
Is this what you were thinking?
You do not have the required permissions to view the files attached to this post.
-
- The Flying Cow!
- Posts: 2196
- Joined: November 2nd, 2007, 10:34 pm
- Location: Melbourne
Re: Trigger Help
But how do you get the damage of the attacking unit?
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
AutoCP3 now available for free!
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
-
- Member
- Posts: 52
- Joined: December 16th, 2007, 2:23 am
Re: Trigger Help
Im sorry, but when i insert it into my map it says 50 Compiled Errors, And then disables the trigger.

-
- The Flying Cow!
- Posts: 2196
- Joined: November 2nd, 2007, 10:34 pm
- Location: Melbourne
Re: Trigger Help
Name some of those errors..?
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
AutoCP3 now available for free!
-
- Member
- Posts: 52
- Joined: December 16th, 2007, 2:23 am
Re: Trigger Help
Heres a screenshot.
You do not have the required permissions to view the files attached to this post.

-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Trigger Help
Lol! I didn't say import that
I asked if it was what you want.
That was just a dummy map.
That dummy map is in no way ready to be imported into a map.
Currently, that dummy map is configured to work with melee, ranged and unit-targetted spells.
Abilities like Storm Bolt, Firebolt, Shockwave ect. will work.
Abilities like Pillar of Fire, anything that causes damage over time, or has an area of effect will not work properly.
Also, unit-targetted spells and ranged attacks will only knockback 100% properly if the unit that attacked has not moved for the duration of time it took for the ranged rpojectile or spell to hit the target.
Is this fine?
I asked if it was what you want.
That was just a dummy map.
That dummy map is in no way ready to be imported into a map.
Currently, that dummy map is configured to work with melee, ranged and unit-targetted spells.
Abilities like Storm Bolt, Firebolt, Shockwave ect. will work.
Abilities like Pillar of Fire, anything that causes damage over time, or has an area of effect will not work properly.
Also, unit-targetted spells and ranged attacks will only knockback 100% properly if the unit that attacked has not moved for the duration of time it took for the ranged rpojectile or spell to hit the target.
Is this fine?
-
- Member
- Posts: 52
- Joined: December 16th, 2007, 2:23 am
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada