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


  1. Ruvven

    Leak fix location array?

    Hey there everyone, I have an array point that i will be spawning quite alot but i need it to be cleared aswell of course and the point itself is based on another unit variable where it selects the player number of triggering player? is there any way to do something like the one i listed...
  2. Systemfre1

    Normalize a real in GUI?

    Just wondering if there was a way to do this using GUI?
  3. HerlySQR

    [Lua] Trigger variable event is not working

    For some reason the variable event for a system I did in Jass and worked in that is not working in Lua, basically the triggers with that event doesn't run, why?
  4. HerlySQR

    [General] Fade filter with a variable duration

    I wanna make a fade filter that enter and then exit (I don't know if this is how is writen in English) but that last what I wanna, basically I wanna that end only if a condition is true, I tried to use a fade filter that enter and in the end other that exit, but this last only repeats itself, I...
  5. HerlySQR

    [General] Question about variable arrays

    When you create a variable array it has a size, so by logic, you can't never use a index the pass the size, exm you create a variable with size 10 so you never can use a index 11, but sometimes I see you can do this, if the size is 1 at least I think, is this because a variable array with size 1...
  6. HerlySQR

    [General] Question about variable arrays

    When you create a variable array it has a size, so by logic, you can't never use a index the pass the size, exm you create a variable with size 10 so you never can use a index 11, but sometimes I see you can do this, if the size is 1 at least I think, is this because a variable array with size 1...
  7. HerlySQR

    How necessary is "null" the variables?

    I heard you should "null" the variables when you don't need it anymore, but I saw people sometimes didn't do this when they recommend triggers, so when is necessary do this?
  8. bruunk

    [Solved] Do I need to destroy this group to remove leaks?

    Hi, I'm just wondering if my unit group is stored in a variable do I still need to use the "BJ_wantdestroygroup" function. This is the trigger I'm curious about: SS SoulGroupCheck Events Time - Every 1.33 seconds of game time Conditions Actions Unit Group - Pick...
  9. bruunk

    [Solved] Inconsistent trigger that once worked perfectly

    Hi, I recently asked for help on these forums to ask for a way to call for variables in a randomized checklist format. I've since made 2 changes and am faced with a trigger that is, for reasons that I cannot identify; inconsistent. The changes are turning "Take the Questionnaire" (the thing...
  10. bruunk

    [Solved] A way to call upon independent variables based on the player triggering the event?

    Hi all, I'm finding myself caught up in all sorts of mathematic problems lately, something I'm not the greatest at solving on my own. I want to have a trigger that will go something like this: Event triggered by "Player (X) presses a button for a dialog box" (The dialog box will have multiple...
  11. Recklessness

    Using Damage as universal variable

    I have some doubts as of late. So for almost every spell I have so far in my rpg I used a variable named damage. Will this create a conflict? For example if two different spells and completely different triggers are used at the same time; lets say spell 1 deals (5x str damage) and spell 2 deals...
  12. GhxBronie

    [Crash] What is the maximum amount for Triggers/Variables?

    Hi WorldEdit M8s :thumbs_up: I have a curiosity about the number of Triggers/Variables for every map. I'm asking this because i had 1221 Triggers and 1961 Variables in this map. Now i add a new system, creating 24 Triggers (1245 in total) and 2 variables (1963 in total) to make it works, and...
  13. Uncle

    Creating global variables in Lua (and some other Lua questions)

    Edit: I figured out my problem and managed to get the global variables and multi-dimensional array to work. However, this brings up a new question. Is there a way to set the default values of these Arrays to be 0 instead of having to manually set every single one to 0 like I do below? I don't...
  14. HolyWillRise

    (Variable) Cannot convert force to group Help

  15. Uncle

    [Solved] When to null a variable?

    Hello, I was reading about leaks and I didn't quite fully grasp when I should null a Unit variable and other Object variables. Here are some examples of what I'm currently doing: Example 1 Events Unit - A unit Starts the effect of an ability Conditions (Ability being...
  16. EarthWormJimmy

    Set Point Variable to Another Variable not working.

    So I set Variable A = center of region. Then I set Variable B = Variable A Then I Call Remove Variable A. Now in a seperate trigger later on I create 1 unit at Variable B. But it doesn't seem to work unless I delete the Call Remove Variable A Script.
  17. 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...
  18. 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...
  19. 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...
  20. InSaNe_97

    [General] Double-sided resources.

    Greetings! I need a bit of help, I need to make (for now just for gold) double-sided resources, let me introduce you what I mean. In incoming map I'm making (I will post it on Hive Workshop), player play with chosen hero, one of heroes available is "Shadow Demon", it is one hero with two bodies...
  21. 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...
  22. deepstrasz

    Locust, moving & enter regions, unit groups

    What am I doing wrong? Please help. I'm going nuts. The ArcaneBlast unit is flying and has the Locust ability. There's a region moving with (periodic event). The problem is, that when ArcaneBlast gets near enemy units, it very rarely triggers the last part of the triggers (where an enemy enters...
  23. Snigglel

    Re-ordering variable order

    Hi! I want to be able to store any order into a variable to re-order it after using an ability but I can't seem to find a function for it in GUI. Please help!
  24. DeMoN100

    Trigger Response to Specific Name!

    Hello I am trying to make a trigger that only executes itself when a specific player name says the command. For example lets say I wanted to make "thisexamplename" get all of blue players units when he says -give me blue. No matter what color "thisexamplename" is on the trigger will only work...
  25. Xeryxoz

    [GUI] VDAAO - Variable Duplicate Aversion And Organization

    Introduction I am sure everyone has experienced a duplicated variable once or twice in a map they were making. There are always many ways to regulate it, but nobody really does it. So in this tutorial I will be showing a few neat ways of how to avert Our options... The best one is using the...
  26. CAAentertainment

    [Solved] Removing selected/specific unit variables

    So, I've been updating a very old map of mine for the past year. The map itself is nearly 5 years old by this point and over the year I've vastly updated all its triggers to be efficient and leakless to the best of my ability. However, I was a total noob those 5 years ago, and I foolishly did...
  27. Elf_Lord

    [JASS] GUI-AI Interfacing

    Hey, everyone! I have a pretty simple problem that probably has a pretty simple solution, but my knowledge of JASS is exceedingly limited and I haven't been able to find any information online to help me figure it out. I am currently working on an AI for a map in my campaign that is supposed to...
  28. TheAyalalalalon

    [Trigger] Detect last casted spell for a unit

    Hello Is it possible to save as a variable or detect the last ability casted by a unit to trigger it as an issue order? Event Unit begins channeling an ability Condition (Targer unit ability being cast) Equal to <Unit> Action Order <casting unit> to use <spell>...
  29. mietek

    [General] Max number of variables/triggers in map

    1. I' m curious how many variables/local variables i can use in single map? 2. How many unique triggers/functions i can possess or use at once? I saw topic that one guy get crash when he used 2000 of function calls. I've seen benchmark threads about integers and diffrences in speed in usage...
  30. Mighty

    [Solved] Undeclared variable

    so i made this little jass script to disable fog in my map but it gives me an error in jasscraft Undeclared variable : gg_trg_FogOff function Trig_FogOff_Actions takes nothing returns nothing call FogEnableOff( ) call FogMaskEnableOff( ) endfunction function InitTrig_FogOff takes...
  31. Datnes

    [Solved] Set custom variable

    Hi, please help, I am new in W3 Scripting. I wanna: set (variable of name(Content of Variable1)) = Variable2
  32. TheAyalalalalon

    [Solved] Mirror image destroys variables?

    I set a learning hero to turn into Var(variable) when the learned hero´s skill equal to a custom mirror image. Problems is i see that when the mirror image is casted the variable stops working until i level up mirror image skill so i reactivate the set variable = Varia Events Unit...