Isn't it just about "false positives" or are they already properly fixed? The statement "return" two times in a function already caused Warcraft to be not abled to start the map, if I remember correctly.
votes = normal_votes
if easy_votes > votes
votes = easy_votes
if hard_votes > votes
votes = hard_votes
Now do whatever you want with that variable 'vote'.
Doesn't use Warcraft 3 the 32 bit IEEE 754 floats standard? I thought everyone used it in that time...
That would mean its actually 1 bit sign (negative/positive), 8 bit exponent and 23 bit mantissa (In reality its ((-/+) mantissa * 2^exponent)).
That would mean the range 9 decimal...
Actually it seems not to work, here is what I've got (its another language, so read the comments^^)
var int herX; herX = her._zCVob_trafoObjToWorld[ 3]; // Get the x of the hero
var int itemX; itemX = Telekinese_Item._zCVob_trafoObjToWorld[ 3]; // Get the X of the Item (which I want to...
Is there a way to get the Atan2-value without the function? I know, this is the place for questions about JASS, but I need to do it without Atan2 (In another language, which doesn't provide Atan2) - maybe a formula as an alternative to Atan2?
Anyway, thanks for now :) (+rep)
And FirstOfGroup-loops get destroyed by so-called ghost-units which are references within a group to units which are already removed from the game. FirstOfGroup will return null for them, though the group isn't empty.
Instead of If (MyFunc()) then
write
If (WhatShouldBeTrue == true) then
So in your example:
function Trig_Elemental_Vortex_Func011Func001A takes nothing returns nothing
if (( IsUnitType(GetEnumUnit(), UNIT_TYPE_MAGIC_IMMUNE) == false) and ( IsUnitAlly(GetEnumUnit()...
Waiting here for an answer or even trying to do complex things without the use of JASS takes mostly more time than just learning (v)Jass. Noone wants you to be a master of it, but especially if you already know something about programming it's very easy and fast to learn.
@SanKakU: He just said that defines are better (and they are since they are easier to type and so on) - they replace textmacros.
Explaining him why textmacros are good is rather useless, isn't it?
You need vJass/NewGen for that - if you don't want to use it (I recommend you to, but maybe you have a Mac or sth.) just declare it as a GUI-Variable and use udg_<name>.