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!
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...
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...
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...
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?
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...
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...
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...
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.
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.