• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

help with double effect abillity

Status
Not open for further replies.
Level 2
Joined
Jul 2, 2013
Messages
12
HI guys,fairly new to this edditing thing,havent got any knowldge in JASS and only basic knowledge in triggers so I try to stick with modifying abilities but i doubt I can this time.
the concept for the ability is this : create 3 units to draw enemy fire (the units cant damage others and ide like them to have spell imunity and maybe farsight)
and become invisible for a short while

if anyone has an idea for how to do this pls help (you can mail me if you prefer)
 
immunity and damage would be done in the object editor.
u would need to use the spell called Channel for this and trigger it urself.
first u create 3 units at position of the target point and put the unit into a tempUnit variable thats an array. so tempUnit[1] = unit
tempUnit[2] = next unit and then the third one is tempUnit[3] = final unit
next u add all units in range to a tempUnitGroup.
then u pick all units in the group and do actions
in the group loop u need to set tempInt = random number between 1 and 3.
then u order the picked unit to attack tempUnit[ tempInt]
and that should work the way u want it to. if this is an instant spell it will be fine like this but if u want to keep ordering those units to attack the 3 units u created then u would have to make this MUI with a loop to check who the units are attacking.( look at the chapter how to index in my tutorial in my sig).
 
Status
Not open for further replies.
Top