QUOTE
Apparently, Link doesn't have a variable called 'Data'.
No, he doesn't.
If you want to find what tile Link uses, go to the tilesheet and write down the number.
Simple as.
If you want it to be that number + 748, add 748 to it.
Link's tile is a constant (well, even with LTM it's still not too hard to get your head round), stop being lazy =P
'&&=' doesn't mean anything.
'&=' means 'bitwise and assignment'.
CODE
int bin1 = 001100b;
int bin2 = 111000b;
bin1 &= bin2;
return bin1; //bin1 is now 001000
so that's the same as
CODE
bin1 = bin1&bin2;
and you can also do it with decimal (and hex I assume)
CODE
int a = 5;
int b = 6;
a &= b;
return a; //a is now 4
EDIT:
Heh, I looked at your test quest.
It's perfect except for one thing.
You know how Flag 77 which you used is called 'Reflected Magic', and the one below that is called 'Reflected Fireball'?
Did it not occur to you that you might want to use the 'Reflected Fireball' one, seeing as you're reflecting fireballs? =P
Just change that flag and it's fine.
I will, however, have a look at the pseudo-solidity code, because I can see what you mean about it not working very well.
Not now though, maybe tomorrow.
Edited by Joe123, 08 May 2008 - 10:41 AM.