A word of warning though - not all conversions are reasonable, despite still being possible. I will be noting that troughout this tutorial, functions that are not marked as "Real-only" are accesible to every type.ī) Conversions - But there is a way around that - with the conversions, they can convert one number type to another. Example - any type of counting function is restricted to integers, and most of the unit properties(life, movement speed, etc.) are Real-only accesible. There are a lot of common functions, but each type has functions that are specific to it. Note: Here's something odd I am not sure of - in the editor, the accuracy goes to the 2nd digit after the decimal point, in the game it goes 3rd, and I'm not sure if this 3rd digit can actually be used.Ī) Watch the titles - Each window that reqires some sort of number - pay heed to the title of that window saying what type of number it requires (integer or real), so you don't have to wonder why you can't find the function you need. Its also a reqirement for anything involving geometry in the World Editor. But since this is math and everything is equal to something else, in some cases there is a simple way to achieve more accuracy(if needed), I'll talk about that later. The accuracy is up to the second digit(one hundredth). An integer can assume any value between -2147483648 to 2147483647.(Thanks wonderpriest).ī) A Real variable - this variable can take any real value, be it positive, negative, whole or decimal. Thats why there are less math functions with it and also no trigonometric functions at all. Variables - I'm gonna make a quick explanation, there are 2 types of numeric variables in the World Editor:Ī) An Integer variable - this variable can take ONLY whole(positive or negative) numbers(like counting units and other things that can never have a decimal). I guess anyone who has brains enough to understand this tutorial would also have enough sense of logic to be able to understand triggers quite well.Ģ.
World editor warcraft 3 arithmetic rounding full#
Math functions are used in triggers to calculate diffrent numbers and if used to the full potential can be a priceless asset in creating a great trigger enchanced spell or some other original and/or fancy feature in your map, that would make it outstanding. One thing I'm saying from the beggining - I'm not going to (re)teach all the maths - thats something you learn in school, not in a WE tutorial! With that said lets start with the basics you need to know.ġ. I guess the algebra(on the level WE offers it) will seem easy enough, but trigonometry may be a diffrent thing(I wasn't good at it either).
This is a comprehensive tutorial that (if you are willing to read it through) will teach you about all the possibilities for working with numbers when using the World Editor. And its also an effort to prove that what you learn(ed) in math classes in school can be useful. Its aimed at begginers as well as advanced users. This tutorial is about all the mathematic functions and possibilities that exist withing the World Editor.