Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-18-2001, 02:44 AM
JoMomma JoMomma is offline
Registered User
Join Date: Mar 2001
Posts: 43
JoMomma is on a distinguished road
Question

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
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:57 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.