Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Double (https://forums.graalonline.com/forums/showthread.php?t=9795)

ownerofbabylon 08-17-2001 12:53 PM

Double
 
How hard would it be to make a bridge that allowed you to walk over it and also under it? Like the one on classic?

If anyone can show me how to do this I would appreciate it

fuzie 08-17-2001 02:25 PM

I think i got it!take a pic of each end of teh bridge that is on the land-not the bridge itself and use the command if (playertouchsme) {
dontblock;
set overbridge;
}
do the same thing with the other side and take a pic of teh actual bridge and rip the bridge out using psp 7 or w/e-note: if the bridge is like this !! then don't make the bridge so that the sides are not included along in the gif. then pu the scirpt like this
if (overbridge) {
dontblock;
drawunderplayer;
}
then make a gif of teh out outside tiles of the bridge and make a gfx of it-and in that scirp do this:
if (playertouchsme) {
dontblock;
set underbridge;
}
and along with the bridge gfx that u made b4 this one add this script:
if (underbridge) {
dontblock;
drawoverplayer;
}


i think this will werk-if u have ne trouble just send me the level and i'll do it 4 u........Thanx,and if this won't werk plz tell me

--------------L8--------------
---Brian---------------------

fuzie 08-17-2001 05:11 PM

Is that right???I am pretty sure there is a easier way but i don't find that hard and i havent actually tried this before but if someone has done this before and was a sucess plz tell me

-----------Thanx------------Brian------------------

fuzie 08-17-2001 05:15 PM

whats the problem with flags? ohh i c now when the player goes over teh bridge the flag is never unset hmmm what is u were to unset the flags in the opposite scripts>?

fuzie 08-17-2001 05:24 PM

then what should i use....hmmm u mean making a new gfx using the putnpc command????? i don't know anything else to do????

fuzie 08-17-2001 05:55 PM

i think a rockk fell on my head i 4got all about variables!

LiquidIce00 08-18-2001 05:06 AM

owner can use this but not ne1 else w/o permission lolz (that includes u poogle)

NPC Code:

// NPC made by LiquidIce (Murder)
dontblocklocal;

while (playertouchsme) {
if (!playerswimming) {
drawunderplayer;
}
if (playerswimming) {
drawoverplayer;
}
}



easy ..
and use a bridge.gif or something
and i also recommend u put walkable tiles under the bridge so ppl can walk over the bridge

Xaviar 08-18-2001 10:03 AM

Quote:

Originally posted by LiquidIce00
owner can use this but not ne1 else w/o permission lolz (that includes u poogle)

NPC Code:

// NPC made by LiquidIce (Murder)
dontblocklocal;

while (playertouchsme) {
if (!playerswimming) {
drawunderplayer;
}
if (playerswimming) {
drawoverplayer;
}
}



easy ..
and use a bridge.gif or something
and i also recommend u put walkable tiles under the bridge so ppl can walk over the bridge

put walkable tiles underneath...and make it if (playertouchsme) instead of while...cause wouldnt while make it check after youve started to go under =/

ownerofbabylon 08-18-2001 10:18 AM

Quote:

Originally posted by LiquidIce00
owner can use this but not ne1 else w/o permission lolz (that includes u poogle)

NPC Code:

// NPC made by LiquidIce (Murder)
dontblocklocal;

while (playertouchsme) {
if (!playerswimming) {
drawunderplayer;
}
if (playerswimming) {
drawoverplayer;
}
}



easy ..
and use a bridge.gif or something
and i also recommend u put walkable tiles under the bridge so ppl can walk over the bridge

Oh thanks. Accept one thing. How would you make it if there were black tiles or somthing underneath that killed them??

LiquidIce00 08-18-2001 11:16 AM

Quote:

Originally posted by ownerofbabylon


Oh thanks. Accept one thing. How would you make it if there were black tiles or somthing underneath that killed them??

uh?
like if u touch the bridge from bellow u get hurt ?

ownerofbabylon 08-18-2001 11:33 AM

no the whole level is blackness except the bridge and the platforms and if you touch blackness (the bridge disappears) then it kills you

LiquidIce00 08-18-2001 11:42 AM

confused
and how come u say babylon has the best scripting but u always asking me or ppl here for scripts ?

fuzie 08-18-2001 12:13 PM

dang i think all you haev to do is make a darkness gfx and just use the hurtplayer command when the player touchs it-thats not hard at all

CrazedMerlin 08-18-2001 03:40 PM

if (!onwater) {dontblock;
drawunderplayer;}
if (onwater) {dontblock;
drawoverplayer;}


All times are GMT +2. The time now is 09:22 AM.

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