Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-13-2002, 09:46 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
problem w/ setmap & startswith()

I'm having some trouble with this map code i made for a quest, i want the quest "complex" to have a map, but i don't want it to affect the main overworld map. here is what is have, the filenames are just examples

overworld.png & overworld.txt are the files for the overworld

quest.png & quest.txt are the files for the quest complex.

NPC Code:
// NPC made by Shadowless Warrior
if (playerenters) {setmap quest.png,quest.txt,playerx,playery;}
if (playerenters) {toweapons -questmap;

}
if (isweapon && startswith(#L, quest_)) {setmap quest.png,quest.txt,playerx,playery;
}
else if (isweapon) {setmap overworld.png,overworld.txt,playerx,playery;
}



When ever i try it, it sets the map to the overworld map... even when im in a level that the file name starts with "quest_". I hope someone can help.
Reply With Quote
 


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 09:25 AM.


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