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.