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-11-2005, 03:07 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
Tileset problem.

Okay, we have many of our tilesets set up through our -System npc, with the script below. The problem is that every now and then, the levels use an incorrect tileset, and I'm not sure why. My only hunch is that it has something to do with being in levels that use addtiledef and then warping to another level. But as I said, that's just a hunch.

Most recently, it happened when I was in a level named versus_winemaking1.nw and it was using addtiledef to set the tileset in the level to blasphemy_pics2.png

I then warped to an overworld level, and the tileset was set as blasphemy_pics2.png instead of the blasphemy_pics1.png that the NPC tells it to. However, that might not be the problem at all, because I think I've encountered the same problem without warping.

NPC Code:

function onCreated() {
this.keydown[6] = 0;
removeTileDefs();
addtiledef("blasphemy_pics1.png", "illuminati", 0);
addtiledef("blasphemy_pics1.png", "versus", 0);
addtiledef("blasphemy_pics2.png", "complex", 0);
addtiledef("blasphemy_cave-pics2.png", "vermines", 0);
addtiledef("blasphemy_pics1-volcano.png", "volcano_", 0);
addtiledef("blasphemy_cave-pics1.png", "cave1_", 0);
addtiledef("blasphemy_cafe-pics2.png", "cave2_", 0);
addtiledef("blasphemy_cafe-pics3.png", "cave3_", 0);
addtiledef("blasphemy_cafe-pics4.png", "cave4_", 0);
addtiledef("blasphemy_heartquest1-pics1.png", "heartquest1_", 0);
onTimeout();
}

__________________
(Married to Skyld)
Reply With Quote
  #2  
Old 11-11-2005, 09:43 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Nevermind, it's not fixed..
I don't understand what's wrong.

There's only one NPC trying to change the tileset.
The image is downloadable.
The command to change the tileset is being called.
It's just not changing it.

Last edited by Yen; 11-11-2005 at 10:23 PM..
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 01:19 AM.


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