Page 1 of 1

[renamed due to inaccuracy]confusion about readparam

Posted: 27 Sep 2011, 16:57
by o11c
Edit: It turns out I was wrong, because the same enum was used in 2 difference senses. (In db/const.txt some are type 1 and some are not).

I'll probably change the way this works eventually, though.

The original post follows.
---
I'm at laptop, not home, right now, so I can't actually edit the wiki to remove:
http://wiki.themanaworld.org/index.php/ ... #readparam

the bCamelCase constants from db/const.txt are special and automatically convert to the integer value for the attached player.

Calling readparam at any time is probably wrong: from my understanding, I think the numbers decay before it is even called so it will actually get the value of some random player parameter.