Hi all, long time no c.
little question, is it possible for shockwave to be autocasted?
It's for a tower defense, and doesn't need an on/off toggle.
yours truly, for ever and beyond,
Me
Is it in any way possible to get a variable in a textmacro so that it doesn't give the name of the variable but from what is assigned to it??
this is my code:
//! textmacro RegionPoint takes ORDERSTR,COLORSTR,AMOUNTINT,AMOUNTSTR
set $COLORSTR$Regions[$AMOUNTINT$] =...
yeah, I know you can use the CreatNUnitsAtLoc function, but I want to go further with the textmacro, but this is an early-stage test.
EDIT: now I get the error: Statement outside of function.
EDITEDIT: nevermind, i forgot to delete a line...
Trying something new, and it is already a pain in the a**(can't say that, can I)
here is my code, all of the code that has got only the slightest contact with it.
//! textmacro NUnitAtLocFunc takes INSTANCE, AMOUNT, IntID, PLAYER
function NUAL$INSTANCE$ takes nothing returns nothing...
yes, it is in the appropriate trigger, and it still doesn't work, but what's worse, a trigger I made(and had some problems with) doesn't work anymore, except if I import the code in a new and clean map. So I'm starting to think that this is about Newgen, instead of me.
Hi,
yet another question.
I've got some code, tested it on a blanc map and there it worked.
then I tried it on a map with a few of my tests and guess what... it soesn't work anymore, the problem is, it's probably just a stupid mistake.
here's the code. It's supposed to create a footman when...
I don't need it, but it's good practice, and maybe even a bit faster, cause if you look at your code, compared to mine, it's got a lot more lines, now doesn't it??
cleeezzz:Yeah, I use Newgen, but I don't seem to get the use using vjass here, i'm not even really good in jass so... but thx...
Could someone plz tell me why this doesn't work?
function Trig_soulsteal_Actions takes nothing returns nothing
//not when attacked unit is granite golem
if(GetUnitTypeId(GetAttackedUnitBJ()) == 'nggr') then
call DoNothing()
else
//only when unit...
yeah, well, string name is supposed to become the name of the struct so that when you enter call add(blah,2,4) the struct used would be test blah=test.create() and the rest ofcourse
is it impossible to make a function out of the trigger just created??
function add takes string name, integer x, integer y returns nothing
local test name=test.create()
set name.a = x
set name.b = y
set name.sum = name.a + name.b
set sum = I2S(name.sum)
call...
that did the trick, thx guys
EDIT: The map runs now, but it won't show the value stored in sum, or any other string if I try to use another one... Help me plz, growing a bit tired of this.