Trigger Help

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
ZilvaX
Member
Posts: 52
Joined: December 16th, 2007, 2:23 am

Trigger Help

Post by ZilvaX »

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.
Image
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Trigger Help

Post by Aero »

Is this what you were thinking?
You do not have the required permissions to view the files attached to this post.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Trigger Help

Post by Ozzapoo »

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!
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Trigger Help

Post by Aero »

GetEventDamage()
User avatar
ZilvaX
Member
Posts: 52
Joined: December 16th, 2007, 2:23 am

Re: Trigger Help

Post by ZilvaX »

Im sorry, but when i insert it into my map it says 50 Compiled Errors, And then disables the trigger.
Image
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Trigger Help

Post by Ozzapoo »

Name some of those errors..?
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
User avatar
ZilvaX
Member
Posts: 52
Joined: December 16th, 2007, 2:23 am

Re: Trigger Help

Post by ZilvaX »

Heres a screenshot.
You do not have the required permissions to view the files attached to this post.
Image
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Trigger Help

Post by Aero »

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?
User avatar
ZilvaX
Member
Posts: 52
Joined: December 16th, 2007, 2:23 am

Re: Trigger Help

Post by ZilvaX »

Yeah it works perfectly. Thank you so much.
Image
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Trigger Help

Post by Aero »

Do you have it working or do you want me to turn it into a trigger?