Quick question, and I know this is probably simple, but I'm sick as a dog, and can't think well.
How do I make it so non-hero units can use items? If you give the "Unit Inventory - Race Name" they cant use the items, they can hold the item, but not use it. Do I have to give them the hero...
I just started working on a new map that uses alot of dialogs, I've read on a bunch of a posts that dialogs leak (but its not normally an issue since people don't use many). Since I'm using alot, I figure I should probably clean these leaks. What are the lines of code for destroying them?
I wanted to check on this. When you use the action Convert Player to Player Group, does this create a player group leak? I wasn't sure if its handled differently then other player groups...
Quick question, so I have a trigger that includes the following actions
Actions:
Defeat Owner of triggering unit
Player Group - Pick All players Matching condition Matching Player slot status = Playing and do actions
Now my question, is a player still considered to be playing after he is...
If I pick all allies of player red, does it only pick everyone who a 2 way alliance with red, or does it also pick players who are allied to red but he is not allied back, or players that red has allied but the other player has not allied red back.
So I have a basic trigger that limits training of heros to 1 for all players. However, for custom heros based off of campaign heros, the limit doesn't work. I can build unlimited numbers of these.
Any idea why this is, or how how I can fix it?
This question has been nagging me all morning, cause it affects something on my map, but I'm not at home with editor to test. I'm inpatient so I'm curious if anyone else knows.
If you replace a hero who is currently dead or being revived with another hero, will the new hero also be dead or...
So I'm havign a trigger problem. My trigger runs when a certain king units die. The trigger forces the person whose king died into an alliance with the person who killed it. The trigger also compares the number of players who are playing and allied together with the total number of players...
I'm working on a loading screen and when I go to save my tga file as a blp with wc image viewer i get an error message that says "Run-time error 9: Subscript out of range"
Anyone have any idea why this could be happening?
I'm trying to think of a way to detect when a player returns lumber to a lumber yard. Any suggestions? I thought maybe a unit comes within range of the yard, but than how could i detect the condition of him carrying lumber?
Errr...does what I'm trying to do make sense? I didn't word that...
I was curious, and after a brief search I didn't see any threads addressing this, but has anyone done any research to figure out how big various memory leaks actually are.
For example, how big is the leak created with a hundred unit unit group vs. a 10 unit unit group. Or how much memory...
Howdy,
So I'm trying to design an ability and I need a little help. Basically, I'm calling the ability Chemical Weapons. What I want to happen, is that the flare effect goes off over the target area, and then all the units in the target area get affected by a more lethal form of disease...
I'm looking for a model for a troll hero. It doesnt need to be anything fancy, just the forest troll trapper model with hero glow would be perfect. Ive looked through the trolls models at wc3sear.ch, but their troll ones are kinda ugly.
Thanks!
Are all the advanced gameplay constants stored in one file in the mapfile? If so, does anyone know know the file name?...I have a need to extract and edit it.
How do you go about limiting a hero's item slots to just 1...is there an option for this somehow.
I know how i could do it using triggers and a dummy space filler item but is there an easier way? I don't do much stuff with heros normally, so my apologies if there is a just an option i...
Hey,
So the following trigger is supposed to limit the training of a unit type for all players, yet in game I can still build an unlimited number of the unit, any idea why its not working?
function Trig_test_Func002002 takes nothing returns nothing
call SetPlayerTechMaxAllowedSwap(...
Are there any limits to using TFT models in RoC only maps. I ask because I'm working on a map I want to be RoC compatible. I extracted the spellbreaker model from TFT and imported it into my RoC map. I then tested my map with RoC and the model worked perfectly in game. However, I then tried...
Ok question, which function is more efficient and contains fewer leaks that need fixing , the count living units of type function or the count units in unit group of type function?
I can use either one of them for my purposes, so I want to choose the more efficient one. Anyone know?
I know memory leaks occur when actions are called, but do they also occur when conditions are checked?
For example, if I put a condition on a trigger that checks the number of units owned by the owner of a particular unit, would this condition leak.
I know using unit groups in actions leak...