• 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

  1. Rocknar

    Help with mine explosion

    Hi i am creating a new playable race, where i use haunted gold mine, but not for mining. My building has negative hp regen so it will be destroyed after time. BUT i need to destroy the golden mine in that moment too. I created a trigger but without result It should work like this: When haunted...
  2. _lycan

    [Trigger] Trigger to remove from the game a hero who dies

    The trick part is that some heroes have abilities based on tauren chieftain's revive, so I can't just remove a hero once he dies, he needs to be "revivable" (meaning that when he died he wasn't on CD) I tried doing this But it doesn't work, the hero is still revivable. Anyone knows how to...
  3. SoooK

    Em I using variables wrong?

    I just want to know, if I'm currently making a mistake, or if I can keep going as I do. My problem (maybe): I use a couple of variables (udg_) in almost all of my triggers. Stuff like temporary locations, units, groups... I properly remove/destroy them after use, but I'm still worried, that...
  4. Fakuspakus

    [Trigger] No bounty

    Player Group - Pick every player in (All players) and do (Actions) Loop - Actions Player - Turn Gives bounty On for (Picked player) I have this trigger, also creeps have base gold set accordingly and dive is set to 1-1. Why creeps still don't give bounty after killing them?
  5. InSaNe_97

    Passive ability when "Mana Shield" is deactivated.

    Greetings! I want to make "Mana Shield" that when is deactivated unit (that has this ability) have some passive ability. Not about the title: In my case I want that passive ability be to hurl an rock on random target every 0 to 16 seconds in 900 range, that hit the target, deal damage, stun and...
  6. Recklessness

    Damage Bubble Ability

    Does anyone have any idea on how to make or get started on an ability that function almost exactly as Power Word: Shield from World of Warcraft? I essentially wish to make a spell that upon activation it places a bubble around a character that would shield them for x damage (damage of all...
  7. SNIper of DARKness

    Mechanical Critter "Mechanic"

    Greetings, I've come here in search for answers about a fascinating ability. The lack of documentation on this has simply awe-struck me. This ability in question is none other than the "Mechanical Critter". It is a hero item used to spawn a random critter that can be controlled much like any...
  8. PartumCreed

    [General] Timed income if carrying item, that stacks?

    How do I create a trigger that gives gold to the player through a timer if the hero is carrying a certain item & how do I make it stack?
  9. Woodenplank

    Forcing unit animation

    Hi Hive I'm making a sort of "motion blur" movement speed ability, and it almost works perfectly. The trigger gives some movement speed abilities and such to the caster, but it also does a loop every 0.20 seconds which creates a transparent clone of the Hero. The clone starts with 60%...
  10. Fakuspakus

    [Trigger] Max 3 units summoned

    So this part works properly, when I use this spell and there are already 3 units summoned, then first unit summoned is killed and another one is summoned. Serpents limit Copy Events Unit - A unit Spawns a summoned unit Conditions (Unit-type of (Summoning unit)) Equal to...
  11. InSaNe_97

    Wait action wont work!

    Wait action wont work!
  12. Fakuspakus

    [Trigger] Local Group not detected

    My ability works this way: Meat Cannon Copy Events Unit - A unit Begins channeling an ability Conditions (Ability being cast) Equal to Meat Cannon Actions Custom script: local location udg_LocalPoint Custom script: local location udg_LocalPoint2...
  13. Fakuspakus

    [Trigger] Owner of local unit not detected?

    Custom script: local unit udg_Devour_Caster Set Devour_Caster = (Triggering unit) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (((Owner of Devour_Caster) Equal to Player 1 (Red)) or ((Owner of Devour_Caster) Equal to Player 2 (Blue)))...
  14. Njord

    Help with items inside building

    Hello! So I have this problem that I just can't solve. I have searched and I have tried different things but nothing works. My goal is that every time an item of a specific type is placed withing a building, it adds 10 gold to a periodic income for the player that owns the building. Item...
  15. konradt

    Trigger to notify players about others' race/class choice at startup

    There's this map [Miscellanous / Other] - Northrend Bound: v1.84 Open Source which I'm doing some small changes on. The map is for 8 players and people are a little frustrated if many of the players choose the same race/profession. So I was hoping to add a text notification function to the...
  16. Woodenplank

    [Trigger] MUI and simultaneous cycles

    So I've created a spell that sends a line of 8 explosions down a path, dealing damage. The explosions proc every 0.85 seconds, so a full line takes about 7 seconds to complete. The spell works just fine, but the Hero has a "cooldown reset" ability, so it has to be MUI - and indeed, with...
  17. Fakuspakus

    [Trigger] One buff at a time

    I want to make a spell that gives friendly unit permament buff, when used on another unit I want buff to dissapear from unit(1) and stay on unit(2) untill spell is casted again. Here's my attempt which works, but its not MUI: Inspire Events Unit - A unit Starts the effect of an...
  18. Fakuspakus

    [Trigger] Unit group problem

    I want to make a passive ability which makes following after attacking: -Heals hero based on fixed value + STR bonus (WORKS) -Creates Special effect on hero while attacking. (WORKS) -Creates unit group of friendly nearby units near our hero. (DOESN'T WORK) -Heals units around that hero for fixed...
  19. Fakuspakus

    [Trigger] Spell similar to Drow Ranger ultimate

    Spell: Gain damage bonus if theres no enemy units nearby. This trigger activates another trigger if selected hero is X. Picked Events Unit - A unit Sells a unit Conditions (Unit-type of (Sold unit)) Equal to Sharpshooter Actions Set SniperMax = (SniperMax +...
  20. Fakuspakus

    [Trigger] Defend ability issue.

    Point of my trigger is to gain armor whenever Defend is active while draining 20 mana per second but I am having some issues. Problems: This part is not detected, its purpose is to remove mana per second cost and armor when Stop Defending is used. If I do this in seperate trigger then...
  21. Nortander

    [General] Automatically add droppable items to a unit

    Hey guys! I'm working on a little project now where one of the main protagonists (a neutral enemy boss unit) actually revives itself at midnight if killed. Like, he revives *every* midnight if he dies. I was able to make it up to that part without a problem. The thing is, I'd like him to keep...
  22. Mistablockout

    Region Teleportation Based on Closest Points

    Imagine a horizontal mountain range that spans the entire length of the map with no way over or around for ground or sea units. The only way for them to access the other side of this mountain is to enter a tunnel, of which there are many to choose from. Instead of creating two regions for each...
  23. Homor

    [General] Revolving unit control based on player absence?

    Need a little help with a player system in my newest map. There are four players in the playable force. I want to make it so that if one leaves, the now-empty player is set to treat every other player as an ally with shared unit control. I need to have this work for every single one of the first...
  24. Lawlsrsly

    [Trigger] Trigger is breaking my map

    Hey guys, I'm having a bit of trouble with the map. I've been working on a moba style map on and off for around 4 years, making small changes here and there. Recently I added some new triggers and content and after testing on battlenet, things were good. Then I added a few more, and all of the...
  25. Shayoo

    [GUI:JASS]"Ultimate Clicker RPG"

    hello i come to you with what could be a bugy system i made sometime ago but was broken by the lastest version of wc3 let me explain to you how it would work : You pick a hero and arrive in a design area with some "creeps" that are unable to attack you get your hero close to theses creeps and...
  26. Lawlsrsly

    [Trigger] Attacking while moving trigger

    Hey guys! Normally I only come here after I've got a working prototype that I'm having trouble with, but in this situation I don't really even know where to start or if it's possible. I'm hoping for some ideas on how to make this work. I have a hero that I want to be able to cast an ability...
  27. Dancyspartan

    [Spell] Neutral Building Spell

    Hi. I'm currently trying to create a neutral tower that exists on the map from the get go. If you approach this building you can press a spell. This spell will make the buyer the new owner of the building, and I'd actually like for the building to "forget" the spell after the purchase has been...
  28. InSaNe_97

    [General] Spawn unit goes into random region.

    Greetings! I have two little, easy-to-solve, problem and I'm asking asking for help. I'm pretty sure that pure title explained it. I make trigger that unit spawn in region "1", and then second trigger when that same unit enters in that region attack-move to another but unit spawn and don't going...
  29. NickGreefpool

    [Solved] Problem with Item Dropping Heroes

    I'm making a Hero Arena of sorts and i have a trigger for making players get an item after an elapsed time. The problem is that sometimes the items seem to dropp (i'll expand on this). The items are listed as 'not dropped when the hero dies'. Listing the items as 'Not Droppable' didn't help...
  30. El Saif

    [General] Correct ways to use new natives

    So, i've been confused about how to use some of new natives we got. Especially those Ability Mana and Cooldown parts. I tried using them on trigger like when the unit starts the effect on an ability, periodic timer, etc. But it seems doesn't really work at all. Anybody knows why? Or i missing...
  31. victorsuazo1991

    Level 10 - Neo-Genesis RPG

    Query. Create a single-player RPG; in which one of your missions was to raise your Hero to level 10, until there all good, because when reaching that level, the Hero received the corresponding reward and the quest was discarded. Now I want to make this multiplayer map ... it happens that when...
  32. victorsuazo1991

    Remove camera online, and destroy Cage

    Hello, I have two questions that I would need help from experienced people. 1- I need to destroy the cage, create a unit only for the player who destroyed the cage. (if player 1 destroyed it, that unit released is only for him) Try placing Owner of Killing unit, but nothing happened. 2- The...
  33. victorsuazo1991

    Help me

    Hi. I would like to convert a single-player RPG into an online modality RPG. Starting from there, I would like to know how to make the object used in this trigger, (Player 1) when acquired by any other player, launch the same effect. Something like Owned by random player or I do not know how it...
  34. Shunpomaster

    My First Mui spell need a check

    I just made my first mui spell, and its working very well at least as far as i know about triggering. Here is what i want to know: Edit: only these is what i need 1- if there is anything still need a fix or make it better. 2- better spell to use for dummy. Channel ability like life drain but...
  35. Recklessness

    Flame Nova ability not working properly

    Essentially, I am trying to create the following spell : Flame Nova: Cause a nova of fire to explode outwards from the targeted area dealing (1.5 x Intelligence) damage to all units caught within. Additionally, units caught within flame nova are set Ablaze and will explode after 3 seconds...
  36. ZeroGravity

    [Trigger] My map is lagging because of something unknown?

    Hi, I have been working on this map for a while now. I have been testing this on almost daily basis and there's an issue that I cannot solve so I need help if possible. My map is a co-op heroes survival map where people do objective and survive waves of enemies. I always notice that there is a...
  37. Shunpomaster

    [Solved]Trigger Leak Check

    Does This trigger leak? The special effect in the first trigger, and the destroy on second Rock Special Effect Events Time - Every 0.35 seconds of game time Conditions Actions Set SE_DestroyWrite = (SE_DestroyWrite + 1) Set DB_AbP[1] = (Position of DB_DU[1])...
  38. Shunpomaster

    a way to stop ordered to attack units From Chasing

    I made a trigger to make units attack the target, but the problem is when they attack they chase forever even if they left the guard distance. I know that is because of ordering them to attack but is there anything i can do to make them not to chase out of their guard distance? Path...
  39. JustTom

    Fixing Leak If Spell is Interrupted;

    I have created a working Mass Teleport ability out of Channel which requires no targets and teleports allies. I want to know how to clear the leaks in the second trigger if the spell is interrupted before it takes place. I have to use the variables that need cleared, which are setup in the first...
  40. JustTom

    Ability Help (Non-channel Blizzard Applying Buff)

    I am working on a blizzard ability that doesn't require channeling. The ability works and deals the correct damage using dummy casts in the trigger; however, I cannot apply a cold buff consistently. The buff, Chilling Touch, only applies the very first time the ability is cast then never again...
  41. Modding-Ivan

    [Trigger] Clarifying variables

    So i was trying to assign a location variable to another location variable also the logic of my trigger was all correct except that i notice is that when i try to reassign the latter variable it takes and removes the value of the former variable. If i may ask are gui variables pointers? Are...
  42. Emin

    How to trigger a unit that's yet on the map?

    Unit takes a damage, then it is ordered to cast polymorph to the source of the damage. No problem there it works just fine. But, only one unit does that and that unit is on the map. What about units that are yet to be produced? I can't work it around. Anyone help me?
  43. victorsuazo1991

    Trigger Problem - Problema Detonador

    Hola. Estoy iniciando con esto de los disparadores por lo que no tengo mucho conocimiento. Resulta que quiero crear un disparo que cuando el héroe llegue a un Nivel 10, automáticamente cree un edificio en la parte superior del mapa . Logre hacerlo, pero, pasa que cuando el Heroe mata a un Creep...
  44. Achille

    Streamlining Unit Spawn Trigger

    Hello friends, I am currently working on a spawn based RTS and I need a bit of help making an efficient spawn trigger for the units. Currently i'm using a 'for loop' to spawn multiple units in accordance to the amount of quarters (spawn amount upgrade), while issuing an order to each unit to...
  45. LazyKnight

    [Solved] [Music] How to smooth switch music? Game hang up when "PlayMusic"/"PlayMusicEx"

    Hi there. I'm trying to make a BGM switching system in my map. I want to dynamic switch specific music when player enter the different area. But the question is when I call "PlayMusic" or "PlayMusicEx" to play my custom imported music file, the game will "hang up" for about 2 seconds. I think...
  46. doomhammer99

    [Trigger] GUI

    Good Day!, I've got 2 problems. I'm trying to make a GUI Spell Pack. I won't spoil about it(just a bit though). [Q] - [W] - Summons a unit, can summon multiple units within 2-3seconds [W] will initially be your first spell, before you can cast [Q] and [E], meaning both spells are useless...
  47. doomhammer99

    [Trigger] GUI

    Good Day!, I've got 2 problems. I'm trying to make a GUI Spell Pack. I won't spoil about it(just a bit though). [Q] - [W] - Summons a unit, can summon multiple units within 2-3seconds [W] will initially be your first spell, before you can cast [Q] and [E], meaning both spells are useless...
  48. cvb1

    triggered critchance

    Hi. After searching the internet and all the spells on this site, I can't seem to find a way to increase the critchance of units through triggers. I want to give items critchance. So if a unit picks up an item with like 7% critchance, then it should increase critchance with 7% for that unit...
  49. Voxelvoid

    Is there a leak here & how do I fix it?

    Please provide with a step-by-step guide.
  50. Fendol

    How can I make a trigger that adds 1 every time an object is obtained?

    Let me explain, I want to make a detonator that when a hero takes an object that number is added to that of a whole number. Something like that: For example, If I do a mission in which they must get 4 items and I put a message for each item that is achieved. How should I do it?
Top