Graal Forums

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

Kadar 03-03-2002 03:42 AM

Tile changing
 
Ferret posts

Whats the script so when you enter a level it changes tile set to
ferrettile.gif

i know you dont want to give out scripts, but please

Python523 03-03-2002 03:51 AM

addtiledef or addtiledef2
p2p only

lordhelmut 03-03-2002 07:01 AM

someone mentioned a way to do it for free with arrays, how would you do that? anyone know?

nyghtGT 03-03-2002 07:37 AM

(Royce):LH, I have no clue what you mean. What you can do is just make the whole tileset over in the pics1.png and you can just give it to the players to reset their pics1.png with. This is LEAGAL so please do not worry. As for the other guy, you simply use this
NPC Code:

addtiledef2 picture,#L,x,y;


I think thats right. I script on non-p2p playerworlds rather than p2p so it may be wrong so dont make fun of me, only correct plz.

Lomgren 03-03-2002 12:04 PM

1 Attachment(s)
Quote:

Originally posted by lordhelmut
someone mentioned a way to do it for free with arrays, how would you do that? anyone know?
Thats incredibly laggy, as I have found in this level, of course it could just be the large number of snow and tiles...
-here's the snow img-
http://members.aol.com:/michaelangelo36/flocon.gif

nyghtGT 03-03-2002 12:48 PM

Quote:

Originally posted by nyghtGT
(Royce):LH, I have no clue what you mean. What you can do is just make the whole tileset over in the pics1.png and you can just give it to the players to reset their pics1.png with. This is LEAGAL so please do not worry. As for the other guy, you simply use this
NPC Code:

addtiledef2 picture,#L,x,y;


I think thats right. I script on non-p2p playerworlds rather than p2p so it may be wrong so dont make fun of me, only correct plz.

thats '//#CLIENTSIDE' too ...

Scorpz 03-03-2002 03:29 PM

1 Attachment(s)
I could do with some help on this to, I have my tiles made I chandged them into a png, I use the race kart script, but change the name to my tiles and it still wont work?

//#CLIENTSIDE
if (playerenters) {
addtiledef2 tiles_dru.png,karttest.nw,928,256;
}

Scorpz 03-03-2002 03:37 PM

Yeah, Thats the level I am testing it on.

Faheria_GP2 03-03-2002 03:42 PM

hmm...you could do a 16x16 showimg over every tile, but that could get laggy on older comps

Scorpz 03-03-2002 03:54 PM

Quote:

Originally posted by Faheria_GP2
hmm...you could do a 16x16 showimg over every tile, but that could get laggy on older comps
That would take pretty long, The pixels on the image should'nt matter, The x and y is where you place the image. I still can't fidn out how come it wont work with my image but it will work for stefans one.

Scorpz 03-03-2002 04:00 PM

hmm, I dont know, How could I test it.

Scorpz 03-03-2002 04:06 PM

OMG IT WORKS!!!!!!!!!!!!!!
thankz so much, =) now I can carry on making levels.

Scorpz 03-03-2002 04:14 PM

The script works, You just have to add the the image in to the top thing when you have a script, I cannot think how to say it, You know you can add a image and it make the little npc man change into the image?

Scorpz 03-03-2002 04:20 PM

I didnt add the image because I though there would be the image on the level, Thankz once again.

Kadar 03-03-2002 06:22 PM

1 Attachment(s)
hehe.. its harder to make bushes then i thought.. not that good huh?

Kadar 03-03-2002 06:52 PM

1 Attachment(s)
the grass tile looks like puke, door look like a outdoor toilet :(

neomaximus2k 03-04-2002 03:09 PM

Quote:

Originally posted by Kadar
hehe.. its harder to make bushes then i thought.. not that good huh?
OMG LOL they look more like deep grass holes

btedji 03-06-2002 08:29 PM

You could have a search script that would look at the level and replace the appropriate tiles based on some kind of array you create in a string or what ever

neomaximus2k 03-06-2002 11:57 PM

Quote:

Originally posted by btedji
You could have a search script that would look at the level and replace the appropriate tiles based on some kind of array you create in a string or what ever
yeah but wouldn't that be very laggy?> i think i have a script like that somewhere


and you dont need the tileset picture on a level in order to use the addtiledef


All times are GMT +2. The time now is 06:14 AM.

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