• 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.

Picked Unit/Create Unit

Status
Not open for further replies.
Level 16
Joined
May 1, 2008
Messages
1,605
Seas =)

My plan is simple:
1) I want, if a Unit use a dummy spell based on "Rain of Fire", that each friendly unit in 550 range of Target point ability being casted is picked.
2) For each friendly picked unit, a dummy is created at each friendly picked unit.
3) Each dummy should cast an ability on that picked unit, where the dummy was created for.

I hope you understand what I'm thinking about and can help me =)

I now its not really hard, but sometimes it doesn't work and I don't know why so I ask for help =)

Thanks =)
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Rain of Fire
    • Actions
      • Set Temp_Loc_1 = (Target point of ability being cast)
      • Set Temp_Group_1 = (Units within 512.00 of Temp_Loc_1 matching (((Owner of (Matching unit)) is an ally of (Owner of (Triggering unit))) Equal to True))
      • Unit Group - Pick every unit in Temp_Group_1 and do (Actions)
        • Loop - Actions
          • Set Temp_Loc_2 = (Position of (Picked unit))
          • Unit - Create 1 Footman for Player 1 (Red) at Temp_Loc_2 facing Temp_Loc_2
          • Unit - Order (Last created unit) to Human Peasant - Repair (Picked unit)
          • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
          • Custom script: call RemoveLocation(udg_Temp_Loc_2)
      • Custom script: call DestroyGroup(udg_Temp_Group_1)
      • Custom script: call RemoveLocation(udg_Temp_Loc_1)
 
Last edited:
Status
Not open for further replies.
Top