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

[Trigger] HELP: Creating Images

Status
Not open for further replies.
Level 17
Joined
Mar 17, 2009
Messages
1,350
  • Image Conf
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Image Conf
    • Actions
      • -------- setting some main variables --------
      • Set Player = (Triggering player)
      • Set TempUnit00_1 = (Triggering unit)
      • Set TempUnit01 = (Target unit of ability being cast)
      • Set TempLoc03 = (Position of (Target unit of ability being cast))
      • Set TempLoc03_1 = (TempLoc03 offset by (0.00, 200.00))
      • Set TempLoc03_2 = (TempLoc03 offset by (141.40, -141.40))
      • Set TempLoc03_3 = (TempLoc03 offset by (-141.40, -141.40))
      • -------- creating dummies --------
      • Unit - Create 1 Paladin_Clone for (Owner of (Triggering unit)) at TempLoc03_2 facing TempLoc03
      • Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
      • Set TempUnit00_2 = (Last created unit)
      • Unit - Create 1 Paladin_Clone for (Owner of (Triggering unit)) at TempLoc03_3 facing TempLoc03
      • Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
      • Set TempUnit00_3 = (Last created unit)
      • -------- adjusting image's color and transperancy using vJass scripts --------
      • Custom script: if GetLocalPlayer == udg_Player then
      • Animation - Change TempUnit00_2's vertex coloring to (0.00%, 0.00%, 100.00%) with 20.00% transparency
      • Animation - Change TempUnit00_3's vertex coloring to (0.00%, 0.00%, 100.00%) with 20.00% transparency
      • Custom script: endif
      • -------- moving the triggering unit --------
      • Unit - Turn collision for (Triggering unit) Off
      • Unit - Move (Triggering unit) instantly to TempLoc03_1, facing TempLoc03
      • Unit - Turn collision for (Triggering unit) On
 
And why don't you do this:

Set T_G = (Units in (Playable Map Area) matching (((Matching unit) is an Illusion) Equal to True)
Unit Group - Pick up every unit in T_G and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to X
Custom script: call DestroyGroup (udg_T_G)

If you want it for specific unit type of Illusions, do: "Set Picked = (Picked unit)", If/Then/Else > If (Unit-type of (Picked)) Equal to X)
 
Status
Not open for further replies.
Top