Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-02-2004, 09:30 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
onwall{

Onwall..
Well it's how it says it..
You put all of the tiles you want not walkable in the brackets.
What ya think? also..

if(created) timeout = 0.05;
if(timeout){
if(onwall{0012,3522,5475};
dontblock;
}
timeout = 0.05;
}

The ones in an 'array' (sort of speak) are made up. But in this case, they are walls what you can now walk over..
__________________
V$:CONFL16T
Reply With Quote
  #2  
Old 04-03-2004, 01:09 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
What? reword what you are suggesting, it's hard to follow

Im pretty sure you can do this with an array though,

NPC Code:

if (created) {
tiles_block_array = {0012,3522,5475};
timeout = .05;
}
if (timeout) {
if (tiles[x,y] in tiles_block_array) {
dontblock;
}
timeout = .05;
}

__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #3  
Old 04-03-2004, 01:51 AM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
not dontblock; he wants to be able to walk over them
Reply With Quote
  #4  
Old 04-03-2004, 02:32 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Meh, I just rewrote his script with in, I don't feel like figuring out what he was actually doing
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #5  
Old 04-03-2004, 11:26 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Well it could be done for many things. Say you mess up big time on a tileset and you detail like all of your levels and then you realize you can't walk over a tile. I believe there should be a command in serveroptions or something..
onwall{tiles here,}

No I didn't do the above, it was an example..
__________________
V$:CONFL16T
Reply With Quote
  #6  
Old 04-03-2004, 12:03 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
I thought of this idea long ago =o
__________________
Do it with a DON!
Reply With Quote
  #7  
Old 04-03-2004, 06:47 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by WanDaMan
Well it could be done for many things. Say you mess up big time on a tileset and you detail like all of your levels and then you realize you can't walk over a tile. I believe there should be a command in serveroptions or something..
onwall{tiles here,}

No I didn't do the above, it was an example..
Oh, I see, no

there is no reason to have a built-in save_me_cause_I_screwed_up command in graal, it's your fault that happened, and you can still easily script it if you're not up to fixing the levels. Sorry if it's harsh, but it's true
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
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 04:12 AM.


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