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 11-04-2007, 04:05 AM
dereklarue dereklarue is offline
PurplePeopleEater
Join Date: Aug 2007
Location: Mi
Posts: 32
dereklarue is on a distinguished road
Send a message via AIM to dereklarue Send a message via Yahoo to dereklarue
Smile Hmm

Ive had some problems to.
what i did to make it work is:
I added an npc in the level and scripted the following and it worked:


//#CLIENTSIDE
addtiledef levelname.png,,0;


That should work else im not sure...
-derek
Reply With Quote
  #2  
Old 11-04-2007, 05:52 AM
Arch_Angel Arch_Angel is offline
Registered User
Join Date: Apr 2007
Posts: 482
Arch_Angel is on a distinguished road
Send a message via AIM to Arch_Angel
Try adding a weapon named '-Tiles' .

In the script put
HTML Code:
//#CLIENTSIDE
function onCreated()
{

  removetiledefs(" ");

  addtiledef "TILENAMEHERE","","";
}
Then apply the weapon to add it.
Next edit that atts of your guy and click the 'Weapons' tab and type int he name you gave the script you just made. (Should be -Tiles if you named it what I said up top) Then make sure you tiles are uploaded in the levels/images folder just to make sure that they are there. Now your tiles should properly show up in your playerworld.

More Advanced: If you want different Tiles for different GMaps, then in the tile script put
HTML Code:
//#CLIENTSIDE
function onCreated()
{

  removetiledefs(" ");

  addtiledef "TILENAMEHERE","GMAP NAME","1";
}
So if I have a Gmap that is named ovrwld-1_ and another Gmap named ovrwld-2_ and I wanted ovrwld-1_ to have tiles named winter_tileset.png and I want ovrwld-2_ Gmap to have tiles summer_tileset.png. then in my script I would put
HTML Code:
//#CLIENTSIDE
function onCreated()
{

  removetiledefs(" ");

  addtiledef "winter_tileset.png","ovrwld-1_","1";
  addtiledef "summer_tileset.png","ovrwld-2_","1";
}
Now both of those diff Gmaps will have two different tilesets. If I'm wrong on any of this please correct me.

Well if you have any problems with these tiles still not working forum PM me.
(NOTE: Don't forget to add the weapons/NPC you just made to your atts on your player. You can have the npc added automatically upon login. If you need help with that forum PM me also, I would be glad to help you )
Reply With Quote
  #3  
Old 11-04-2007, 12:12 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Why are you mixing it?

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
removetiledefs("");

  
addtiledef("winter_tileset.png","ovrwld-1_",1);
  
addtiledef("summer_tileset.png","ovrwld-2_",1);

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:31 AM.


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