• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

trigger request

Status
Not open for further replies.
Level 6
Joined
Jun 11, 2009
Messages
151
Okay i need a trigger that does.

When a hero enters (Dungeon start Region) he types -Enter and all heroes in that region move to the dungeon, after that doesn't allow

people to enter until the dungeons done, and it moves him to

the dungeon, then when they gets to the end and kill the boss it removes all

items and sends all heroes to a item place, when the hero takes the item it

moves him to town.

i would love for some one to show me how, or a link were i can find it.
Thank you,
Undead_ted
 
Level 13
Joined
Apr 15, 2008
Messages
854
  • Turn on
    • Events
      • Unit - An unit has entered <Your Region>.
    • Conditions
      • (Entering unit) is Equal to (Owner of unit is Player 1)
    • Actions
      • Trigger - Turn on trigger <Next Trigger>
  • Next Trigger
    • Events
      • Player - A played types: -Enter.
    • Actions
      • Unit Group - Pick every unit in <Region Enter> and do the following actions
        • Unit - Move (Picked unit) instantly to <Region Place>
      • Custom Script: Remove leak (Search on the forum for this one)
  • Boss
    • Events
      • Unit - (Boss Unit) dies.
    • Actions
      • Unit Group - Pick every unit in <Boss Region> and do the following actions
        • Unit - (Move picked unit) instantly to <Item Region>
      • Custom Script: Remove Leak (Same as other)
  • Item Move
    • Actions
      • Unit - A unit accuires an item.
    • Conditions
      • Item is equal to <Your Item>
      • Item is equal to <Your Item2>
      • Item is equal to <Your Item3>
    • Actions
      • Unit - Move (Manipulating Hero) to <Town Region>
I don't know the custom script one, so search at the tutorial section or if someone wants to leave a reply with it.

I don't have Warcraft here ATM, so the text could be a bit different...

Hope it helpz :thumbs_up:

EDIT: Added another trigger.
And another...

P.S. I'm not that good Triggerer, I just like to help people with small requests.
 
  • Trigger on
    • Events
      • Unit - A unit enters (YourRect)
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Trigger - Turn on Trigger enter <gen>
  • Trigger enter (initially off)
    • Events
      • Player - Player 1 (Red) types a chat message containing -enter as An exact match
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Set TempGroup = (Units in (Playable map area))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A Hero) Equal to True
            • Then - Actions
              • Set TempPoint = (Center of (Yourrect))
              • Unit - Move (Picked unit) instantly to TempPoint
              • Custom script: call RemoveLocation(udg_TempPoint)
            • Else - Actions
  • Trigger boss dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Dying unit) Equal to (YourBoss)
    • Actions
      • Item - Pick every item in (Playable map area) and do (Actions)
        • Loop - Actions
          • Item - Remove (Picked item)
  • Trigger item pickup
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • ((Item being manipulated) is in (ItemPickupZone)) Equal to True
    • Actions
      • Set TempPoint = (Center of (cityRect)
      • Unit - Move (Hero manipulating item) instantly to TempPoint
      • Custom script: call RemoveLocation(udg_TempPoint)
that should work
 
Level 6
Joined
Jun 11, 2009
Messages
151
ah thank you, but at the end when they kill the boss it sends them to a spot (red region, blue region ect.) then it spawns a item for the specific boss they killed then sends them back to were ever after itemz are picked up.
 
Status
Not open for further replies.
Top