Help "Scream"

Status
Not open for further replies.
Level 6
Joined
Oct 25, 2018
Messages
108
I would like to do the following: I want that when casting an ability, let's say "Scream", all the enemy units within a radius of 500, attack the unit that is casting the spell, and that an exclamation mark appears on their heads (only the enemy units) How can I do that?
 
Level 29
Joined
Feb 18, 2014
Messages
3,592
Use the mountain giant's Taunt ability as a base then pick all enemy units within 500 of position of casting unit and create a special effect on top of their heads (exclamation mark)
  • Special Effect Group
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Taunt
    • Actions
      • Set Point = Position of (Casting unit)
      • Custom script : set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 500 radius of (Point) matching (Matching unit) belongs to an enemy of (Casting unit) Equal to True) and do (Actions)
        • Loop - Actions
          • Set Temp_Integer = (Temp_Integer + 1)
          • Unit - Set the custom value of (Picked unit) to Temp_Integer
          • Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
          • Set Temp_SFX[Temp_Integer] = (Last created special effect)
      • Custom script : call RemoveLocation (udg_Point)
      • Wait 3.00 seconds
      • For each (Integer A) from 1 to Temp_Integer, do (Special Effect - Destroy Temp_SFX[(Integer A)])
 
Last edited:
Level 6
Joined
Oct 25, 2018
Messages
108
Use the mountain giant's Taunt ability as a base then pick all enemy units within 500 of position of casting unit and create a special effect on top of their heads (exclamation mark)
I know that, but I don't know how to express it in triggers ...
upload_2020-4-29_1-43-44.png
 

Attachments

  • upload_2020-4-29_1-43-34.png
    upload_2020-4-29_1-43-34.png
    312 bytes · Views: 24
Status
Not open for further replies.
Top