- Joined
- Aug 18, 2009
- Messages
- 4,099
Hi,
I want to create ANcl-based abilities via ObjectMerger (that is included in JNGP) and there are the two special fields Ncl2 (targetType) and Ncl3 (options) on Channel. Both are integer fields in raw but in GUI one displays a combo box, the other multiple checkboxes (bitflagging).
Ncl3 should be set to Visible and Unique Casting for example, which would be the integer 17.
However, when using the ObjectMerger like
it takes some ordinal number in ascii of the given input, 14129 would be the result here.
So I thought I had to reverse the process. This tutorial stated "\xxx" would do the trick and I also found string.char(<number>). Both methods seemed to work, the object editor displayed the right values then. Now, it did not work ingame and I have opened the w3a with a hex editor. That revealed that the ObjectMerger indicated Ncl2/Ncl3 as string fields and stored the values as strings, so no miracle the object editor seemed to show things properly.
Anyone got an idea how to tell the ObjectMerger that these two fields are integers? Any input made it considering them strings for now.
Thanks in advance.
I want to create ANcl-based abilities via ObjectMerger (that is included in JNGP) and there are the two special fields Ncl2 (targetType) and Ncl3 (options) on Channel. Both are integer fields in raw but in GUI one displays a combo box, the other multiple checkboxes (bitflagging).
Ncl3 should be set to Visible and Unique Casting for example, which would be the integer 17.
However, when using the ObjectMerger like
JASS:
makechange(current, "Ncl3", 1, 17)
it takes some ordinal number in ascii of the given input, 14129 would be the result here.
So I thought I had to reverse the process. This tutorial stated "\xxx" would do the trick and I also found string.char(<number>). Both methods seemed to work, the object editor displayed the right values then. Now, it did not work ingame and I have opened the w3a with a hex editor. That revealed that the ObjectMerger indicated Ncl2/Ncl3 as string fields and stored the values as strings, so no miracle the object editor seemed to show things properly.
Anyone got an idea how to tell the ObjectMerger that these two fields are integers? Any input made it considering them strings for now.
Thanks in advance.