Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   onwall{ (https://forums.graalonline.com/forums/showthread.php?t=52082)

WanDaMan 04-02-2004 09:30 PM

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..

Dach 04-03-2004 01:09 AM

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;
}


R0bin 04-03-2004 01:51 AM

not dontblock; he wants to be able to walk over them :rolleyes:

Dach 04-03-2004 02:32 AM

Meh, I just rewrote his script with in, I don't feel like figuring out what he was actually doing ;)

WanDaMan 04-03-2004 11:26 AM

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.. :)

zokemon 04-03-2004 12:03 PM

I thought of this idea long ago =o

Dach 04-03-2004 06:47 PM

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 :\


All times are GMT +2. The time now is 07:11 AM.

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