• 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] Hostile units out items

Status
Not open for further replies.

Ham

Ham

Level 5
Joined
Jan 16, 2009
Messages
132
i've got a trigger but it need alot of fixes (it's just the idea) so when an item is created, trigger it to remove it and add an unit at its place anyone got ideas for it?

  • Skelletons
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item level of (Last created item)) Equal to 8
        • Then - Actions
          • Unit - Create 1 Zombie for Neutral Extra at (Position of (Last created item)) facing Default building facing degrees
          • Item - Remove (Last created item)
        • Else - Actions
          • Do nothing
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
Well,, i got a little idea maybe,,
Use a 'Unit-Type' variable, in which
type[1] = newb unit (zombie or so)
type[2] = easy unit (Ghoul or so)
type[3] = normal unit (Crypt Fiend or so)
And so on,,

Here it is:
  • Actions
    • Item - Pick every item in (Playable map area) and do (Actions)
      • Loop - Actions
        • Set ItemLoc = (Position of (Picked item))
        • Item - Remove (Picked item)
        • Unit - Create 1 ItemUnitType[(Item level of (Picked item))] for Player 1 (Red) at ItemLoc facing Default building facing degrees
        • Custom script: call RemoveLocation(udg_ItemLoc)
 
  • Like
Reactions: Ham

Ham

Ham

Level 5
Joined
Jan 16, 2009
Messages
132
i got it now thanks~
  • Skelletons
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Item - Pick every item in (Playable map area) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Current life of (Picked item)) Equal to 76.00
            • Then - Actions
              • Set ItemLoc = (Position of (Picked item))
              • Unit - Create 1 Zombie for Neutral Extra at ItemLoc facing Default building facing degrees
              • Item - Remove (Picked item)
              • Custom script: call RemoveLocation(udg_ItemLoc)
            • Else - Actions
 
Last edited:
Status
Not open for further replies.
Top