I again am having some problems with math.
Currently I'm calculating 3 points at a x radius around a spell casting unit, 3 projectiles should fly to those points, somehow though my calculations are wrong (as I'm no math genius I have no idea why it's not working or even if I'm...
as I'm not that much of a math genius, well not much of a math anything I need some help with a calculation.
What I want to do is I'm gonna fire an arrow towards an angle that the player can just click.
So the player clicks to his precise left (for example) the arrow flies that way...
I want to create a full screen hero selection system using trackables, but I really have no idea how to use them. I've read here and there that there is no triggering player when someone clicked a trackable so how would I go around that for example? And what's the best way to place them...
Hey, I'm currently wanting to use a static method in an interface.
method randomInterfaceMethod takes nothing returns nothing defaults nothing
static method randomStaticInterfaceMethod takes nothing returns nothing defaults nothing //so how is this possible...
I'm currently testing with creating abilities using textmacro's and I faced a problem.
I couldn't add extended tooltips to the ability using textmacro's.
Here is the line I use:
//! i makechange(current,"aub1",1,"Spell testing")
The spell is based of channel and the "aub1"...
I'm currently facing a little problem.
I'm having multiple structs that I need to store into one array (I generate the structs with textmacro's except for the last struct D in the example) all those structs have the same variables and variable names also the same methods exist there.
I'm currently bussy with textmacro's and I wanted to know how you can use a jass global inside a textmacro like this:
integer TestGlobal = 1
//! textmacro TestGlobals //dunno if this is how it calls but just think it is correct:P
I'm creating my first textmacro but it keeps giving me an error.
//this is how I call it
//! runtextmacro Create("0","2","Q")
//! textmacro Create takes x, y, hotkey
//! externalblock extension=lua ObjectMerger $FILENAME$ --gives an error in this line
I'm currently sitting with the problem that scope initializers do not work anymore, so all my spells which use scope initializers do not trigger nor does most (if not all) of the other scope initializers.
If I do something like this nothing shows:
scope bla initializer blas
I'm trying to move a projectile (unit) in a circle but as i'm really bad with math and have no idea how I would even do this:P
I've seen some spells that use this but I couldn´t really figure out how it works and I want to learn how to use it myself not just C&P.
Can anyone help me...
first of all sorry for the bad title couldn't think of a good one.
Ok so I have a problem in my code I have a struct in which a function is ran every x seconds (user can input the x themselfs) now I want to add a check every time that function runs so it can either not go off or it can...
ok so I'm having a problem with array struct members.
//creating a random struct with struct array member
real array value //so this is a simple real array with 25 indexes (or instance dunno precisly but doesn't matter)
//ok now i'm gonna use another...
got a little question there are a few ways to check if a unit is dead, but all have their disadvantages.
So the question is if the "A Unit Dies" event triggers is the unit really considered dead so can't there be any way to revive him by setting his hp higher? (I'm not talking about the...
I'm making a system which triggers a custom event.
Now I want something like when the event triggers you can acces the struct data of the system in the trigger that is triggered by the event.
function a takes ..
//here I should be able...
I'm making a system which places a debuff on a unit, but I have a little issue with it because:
Unit A casts a debuff A on Unit B with a 10 sec duration
5 seconds later
Unit A casts a debuff A on Unit B (again)
For example the debuff is a dot the dot will not stack or remove the...
I'm having a bit of a problem with creating a custom create method the way I want to.
Quick example of how I want to do it (may not even run and could be a few errors in it):
//etc.. anything i need in here...
I got a little problem with initializing the struct I have
Here is the script:
struct Playor extends array //using Playor as player is a var type and Player is a function
I read a tutorial about the object merger and saw that you can change values of a unit during game say I want to add 2 armor or whatever. I understood that this would go for every unit of that type, but now say I want to only change it for 1 unit. Ex.
I have a Unit A and a Unit B they are...