HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can we do this with Jass and if not how can it be done?

11-04-2003, 08:20 PM#1
PhantasyDreamer
Hey,

In my rpg campaign, there will be a fighting systems and I want that when you attack your ennemy and that you miss or hit, you must attack again.

here are the trigger:
Event: Player one press Up arrow.
condition: blabla
action:Issue order attack(is there a way to make the unit issue order to attack the nearest neutral passive unit?)so i wrote if creep1(variable) is alive, attack it, else, if creep2 is alive, attack it, else do nothing.

ok and there is the second trigger that i cant find the right event and that might need jass.

I would like to do:event: creep 1 or 2 or 3 takes damage
action:Issue fighter to stop.

the problem is that the fonction takes damage only exist for specific unit and that i cant use a specific unit in this situation.
I know nothing about jass but, could it be possible to change the specific unit to a variable or anyhow?

hope you can answer me.
Thank you

PhantasyDreamer
11-04-2003, 08:47 PM#2
PitzerMike
There's a JASS workaround so you could do an any unit takes damage event.
this could help you, you should find it here doing a search