- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
I think there may be a bug. I used the following commands, but it always sets the values to the passed value plus an offset of 48. I tried to be clever with passing in negative values (i.e. -47 so I could get the right value of "1") but that doesn't work.
Am I wrong or is this a bug?
"Ncl3" refers to a field in abilities which can range over the following discrete values: [0,31], each referring to the different ways the spell is realized, e.g. "1" would set the spell flag to just "Visible"
"Ncl2" refers to what are the valid targets of the abilities, i.e. is it an AOE or a single target spell. It ranges over the values: [0, 3], where "1" would set the flag to "Unit Target."
Now when I run those commands above, it actually sets the values to "49" and "49" correspondingly. I did a bit more checking, and if I did pass "0" to either one, I would get "48," so it looks like it's adding some offset of 48 to the passed values. Unfortunately I tried something like -47, but that didn't give me the value "1."
Please fix this ASAP or at least tell me if I'm doing something wrong...
I think there may be a bug. I used the following commands, but it always sets the values to the passed value plus an offset of 48. I tried to be clever with passing in negative values (i.e. -47 so I could get the right value of "1") but that doesn't work.
Am I wrong or is this a bug?
JASS:
//! i makechange(current, "Ncl3", "1", "1")
//! i makechange(current, "Ncl2", "1", "1")
"Ncl3" refers to a field in abilities which can range over the following discrete values: [0,31], each referring to the different ways the spell is realized, e.g. "1" would set the spell flag to just "Visible"
"Ncl2" refers to what are the valid targets of the abilities, i.e. is it an AOE or a single target spell. It ranges over the values: [0, 3], where "1" would set the flag to "Unit Target."
Now when I run those commands above, it actually sets the values to "49" and "49" correspondingly. I did a bit more checking, and if I did pass "0" to either one, I would get "48," so it looks like it's adding some offset of 48 to the passed values. Unfortunately I tried something like -47, but that didn't give me the value "1."
Please fix this ASAP or at least tell me if I'm doing something wrong...