HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Triggering Paradox, help plz

01-12-2004, 11:39 PM#1
Narwanza
ya, i really need help. I made an action that made it so another trigger gained a new event. The problem is that I want to put a condition on the trigger that gains the event so that it will not do the trigger for everything. Here is what I did. I wanted to detect how much damage was done when any unit was attacked by the unit that had my spell cast on it. That all went fine, but now, it adds the new event and it is not just the person that I cast the spell on that triggers the trigger, it any unit. The results of this are kind of funny, the bad guys attacking my hero are actually healing him.

Anyways, I am trying very hard to learn jass and I need someone to write an example code for me. It would just be code that would add this condition to another trigger 'Custom Value of (attacking unit) not equal to zero'. NOTE; the custom value is an integer. If any jass guru could write this, all you have to do is reply with it, I don't want a map with it. For the trigger name just put anything, i can read and modify existing jass code, but I can't write my own. Could someone please help me!
01-13-2004, 02:25 AM#2
Eriond
How about having the trigger on in the first place and doing trigger, turn trigger YOURTRIGGER on...


Wouldn't that work? Then you can already have pre-set conditions and such.
01-13-2004, 03:30 AM#3
FyreDaug
Or you could just post the trigger(s) so we know what the hell you are talking about.
01-13-2004, 05:45 AM#4
Lil Blue Smurf
If you are adding an event anyways, couldn't you just make the event be a specific unit action and have the specific unit be the triggering one?
01-13-2004, 07:55 AM#5
xein
Post it up and we'll figure it out.
01-13-2004, 09:36 PM#6
Narwanza
does anyone read the whole post before replying? What I said I needed was for someone to write a line in JASS that would add a condition to a trigger.
01-13-2004, 09:38 PM#7
Eriond
Why bother when you can probably do it with the GUI!
01-14-2004, 04:01 AM#8
Narwanza
i'm asking for someone to write it in jass because there is not 'trigger - add condition' yet in the gui editor, but there is one in jass. and yes i do use UMSWE.
01-14-2004, 10:00 PM#9
Narwanza
cmon people, you act like none of you know how to write in JASS.
01-19-2004, 09:01 PM#10
VolEs
This looks to me like a simple no brainer X.x

You know the new action your making?

make the action an: If/Then/Else, Multiple action
and on the if, you can set it as "if all conditions are true" for multiple conditions. or you can do an or, for either condition.. and whatnot.

i hope this helps..
01-19-2004, 11:02 PM#11
Narwanza
it doesn't, please don't post on threads over 3 or 4 days old
01-20-2004, 01:03 AM#12
Pesmerga
he seems to have a habit of that