I said 60+, since my computer is crazy leet and Warcraft shouldn't lag...
and if it does lag, it's due to the engine being crappy and regardless of what the map is, it's going to lag. That' sthe one thing I found with Warcraft:P
if it's a hero, then...
event
unit dies
condition
unit is a hero of (your hero type)
actions
if
random integer from 1-100 < (your percentage)
then
ressurrect triggering unit
else
do nothing
If it's a unit then...
event
unit dies
condition
unit is of type (your unit type)...
didn't read it, but wouldn't it just be more logical to find the difference in their xs then add it to the unit's x to make it on the line?
Only if the line is always vertical though, I suppose.
I'm guessing some of those variables don't exist. Did you create variables named...
Save
SaveCount
TempUnit
TempItem
Code
? Cause you'll need them all. Otherwise, some of the functions could be missing/messed up
well, you should probably preload the sound before you play it.. :P
Anyways, blizzy's function for playing a sound is as follows:
function PlaySound takes string soundName returns nothing
local sound soundHandle = CreateSound(soundName, false, false, true, 12700, 12700, "")
call...
add the event for every player (in the same trigger), and change
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) and do (Actions)
to
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of...
if/then/else
create a unit group, units within y range of z unit
pick every unit in the unit group
if picked unit = unit x
then... do your stuff
else... do nadda
What exactly do you need to know then?
How to convert a normal sound to a 3d sound using triggers?
How to create a 3d sound?
If it's any consolation, this native exists...
native CreateSound takes string fileName, boolean looping, boolean is3D, boolean...
Are you sure you you're not setting the unit's max HP to be lower than 0? I would imagine negative HP would crash the game...
I know, really lame question, but it has to be asked.
Also, maybe it's simply a problem with displaying health bars, just some engine problem that makes the game...
In the sound editor, you can convert any mp3 to/from being a 3d sound...
the only difference from a 3d sound and a normal sound is that the intensity of 3d sounds changes depending on how close you are to the source of the sound. Whereas non-3d sounds will play at the same volume no matter...
for every integer a from 1-whatever
substring integer a, integer a
That will check every letter at a time, and you could even create a new variable like
stringthingies[integer a] = substring integer a, integer a
kind of thing, so you can check it later, or use another loop to compare it to...
You could do a really lame trigger, lol
Every 1 seconds
if str of hero[including bonuses] > 255 then
-custom script: loop
-if str of hero > 255
-then set str of hero = str of hero - 1
-else custom script: endloop
else
-if str of hero < realstr
-then custom script: loop
-if str of...
Map init
for every integer a from 1-12 do actions
if player[integer a] is controlled by a human/user (whatever that condition is haha, controlller comparison)
then create 1 wisp for player[integer a]
else do nadda.
Player[integer a] is this function that's called convert player index to...
He's using GetLocalPlayer(); turning off the trigger would turn it off for everyone, and I believe it'd cause a desync if he GetLocalPlayer()ed that too.. worth a try I suppose, though.
I-can't-think-of-a-name-mana-thing
Forces the mana around the hero to take physical form, aka force a mana shield upon units around him. May seem like a benefit, but if you're a spellcaster and being attacked your mana is being epic wasted. Especially sucks on a tank though. Make it a high...