Yes, you can do it like this (freehand):
for loop integer a from 0 to 11
if not yourVariable[integer A] = (null/no unit/etc.) then
(your code)
endif
I'm not sure how to exit loops in gui but you might want to do that to if you only want this to run for one non-empty variable...
set udg_move_to_here = gg_rct_The_Town
...
call RemoveLocation(udg_Move_to_Here)
You're either trying to set a location variable to a rect, or remove a rect as if it were a location
try this
function Trig_Move_to_Here_Func003A takes nothing returns nothing
call...
You will have to go through every possible potion but that's unavoidable no matter how you do it.
When you give the ability to a unit, also store it to a variable, that will be used when removing.
Unfortunately, I don't know what your problem is :(
However, NewGen works fine for me (With windows 7), so there is hope!
Try running as admin or using compatibility mode?
The square bracket is the index for the array. You're replacing the owner of killing unit's kill count with the kill count of another player. The '+ 1' should be outside of the bracket.
This is the absolute weirdest thing that I have ever seen in the world editor!
The problem is in the trigger "Spawn Creeps"
Specifically the line
For each (Integer A) from 1 to creepSpawnCount[levelCount], do (Actions)
After deleting that line and remaking it the exact same way, it started...
Replace
-pick every unit in tempGroup
replace picked unit with heroes[random integer between 1 and totalHeroes] using new unit's max life and mana
with
-pick every unit in tempGroup
--set tempInt = random integer between 1 and totalHeroes
--replace picked unit with heroes[tempInt] using new...
Heres the simple way that I'd do it. Havn't used the world editor much recently so it might be a little rusty ;)
-set heroes[1] = dread lord
-set heroes[2] = archmage
etc...
-set totalHeroes = *number of hero types in the array*
-set tempGroup = units in playable map of type peasent
-unit -...