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

    Universal+stacking lifesteal issues (particularly with illusions)

    Hello, In my map I am trying to make a triggered life steal that works for every units attack type (melee, ranged) and compatible with orb effects. I also want that it stacks. To do so, I made the trigger that periodically check units every 0.25s for...
  2. Gilded

    Scavenging Corpses

    I want to learn how to Allow the Unit to Scavenge a corpse with a knife. For Example my Hero just murdered a bear and needs to extract the meat from the corpse and not just the fur that is done on my map. But I want skinning a bear to be special or some other animals. Something Founders of The...
  3. Yui Moe

    [Marketplace] When Adding the 12th Unit to All Marketplaces via Trigger

    Hello everyone, Today I encountered a weird bug with latest version of World Editor (1.31): 1. Using trigger to add unit type to all marketplaces (Neutral Buddings category) 2. When adding the first 11 unit types, everything works perfectly 3. When adding the 12th unit type (the last unit type...
  4. Cryze666

    adding abilities to items by trigger

    with the latest patches we got a lot of new functions to use, one of them is "Item - For Item: X, Add Ability: Y" yet when try this the item stays empty - i'm only adding item abilities, the item has no abilities on default, yet when i add the +1 strength item ability and pick up the item i get...
  5. Yui Moe

    [GUI] Set Unit Integer Field

    Hello, in Trigger Editor (GUI), under Unit category, there is an action called Set Unit Integer Field, and there is something makes me confused: Agility Agility (Permanent when modified) Agility (with Bonus) If my guess is correct, (2) means white text part, and (3) means green text part...
  6. Yui Moe

    [Rich Dialog] How to present rich content in a dialog?

    Hello everyone, I am new to dialog part in GUI trigger :) As far as I know, we can only make either title or button for dialog. However, what if I want to have rich content like: <h1>main header</h1> <h3>subtitle 1</h3> <p>paragraph 1</p> <button>button 1</button> <h3>subtitle 2</h3>...
  7. Nanaki772

    Unit spawn trigger

    Hello, so I'm making a 1v1 TD kind of map and I'm trying to make it so units upgrade when a player researches an upgrade! So basically I have a trigger which spawns 2 Grunts and 2 Headhunters, and there is an upgrade that upgrades the amount of Headhunters spawned to 4. Now here comes the...
  8. Shooterman56

    Triggering abilities via items

    I have a hero ability that has an added effect of turning the team of the targeted unit via triggers. How do I go about modifying the triggers so that it works as an item ability? Working hero ability (no event): Conditions (Ability being cast) Equal to Madness |c0096FF96 [W]|r If (All...
  9. Venkolm

    [Solved] Avatar

    So, i want to make Avatar to be usable ONLY if/when the unit (Mountain King) has LESS than 50% life. When he has life greater than 50%, he cannot use it (for balancing purposes in my map). So, how do i do that? How do i have the ability unusable, when the unit has more than 50% life and usable...
  10. Peach Schnapps

    [General] Make NPC units attempt to position behind enemy units and Attack from behind to fire damage trigger

    Say we have a trigger set up that attacks from behind (a units attack/attack animation literally strikes/touchs the back of another units model) does bonus damage, would there a way to go about having units attempt to position well (attempt to move behind the units it is attacking) to get the...
  11. Ricola3D

    [Solved] A way to know what Warcraft III version executes the map ?

    Edit: solution in the following post Detect Game Version (GetPatchLevel) Hello, I just discovered that my map works fine with Warcraft III 1.30.4, but not with Warcraft III 1.31. The problem is on function "Unit - set base damage", aka BlzSetUnitBaseDamage in JASS. I use it to increase the...
  12. Setokaiva

    (1.31) Custom script: "Any unit takes damage" event

    The recent patch to 1.31 had, in the notes, a reference to new capability for custom scripts to detect when any unit is damaged for a trigger event. Does anyone know how exactly I would write such an event in custom script?
  13. Voljin

    Max Map limit for Campaigns

    Hello all, Apologies if this is not right place to post this, was not sure. I have been building an epic sized campaign with over 100 maps so far in an attempt to build a huge RPG style campaign. Unfortunately, what I long feared when I started this venture about a year ago, I capped the...
  14. Uncle

    [Solved] Turn off trigger, do something, turn on trigger. Is this a safe method to avoid infinite loops?

    So, my trigger is working fine. I'm just curious if turning off a trigger, then doing something that would run the trigger's Events, then turning the trigger back on is a safe method to avoid a crash/infinite loop. Destructible Death Events Conditions Actions If...
  15. Uncle

    [Solved] Issues with Run trigger/For Each Integer. Actions are executing out of order.

    Alright, so I didn't know how to word this one, but basically the issue is with this trigger: Generate Walls Events Time - GenerateTimer expires Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions...
  16. HolyWillRise

    How to make a unit spawn from meteor every x mins of the game?

    I want every 10 min of the game a meteor to land on you and spawn a unit. Same as in Sunken City.
  17. BradPittlord

    [Solved] Image Photoshop Transparent Background

    Nother question, is it possible to show a Image in game with a transparent Photoshop background without it just showing up as a white background?
  18. slovak27

    [General] Item removal, if the item is nt collected

    Hello guys , I am working on map where i have over 200 item drops. Now i need to make something to solve items that are not collected. How to do trigger to items? If the unit dies it creates item If a player do not collects the item till 60 seconds it would remove. CONDITION : only items from...
  19. Vraeth

    [Trigger] Making a Boss that revives heros.

    Hello everyone! I'm a newcomer here :D I'm making myself an enchanced Warchasers map. You know the old school 4 man map where you basically fight through a city of monsters. The map made by blizzard, and originally have 3 bosses. I made a bunch, with custom models etc etc. I came up with an...
  20. Hypnotic)

    Spell Shop/Chooseable spells (i need help)

    I want a detailed help about making a Shop with buyable custom or basic spells. I have already read the thread about that but i'm still struggeling with. For me it's hard to find the right choices in triggers tab, basicly its really hard to make my own trigger look like the trigger post in...
  21. Sleepless

    Check a player's camera position

    I need a trigger/event that checks a player's camera position. I want to change the camera distance (ik how to do this part) when the player hovers over the camera to a specific area of the map. Any Ideas?
  22. Cushq

    Arena Duel Trigger

    I'm trying to set up a dueling trigger for my arena map where at say 15-30 minutes intervals there will be a duel with all the current heroes on each team that are on map get sent to a region and after there is one team left will then move the units back to their respective spawn zones. Doesn't...
  23. Cizqué

    Random (Number) (GUI)

    Hello, I have made a working random hero trigger, my issue with it though is that i want to disable hero picks with it aswell. Let’s say i random a Paladin Hero , if a paladin hero is created i want to somehow make the random unable to choose a paladin again (for the rest of the game). Is...
  24. MrSocky

    [Spell] Making Forked Lightning a healing spell

    Greetings Some time ago, I began working on my first big project and usually I find the necessary tutorials or work around the encountered issues myself, yet I feel lost regarding this one. Some tutorials displayed options which seemed to be impossible since the editor doesn't offer the desired...
  25. Peach Schnapps

    [Trigger] Need help with Damage Engine Armor Trigger

    Hellllo, I'm just trying to set up a trigger with Bribe's Damage Engine that will act a lot like hardened skin: I just want the dmg to be reduced by 1, for each point of armor. This is what I have so far: Events Game - DamageEvent becomes Equal to 1.00 Conditions...
  26. InSaNe_97

    [General] JASS, I need help for simple AI.

    Greetings. I am learning JASS so I need a bit of help. I am asking public to make Me a simple AI in JASS. That way I will be able to much easier understand things and finish My map. AI: 1. B and A in 180 r. while B is running "2" |then| Order B to attack A for 2s *. 2. B and C in 140 r. |then|...
  27. CodeBlack

    [Trigger] Voting system bugged

    Hey Guys, I believe i already asked for help to this before, but it seems the Soultion people came up with doesnt work properly...so here i am again xD The system should take in the Votes of every active player, setup the Game and then start the Timer. For some reason it doesnt work properly...
  28. Cushq

    Rage for Warriors

    Hey there Hive folks I have been browsing some of the existing forums and haven't quite pegged the right thread or something that helped me more so with my map. In my map I am trying to get a rage system onto my warrior based spec heroes i have Fury/Arms and Protection I would like them to be...
  29. jaspergeli

    [Spell] How to stack Barrage and Searing Arrow?

    It's better if you can help me how to put Searing Arrow to the Barrage targets. Does this require complex triggers? Thanks in advance.
  30. loktar

    [Solved] Can things like hashtables, triggers be constant?

    Can things like hashtables, gamecaches, triggers be defined as constant globals when they won't be reassigned? The reason I think they might not is that the actual object can change by storing/flushing values or adding events, conditions or actions. Is there even a compelling reason to do it...
  31. CodeBlack

    [Trigger] Trigger Abomination Slim Down

    Hey Guys, Me again with obnoxiously ridiculous triggers and a cry for help. Can somebody take a look at this monstrosity and give me an idea on how to slim it down? Those triggers handle the Buffs/ Debuffs and the unit counts that happen through placing buildings besides each other. Because...
  32. Wayshan

    Speed adjustment dependent on terrain

    Hey! I am trying to make a trigger that would give units boost according to the terrain they're on. For example: when you are on the dirt +5% movement speed when you are on the rock -5% movement speed. I would like the trigger to check all units every 1 second and depending on their position...
  33. InSaNe_97

    [General] Memory leaks.

    Greetings. I made trigger and want it without memory leak if possible. I want to use same variables in multiple triggers. Also I want to make this works multiple times at once when needed. Events Unit - A unit Finishes casting an ability Conditions (Ability being cast) Equal to Transition...
  34. Doom_Kaiser

    Hero Select then Move to Region - How?

    Hello, I made a custom Tavern with 6 Heroes available to pick. The style i am doing is a Custom Hero Survival , where a hero gets moved after a period of time to a location where creeps spawn. However I want to choose every game a different hero and he to move when the time has passed to that...
  35. Ricola3D

    [No clean solution] Triggers - Access gameplay constant value

    Hello, In a trigger I wan't to make formula that uses the game play constant "Hero abilities - defense bonus per agility point". Is there anyway to get the value of this constant in a trigger (GUI or JASS code) ?
  36. iSkyi

    [Trigger] Simple, Quick Questions about Real Numbers, Math - Random Number b/w... & A Few Others

    I am starting to get the hang of this, I promise. I just wanted to get some clarifications on how certain things behave. I've prepared a tiny sample snippet based on a trigger I made recently to refer to below: When I "Set RandomReal = (Random real number between 0.00 and 100.00)," can the...
  37. InSaNe_97

    [Spell] Wind Walk for flying units?

    Greetings. I want to make ability that turns caster invisible and gives bonus movement speed, just as Wind Walk does. When invisibility is stopped so is movement speed bonus. Wind Walk has those things but looks like can't be for plying units. Things that Wind Walk has but I don't want in this...
  38. Nazgrel

    [Solved] Spell Trigger Conflict (GUI)

    Hello, I'm Naz, I'm new here as you can probably see and I'll try to make this as straight forward as I can for your convenience. I'm making an RPG, my very first map at that, and I have no experience in anything let alone programming, so I've just been copying forum triggers whenever I need...
  39. Bombriick

    [JASS] Help with AOE Spell Trigger

    I'm working on a spell based on flame strike , but it doesn't work for some reason , as you can tell the spell is supposed to do damage to units in target area ONCE, I chose flame strike as a base because of the spell aoe effect since I tried it with channel and it didn't work. Please Help...
  40. iSkyi

    [Trigger] Need to Find an Alternate 'Wait' Method for Unit Respawn

    I can't recall where from, but I found this as a tutorial method for respawn of creeps (RPG style). I've really enjoyed the concept and have used it quite creatively in many of the triggers for this game (using the CV for stuff.. etc.) I only just recently learned that Wait Game-Time second...
  41. Mistablockout

    [Trigger] Trigger Not Retrieving From Hashtables Correctly

    In this game, the modes and maps are selected and then the map is generated. The generation works fine, everything is placed within the region I want them to be placed in. One of the few destructibles that are placed down are "Rock Chunks", and the majority of the early game will be running...
  42. Bombriick

    [JASS] code after endloop not functioning

    The following code is not working for some reason after endloop, what's is wrong here? set udg_counterab = 0 call BJDebugMsg("test") call DestroyGroup(ug) function aa takes nothing returns boolean if (IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == TRUE) then...
  43. SoooK

    [Solved] Increase ability level with tech upgrade

    I want to increase the level of an ability by setting the current rersearch level of a corresponding tech, which increases the ability level. My goal is to increase the strength of the paladin in the test map. I'm using the item ability for that, but I can't get it to work. Does anyone see my...
  44. Fakuspakus

    [Trigger] Drinking animation not working anymore after basing ability on Channel.

    This trigger played animation of Captain's drinking correctly, that changed after I based ability on Channel. Animation names don't seem to work for this animation, this is why I am using trigger. Heal Events Unit - A unit Begins casting an ability Conditions (Ability...
  45. SoooK

    Trigger execution speed

    Let's say I have two trigger: TriggerA fires every x seconds (by its own event) and runs TriggerB. TriggerB does lot's of stuff. So much stuff, that it's just impossible to fully execute all actions of Trigger B before TriggerA wants to fire again. 1. Does TriggerA just fire before all actions...
  46. Ahne

    Spell Ability leaks/laggs heavy

    Hello folks, i am developing a map here on Hive and now i am at a point where i need help fixing my current spell i am working on. It leaks/laggs heavy and i would be pleased if someone could take a look and help me pointing out the obvious stuff that could be responsible for that. I tried...
  47. dfxiispro

    Changing a Variable value through part of a Text input

    Hi, I wonder if its possible, through JASS (which I know very little off) or the standard GUI to amend a variable value through a part of a text input by a player? For example a player enters -Damage 5 The int variable gets set to 5 and then damage will be done according to the value of the...
  48. TheOakStaff

    [Solved] 'Dialogue hero pick' and 'picked player' trigger

    Hello, I was wondering if anybody could assist me with a little problem. I have a 12v12 "hero" map and I've run into something rather annoying. When I set up the trigger for my 'Dialogue hero picking' system i can make everything work just fine, until i get to actually creating the unit. If I...
  49. SoooK

    [Solved] Adding many events? /Changing timer intervall?

    1. Does adding too many events slow down the game over time? I'm currently running a trigger, which is adding one new event every ~25-50 seconds. And yes, it doens't work without adding new events, despite the event being always the same. :/ 2. Is it possible to change the intervall time of an...
  50. Cushq

    Kill Score Trigger

    Hey I currently have a map I've been working on for over a year. One of the running things in the game is a Kill counter telling you how many units/heroes you've killed total. I would like a victory condition based on Kill total, Is their a way to script this trigger? If so how? I have been...
Top