Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-30-2010, 07:43 AM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
Advanced Custom Tileset

Is there anyway you can rescript the tileset system so that their tiles work different? For example, changing which tiles are blocking, etc. Also, it would be nice to possibly script your own tiles- what I mean is someone could use a script to make those tiles drawoverplayer or something like that.
__________________
Quote:
Originally Posted by Satoru Iwata
On the other hand, free-to-play games, if unbalanced, could result in some consumers paying extremely large amounts of money, and we can certainly not expect to build a good relationship with our consumers in this fashion. In order to have a favorable long-term relationship, we would like to offer free-to-play games that are balanced and reasonable.
Quote:
Originally Posted by Unximad
Eurocenter Games remains attached to the values of indies game developer and to the service our playerbase community.
Reply With Quote
  #2  
Old 12-30-2010, 07:47 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
It's possible but would almost certainly require a custom movement system. You could do it with setshape2 and NPCs but I wouldn't recommend it.

edit to expand:
Using custom movement, the best way I can think of to do it is to make a list of tiles of each type and use a custom tile type function.

PHP Code:
//#CLIENTSIDE
enum TILE {
  
FLOOR,
  
WALL,
  
CHAIR,
  
BED
}

function 
getTileType(dxdy) {
  
temp.tile player.level.tiles[dxdy];
  
  switch (
tile) {
    case 
100:
    case 
101:
    case 
102:
    case 
103// etc
      
return TYPE.CHAIR
    
break; // not really needed because of the return but I think it improves readability
    
    
case 200:
    case 
201:
      return 
TYPE.BED;
    break;
    
    case 
300:
    case 
301:
    case 
400:
    case 
401:
      return 
TYPE.WALL;
    break;
    
    
// any which haven't been defined above
    
default:
      return 
TYPE.FLOOR;
    break;
  }

You could alternatively use if-statements or arrays instead of a switch. Dusty also did something with color mapping.
__________________

Last edited by cbk1994; 12-30-2010 at 07:57 AM.. Reason: elaborating on how to do it with custom movement
Reply With Quote
  #3  
Old 12-30-2010, 07:55 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I've experimented with creating custom definitions. However, without a serverside way of colorpicking from images you have to do it clientside, so it ends up being inefficient(having to scan each login) and insecure(since it's clientside hackers could change the values to walk on walls).

If you're interested: http://forums.graalonline.com/forums...hp?t=134257595
Reply With Quote
  #4  
Old 12-30-2010, 08:22 PM
iFuzzy iFuzzy is offline
Fuzzoodles
iFuzzy's Avatar
Join Date: Aug 2010
Location: New York, USA
Posts: 79
iFuzzy is on a distinguished road
Just to give an addition to Mattkan's question:

Well actually, it's because we wanted to get rid of all the silly lava tiles that we wouldn't need to Level Design with. What me and Mattkan did was change the tileset by replace the lava bubble or something with a custom tile. So now if I go in that custom tile (which is supposed to be a rug), we just start swimming in it.
__________________
This grass.. It feels like, pants!
Reply With Quote
  #5  
Old 12-30-2010, 08:23 PM
RegretZ RegretZ is offline
Me.
RegretZ's Avatar
Join Date: Sep 2010
Location: USA
Posts: 415
RegretZ will become famous soon enough
Use images, place whatever type of tile it should be (blocking, water, etc) underneath.
:P
Reply With Quote
  #6  
Old 12-30-2010, 09:46 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by iFuzzy View Post
Just to give an addition to Mattkan's question:

Well actually, it's because we wanted to get rid of all the silly lava tiles that we wouldn't need to Level Design with. What me and Mattkan did was change the tileset by replace the lava bubble or something with a custom tile. So now if I go in that custom tile (which is supposed to be a rug), we just start swimming in it.
Quote:
Originally Posted by cbk1994 View Post
It's possible but would almost certainly require a custom movement system. You could do it with setshape2 and NPCs but I
asd
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #7  
Old 12-30-2010, 09:52 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by iFuzzy View Post
Just to give an addition to Mattkan's question:

Well actually, it's because we wanted to get rid of all the silly lava tiles that we wouldn't need to Level Design with. What me and Mattkan did was change the tileset by replace the lava bubble or something with a custom tile. So now if I go in that custom tile (which is supposed to be a rug), we just start swimming in it.
That's hardly a reason to implement a new "tileset" system. Just use addtiledef2 to replace unused tiles in certain levels where you need them.

There's a small (but dated) tutorial here: http://forums.graalonline.com/forums...threadid=47038
__________________
Quote:
Reply With Quote
  #8  
Old 12-30-2010, 10:18 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by RegretZ View Post
Use images, place whatever type of tile it should be (blocking, water, etc) underneath.
:P
Using lots of NPCs in this way is usually very bad idea. Not only is there a set limit of NPCs per level, but it will also slow down the client (and serverside scripts looping through NPCs), especially on GMAPs.
__________________
Reply With Quote
  #9  
Old 12-30-2010, 10:20 PM
RegretZ RegretZ is offline
Me.
RegretZ's Avatar
Join Date: Sep 2010
Location: USA
Posts: 415
RegretZ will become famous soon enough
Quote:
Originally Posted by cbk1994 View Post
Using lots of NPCs in this way is usually very bad idea. Not only is there a set limit of NPCs per level, but it will also slow down the client (and serverside scripts looping through NPCs), especially on GMAPs.
Yeah, but it's the lazy man's way out.
Reply With Quote
  #10  
Old 12-30-2010, 10:31 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
What tiles are you wanting more of? Any in particular? (Seats, beds etc)
Gonstruct is quite a nifty tool - try this
http://forums.graalonline.com/forums...hp?t=134258190

Cool thread:
http://forums.graalonline.com/forums...ight=Gonstruct

Image:
http://forums.graalonline.com/forums...7&d=1253304963
__________________
Reply With Quote
Reply


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 08:48 PM.


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