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 03-03-2002, 03:42 AM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
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
__________________
Reply With Quote
  #2  
Old 03-03-2002, 03:51 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
addtiledef or addtiledef2
p2p only
Reply With Quote
  #3  
Old 03-03-2002, 07:01 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
someone mentioned a way to do it for free with arrays, how would you do that? anyone know?
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #4  
Old 03-03-2002, 07:37 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to 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.
Reply With Quote
  #5  
Old 03-03-2002, 12:04 PM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
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-
Attached Files
File Type: graal laggysnow.graal (1.3 KB, 160 views)
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
  #6  
Old 03-03-2002, 12:48 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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 ...
Reply With Quote
  #7  
Old 03-03-2002, 03:29 PM
Scorpz Scorpz is offline
Banned
Join Date: Aug 2001
Posts: 473
Scorpz is on a distinguished road
Send a message via AIM to Scorpz
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;
}
Attached Images
 
Reply With Quote
  #8  
Old 03-03-2002, 03:37 PM
Scorpz Scorpz is offline
Banned
Join Date: Aug 2001
Posts: 473
Scorpz is on a distinguished road
Send a message via AIM to Scorpz
Yeah, Thats the level I am testing it on.
Reply With Quote
  #9  
Old 03-03-2002, 03:42 PM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
hmm...you could do a 16x16 showimg over every tile, but that could get laggy on older comps
Reply With Quote
  #10  
Old 03-03-2002, 03:54 PM
Scorpz Scorpz is offline
Banned
Join Date: Aug 2001
Posts: 473
Scorpz is on a distinguished road
Send a message via AIM to Scorpz
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.
Reply With Quote
  #11  
Old 03-03-2002, 04:00 PM
Scorpz Scorpz is offline
Banned
Join Date: Aug 2001
Posts: 473
Scorpz is on a distinguished road
Send a message via AIM to Scorpz
hmm, I dont know, How could I test it.
Reply With Quote
  #12  
Old 03-03-2002, 04:06 PM
Scorpz Scorpz is offline
Banned
Join Date: Aug 2001
Posts: 473
Scorpz is on a distinguished road
Send a message via AIM to Scorpz
OMG IT WORKS!!!!!!!!!!!!!!
thankz so much, =) now I can carry on making levels.
Reply With Quote
  #13  
Old 03-03-2002, 04:14 PM
Scorpz Scorpz is offline
Banned
Join Date: Aug 2001
Posts: 473
Scorpz is on a distinguished road
Send a message via AIM to Scorpz
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?
Reply With Quote
  #14  
Old 03-03-2002, 04:20 PM
Scorpz Scorpz is offline
Banned
Join Date: Aug 2001
Posts: 473
Scorpz is on a distinguished road
Send a message via AIM to Scorpz
I didnt add the image because I though there would be the image on the level, Thankz once again.
Reply With Quote
  #15  
Old 03-03-2002, 06:22 PM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
hehe.. its harder to make bushes then i thought.. not that good huh?
Attached Thumbnails
Click image for larger version

Name:	mybushes.png
Views:	185
Size:	34.3 KB
ID:	12800  
__________________
Reply With Quote
  #16  
Old 03-03-2002, 06:52 PM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
the grass tile looks like puke, door look like a outdoor toilet
Attached Thumbnails
Click image for larger version

Name:	puke.png
Views:	128
Size:	7.5 KB
ID:	12801  
__________________
Reply With Quote
  #17  
Old 03-04-2002, 03:09 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
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
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #18  
Old 03-06-2002, 08:29 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to 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
Reply With Quote
  #19  
Old 03-06-2002, 11:57 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
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
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

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 03:38 PM.


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