Could always use a boolean variable "var" and a trigger with the events "Unit Takes Damage" and "Unit Deals Damage" that makes var true, waits 5 seconds, then makes it false.
thanks guys. Add on question:i have a trigger and i dont under stand why it doesn't work "down blow"
Events:Map initialization local variables:Ping timer = (Last started timer)<Timer> Actions:Ping the mini-map at (point 001) for (all players) over 20 seconds using color "white" Timer-Start (new timer) as a one shot timer that will expire in 12 real time seconds Timer-create a timer window for ping timer with title "End of Ping!" using remaining time (initially visible)
P.S no conditions
help i dont know whats wrong the window shows up with the timer but its starts at 0 and doesn't do anything
You need to create a timer before you can do anything with it. Creating a timer variable doesn't create the timer itself - it just acts as a placeholder for timer objects should you need to access them later.
Add on question:how do i make some sort of a randomizer hmm what will be my example oh i have 6 text tags label 1,2,3,4,5,6 how can i be at map inzialtion display test tag but it wont be one it will be at random help?
The biggest possibility then is some function is being called that will only accept values within a certain range and you are passing a variable that exceeds that range. Find the HeroDeath function (since that is apparently where the problem is occurring) and see if you can trace where the problem is coming from.
I'm in a class right now, so if you still need help by tonight I will look at your map and see if I can find anything.
A global variable can only work with functions or triggers that work with that type of variable. For example, the Text Message trigger will create a text message on a player's screen from a Text value. You cannot pass, say, a Region variable to this trigger, because Region and Text are two completely different types of variables.
"Unit Type is UnitTypeVariable == true" would be what the variable would look like, replacing UnitTypeVariable with whatever variable you are using. When Choosing the value for the UnitTypeVariable, there is a row of buttons along the top of the window named Functions, Presets, Variables, etc. Choose the one that says Variables, and your variable should appear.
Unless you are writing in Galaxy code (and maybe not even then), you shouldn't have any problem at all with compiling. The editor should take care of it for you.
It seems like you are accessing values of arrays that don't exist. Are there arrays in these tutorials that you didn't update to suit your needs? (a.k.a the tutorial is working with 15 heroes, but your map calls for 20. If you copied the trigger directly, then when your trigger accesses a value over 15, it freaks out.)
There's a neat immortality behavior in the wurm mission (the second to last one where raynor goes underground). You can copy this into your map and assign it to heroes. Then you can have a trigger that "revives" heroes when they take what would normally be lethal damage.
Create a Timer variable. Then in your trigger, after you make the timer, use "Set Variable" to set your Timer variable to "Last Created Timer". Use similar methods to assign variables of any type of object that you create during runtime - Dialog item: "Set Variable - Blah = Last Created Dialog Item"; etc.
If you're going to create a lot of stuff during runtime and you want to save them to variables, you're going to be using "Last Created" things a lot.
Local variables are variables assigned to specific triggers, and only exist for the duration of that trigger. No other trigger can access them, and they disappear as soon as their parent trigger finishes running. Global variables, however, can be accessed from any trigger at any time, and they retain their value for the duration of the map.
My favorite hero arena in War3 was the Fireblade Arena. I have no idea how many heroes it had but it had to be close to 50. Also, when your hero got to level 10, it would evolve into a stronger version of itself. This amounts to almost 100 heroes.
0
@Nugs0153: Go
Could always use a boolean variable "var" and a trigger with the events "Unit Takes Damage" and "Unit Deals Damage" that makes var true, waits 5 seconds, then makes it false.
0
@WarGodz: Go
I made a blank map, added the first line of your code, and it worked fine. Maybe you're overworking one action and it's freezing the portrait?
0
You need to create a timer before you can do anything with it. Creating a timer variable doesn't create the timer itself - it just acts as a placeholder for timer objects should you need to access them later.
Math - Random Integer between 1 and 6.
0
See what would be awesome is if someone made a 3D TPS DOTA style game.
If you steal my idea, send me a pm and involve me in its creation. :)
0
@Slims20: Go
The biggest possibility then is some function is being called that will only accept values within a certain range and you are passing a variable that exceeds that range. Find the HeroDeath function (since that is apparently where the problem is occurring) and see if you can trace where the problem is coming from.
I'm in a class right now, so if you still need help by tonight I will look at your map and see if I can find anything.
0
@aczchef: Go
A global variable can only work with functions or triggers that work with that type of variable. For example, the Text Message trigger will create a text message on a player's screen from a Text value. You cannot pass, say, a Region variable to this trigger, because Region and Text are two completely different types of variables.
"Unit Type is UnitTypeVariable == true" would be what the variable would look like, replacing UnitTypeVariable with whatever variable you are using. When Choosing the value for the UnitTypeVariable, there is a row of buttons along the top of the window named Functions, Presets, Variables, etc. Choose the one that says Variables, and your variable should appear.
Unless you are writing in Galaxy code (and maybe not even then), you shouldn't have any problem at all with compiling. The editor should take care of it for you.
0
@aczchef: Go
http://wiki.sc2mapster.com/galaxy/tutorials/
Scroll down to the triggers section.
0
@Slims20: Go
It seems like you are accessing values of arrays that don't exist. Are there arrays in these tutorials that you didn't update to suit your needs? (a.k.a the tutorial is working with 15 heroes, but your map calls for 20. If you copied the trigger directly, then when your trigger accesses a value over 15, it freaks out.)
There's a neat immortality behavior in the wurm mission (the second to last one where raynor goes underground). You can copy this into your map and assign it to heroes. Then you can have a trigger that "revives" heroes when they take what would normally be lethal damage.
0
@aczchef: Go
Create a Timer variable. Then in your trigger, after you make the timer, use "Set Variable" to set your Timer variable to "Last Created Timer". Use similar methods to assign variables of any type of object that you create during runtime - Dialog item: "Set Variable - Blah = Last Created Dialog Item"; etc.
If you're going to create a lot of stuff during runtime and you want to save them to variables, you're going to be using "Last Created" things a lot.
Local variables are variables assigned to specific triggers, and only exist for the duration of that trigger. No other trigger can access them, and they disappear as soon as their parent trigger finishes running. Global variables, however, can be accessed from any trigger at any time, and they retain their value for the duration of the map.
I hope I understood the question correctly...
0
It's either this, or you design a custom UI... I'd say go with the ability method.
0
@Keyeszx: Go
LOTS of heroes with customization capabilities.
My favorite hero arena in War3 was the Fireblade Arena. I have no idea how many heroes it had but it had to be close to 50. Also, when your hero got to level 10, it would evolve into a stronger version of itself. This amounts to almost 100 heroes.
0
Is there a way to make an animated GUI?
0
Is there a way to make a unit play a certain animation in the editor?
0
Chrome isn't horrible, but I prefer firefox a lot more, and I almost never have a problem like this.
0
@Azisien: Go
Go to the text editor. Everything that has a name can be modified in there.