HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Damage taken (JASS)

06-21-2007, 08:34 AM#1
waaaks
i have this question a very long time but i didnt get the right answer

my question is about damage taken, or making the unit receive no damage:

i downloaded the spell Teron gorefiend because of the spell martyrism i think thats the name, because it blocks any damage taken and applied to another friendly unit

i found out that the trigger has two INIT functions inside
the original event is, when a unit starts the ability
and the second that is inside in another function has an event
that when the unit takes damage, and it refers to the casting unit

i want to follow that trigger, but the system im using is Caster system, and i think that the system used in the spell is different

can i make two events in my trigger using caster system?

and how to make the event a unit takes damage refer to a generic unit, like triggering unit, casting unit, because the event only uses units like footman001<gen> or something like that

ive created a spell based on this problem and the triggers are separated, but still not working

+rep for any help execpt for spam posts
06-21-2007, 08:45 AM#2
blu_da_noob
This might help you a little. Other than that your post is pretty convoluted, so I'm not really sure what you're asking.

Quote:
can i make two events in my trigger using caster system?

You can have multiple events on a trigger. Using caster system you would have to explain.

Quote:
and how to make the event a unit takes damage refer to a generic unit, like triggering unit, casting unit, because the event only uses units like footman001<gen> or something like that

You need to register a new 'unit takes damage' event for each unit.
06-21-2007, 10:13 AM#3
waaaks
ok thanks, ill post the trigger if i have any problems...

+rep