Another thing is you don't need the if:
local string s = SubString("|cffff0000" + SubString("''''''''''''''''''''", 0, a - 1) + "|r|cffffc1c1" + SubString("''''''''''''''''''''", a, 19) + "|r", 0, 19)
call SetTextTagVisibility(this.text, GetLocalPlayer() == GetOwningPlayer(u))
call...
It probably somehow reads it as a comment block
/*
this is also a comment I think somehow jasshelper misses that the "*" is commented and tries to find a comment block end but as there is none it gives an error
just put this: "*./" at the end try if it works (remove the dot).
*/
You can use structs though they get converted to global variables, or use functions with parameters to pass the data. Structs are only in vJass so you need to have newgen to use it.
As far as I've seen triggering it up from 0-0 won't work as somehow the unit still deals 0 damage if I remember correctly, but well you can start at 1-1 and index the value that stores current damage as 1 so it's not that big of a deal I guess.
Some people just like programming more then doing everything in a data editor, like myself I find it way more fun to code skills and whatever (in sc2) then making them in the data editor.
I said I didn't know the correct names of it so I typed something that looked like it (as far as my memory at that moment served), but as far as I know it doesn't exists and isn't supported:P
What I was meaning to type in that thread was this:
//! externalblock extension=lua ObjectMerger...
It would be something like this:
function somerandomfunctiontouseyourstruct takes nothing returns nothing
local Example e = Example.create() //create automaticaly calls .allocate (i thought this was no different if you created allocate yourself but not 100% sure)
//now you can do stuff with...
Oooh I just C&Ped that part from some script that basicly did what I wanted, but gonna remove it and see how it works:)
Edit: changed the calc in the top post to new one (so just removing the bj_RADTODEG) but now it's firing towards the otherside of the unit so it's like angle+180 degrees somehow
Hey guys,
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...
Hey,
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...
@Nestharus
Why is it bad that J4L's Damage has additional features in it. As you don't have to use them they are optional you can just as easily use it only for damage detection, you'd never even have to touch blocking damage and whatever if you don't want to. So I'm not getting why there should...