Quote:
Originally Posted by Angel_Light
eh, current method I'm using is to just call a scheduleEvent and loop it every second or so to check if the player is in the same level or not.
|
Would this be the kind of thing you're looking for? I haven't tested it; just wrote it up in Notepad.
PHP Code:
//NPC1 test1.nw
function onPlayerEnters() {
temp.levelObject = findLevel("test2.nw");
temp.levelObject.tiles[32, 32] = int(random(50, 100));
temp.levelObject.("changes_" @ player.account) = true;
}
//NPC2 test2.nw
function onPlayerEnters() {
if (level.("changes_" @ player.account) == true) {
updateBoard(32, 32, 1, 1);
level.("changes_" @ player.account) = null;
}
}