![]() |
Spawn NPC Tiles - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Spawn NPC Tiles (/showthread.php?tid=519) |
Spawn NPC Tiles - Rian - 22-12-2006 I made a new tile type called TILE_TYPE_SCRIPT This doesn't acutally load any kind of script, I just called it script cuz it can serve multiple purposes. Anyways, .Data3 carried by TILE_TYPE_SCRIPT gets saved and loaded properly (Data2 doesn't have a purpose until I get weather implimented into my game, and the code that uses .Data1 works perfectly fine) however, .Data3 is supposed to be an NPC spawn, but for some reason, it only seems to work right if I use NPC Number 1 (In which case, happens to be a drunken sea pirate). Below are snips of my spawn npc code: Code: 'Check if theres a spawn tile for the specific npc I could post the whole code, but I'm pretty sure the problem is in one of the If Statments above. So, if anyone sees anything wrong with this code, please let me know, I'd really like to get this to function correctly ![]() [Edit] Heh, nevermind. I see what I did wrong. I didn't fully understand how the system worked xD |