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 02-22-2011, 03:16 AM
AlexanderK AlexanderK is offline
Registered User
AlexanderK's Avatar
Join Date: Mar 2006
Location: Germany
Posts: 79
AlexanderK is on a distinguished road
Send a message via MSN to AlexanderK
Tileset and standard features questions

As I'm planning to have spikes that hurt the player when it walk on them, and pits, the player falls down, I looked into tiletypes, at is much easier to check for the tiletype than to check for single tiles.
This raised some questions:

Blue field:
Is it just my server's configuration or has lava been removed? All the templates say that there should be lava, but I can swim everywhere in there and tiletype(x,y) returns 11.

Red field:
tiletype(x,y); returns 2, hurting underground. When you stand on there, your character slowly looses 0.5 player.hearts until he dies. Is there a way to stop that? I guess I could use some kind of loop and add player.hearts but maybe theres something like disablehurtinggrounds(); or disabledying(); or a serveroption I don't know about.

Green field:
tiletype(x,y) returns 10. I have found no documentation about that tiletype. Is it undefined? Well then I could use it for scriptinng purposes without having to worry about the game's features interfering.

Finally, is there a way to turn off the little animations by your feet when you stand in water or wamp or just change their look?

Last edited by AlexanderK; 02-22-2011 at 03:30 AM..
Reply With Quote
  #2  
Old 02-22-2011, 12:22 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by AlexanderK View Post
Red field:
tiletype(x,y); returns 2, hurting underground. When you stand on there, your character slowly looses 0.5 player.hearts until he dies. Is there a way to stop that? I guess I could use some kind of loop and add player.hearts but maybe theres something like disablehurtinggrounds(); or disabledying(); or a serveroption I don't know about.
There's nothing, nope.


Quote:
Originally Posted by AlexanderK View Post
Green field:
tiletype(x,y) returns 10. I have found no documentation about that tiletype. Is it undefined? Well then I could use it for scriptinng purposes without having to worry about the game's features interfering.
You can do that. It seems to be unused. I did use the same space on Era to do some fancy stuff in the past, which hasn't even been used as far as I know.


Quote:
Originally Posted by AlexanderK View Post
Finally, is there a way to turn off the little animations by your feet when you stand in water or wamp or just change their look?
You can try removing the sprites from sprites.png, renaming it to something else and then using setspritesimage() to locally switch sprites.png with another image.
Reply With Quote
  #3  
Old 02-24-2011, 06:24 PM
AlexanderK AlexanderK is offline
Registered User
AlexanderK's Avatar
Join Date: Mar 2006
Location: Germany
Posts: 79
AlexanderK is on a distinguished road
Send a message via MSN to AlexanderK
So does anyone know what might have happened to the lava?
Reply With Quote
  #4  
Old 02-24-2011, 06:55 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Quote:
Originally Posted by AlexanderK View Post
So does anyone know what might have happened to the lava?
someone threw some water and turned it to obsidian
Reply With Quote
  #5  
Old 02-24-2011, 09:17 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
In general, to get rid of all this stuff you need to use a servermode that kills literally all the default stuff (including movement, pking, etc.). If you want to go that route you need to ask Stefan to turn on that servermode for you. But it'll be a decent amount of work to script back all that stuff that goes away.
Reply With Quote
  #6  
Old 02-25-2011, 02:03 AM
Doahh_p2p Doahh_p2p is offline
Developer
Join Date: Oct 2004
Posts: 187
Doahh_p2p will become famous soon enough
might as well rescript it anyways. Opens up way more possibilities.
Reply With Quote
  #7  
Old 02-25-2011, 02:13 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
Quote:
Originally Posted by Doahh_p2p View Post
might as well rescript it anyways. Opens up way more possibilities.
Way easier said than done.
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 01:06 PM.


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