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

array

  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. Knight of Arsford

    [General] Arrays with empty index

    So usually when working on large values, I set the array's max index to 100 so I don't have to worry about adjusting it every time I think of adding another value to the array. My question is, is that good practice? Say if I only filled up a quarter of it, would the remaining empty indices...
  3. Death Adder

    [General] Can you use 2D arrays without setting array sizes?

    Title. I know one of the arrays will never go over a certain size, so that's not an issue. But the other one could theoretically max out. Now I could just pick a large enough number that will most likely never occur in any game, but I'd rather not if given the option. Speaking of which...
  4. Peach Schnapps

    What are the differences in MUI setups?

    From what I’ve read there’s multiple ways to go about setting up an MUI spell or “system”, using an array, using hash tables, I’m just curious are any of these considered the optimal method? Are there draw backs to any?
  5. 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...
  6. Helheim

    [Solved] Set variable to index of array

    Any chance to set a variable to index from Unit[index] array? Custom value ofc is occupied by another functions example Events Unit - A unit enters A00 <gen> Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If...
  7. Ricola3D

    Editor 1.31 > integer array variable not visible in GUI ?

    Hello, I'm coding in GUI with editor 1.31. I just noticied that when I edit an integer variable, my globals of type integer array are not visible, and thus selectable, so I can't use them. In the example below, I used Easy Item Stack n' Split by Dangerb0y and thus I should see a...
  8. Ofel

    Picking random variable in an array

    x[1] = 50 x[2] = 52 x[3] = 54 x[4] = 56 x[5] = 58 I have these five array variables and I want to pick each one by random without picking it back twice or more. How do I achieve this? Thanks in advance.
  9. SpiritTauren

    [Trigger] Creating regions: optimization required.

    Context: I'm using either hand-placed (for small maps) or generated regions for TBS gameplay. When I worked with tiny maps, everything was rather easy and done via several loops within loops. However, now I'm working with the largest map (3 500 640 regions) and can't use Wc3 in-built loops...
  10. TheAyalalalalon

    [Solved] Why it is not working?

    I made a spell that every time casted spawns a unit and its limited to 3 units Every time it is used when number of units equal to 3 the first dies, the second becomes the first, the third the second and the new spawned unit the third The main issue is that some times works perfectly but...
Top