• 🏆 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!

trigger

  1. 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) ?
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. _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...
  19. 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...
  20. 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?
  21. 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...
  22. 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...
  23. 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...
  24. 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?
  25. 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%...
  26. 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...
  27. InSaNe_97

    Wait action wont work!

    Wait action wont work!
  28. 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...
  29. 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)))...
  30. 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...
  31. 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...
  32. 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...
  33. 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...
  34. 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...
  35. 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 +...
  36. 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...
  37. 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...
  38. 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...
  39. 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...
  40. 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...
  41. 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...
  42. 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...
  43. 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...
  44. 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...
  45. 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...
  46. 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...
  47. 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...
  48. 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...
  49. 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...
  50. 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...
Top