
03-18-2001, 02:44 AM
|
|
Registered User
|
Join Date: Mar 2001
Posts: 43
|
|
|
Horay I finally get to post on here! I think... Anyway...
Ok, from what I understand, board[] contains information about the tiles that are on that level. Now I decided to make a stupid little npc that does:
setplayerprop #c,#v(board[playerx+playery*64]);
With this, I could actually look at what types of values are in the array. I'd expect things like 10, or 20, or maybe 200... but here I get like 2096 (or something close to that) for grass.
Anyway my 3 questions are as follows:
1) Since it's a 64x64 array but there can be really 4 tiles per section of that board, what determines the value? is it an "anded" value of the 4 tiles? And if so, what order is it in?
2) How exactly does changing tiles work? I kinda understand updateboard, but don't fully get it. I'd also like to know if maybe putting this type of code in the NPC server would make it global to all users. I've heard that it's only really local, but the documentation does say it's temporaray.
3) What actually determines the values? Like what makes grass 2096 (or whatever it was)? Is it the position they're in the pics1.png?
Happily making his first post (since the damn thing didn't send me a verification code right away!)
-- JoMomma |
__________________
Temporary disabled
Stefan Knorr
|
|
|
|